From e0113f9347971f4f88244a007f0f3519f690b007 Mon Sep 17 00:00:00 2001 From: cdujeu Date: Thu, 23 Sep 2021 10:24:52 +0200 Subject: [PATCH] First commit --- .gitignore | 4 + Gruntfile.js | 27 + README.md | 50 +- lib/ApiClient.js | 631 +++++++++ lib/ApiClient.js.map | 1 + lib/api/AuditDataServiceApi.js | 85 ++ lib/api/AuditDataServiceApi.js.map | 1 + lib/api/EnterpriseConfigServiceApi.js | 670 +++++++++ lib/api/EnterpriseConfigServiceApi.js.map | 1 + lib/api/EnterpriseFrontendServiceApi.js | 76 + lib/api/EnterpriseFrontendServiceApi.js.map | 1 + lib/api/EnterpriseLogServiceApi.js | 203 +++ lib/api/EnterpriseLogServiceApi.js.map | 1 + lib/api/EnterprisePolicyServiceApi.js | 280 ++++ lib/api/EnterprisePolicyServiceApi.js.map | 1 + lib/api/EnterpriseTokenServiceApi.js | 207 +++ lib/api/EnterpriseTokenServiceApi.js.map | 1 + lib/api/LicenseServiceApi.js | 125 ++ lib/api/LicenseServiceApi.js.map | 1 + lib/api/SchedulerServiceApi.js | 596 ++++++++ lib/api/SchedulerServiceApi.js.map | 1 + lib/index.js | 1224 +++++++++++++++++ lib/index.js.map | 1 + lib/model/ActivityObject.js | 436 ++++++ lib/model/ActivityObject.js.map | 1 + lib/model/ActivityObjectType.js | 167 +++ lib/model/ActivityObjectType.js.map | 1 + lib/model/AuthLdapMapping.js | 86 ++ lib/model/AuthLdapMapping.js.map | 1 + lib/model/AuthLdapMemberOfMapping.js | 114 ++ lib/model/AuthLdapMemberOfMapping.js.map | 1 + lib/model/AuthLdapSearchFilter.js | 92 ++ lib/model/AuthLdapSearchFilter.js.map | 1 + lib/model/AuthLdapServerConfig.js | 164 +++ lib/model/AuthLdapServerConfig.js.map | 1 + lib/model/AuthOAuth2ClientConfig.js | 110 ++ lib/model/AuthOAuth2ClientConfig.js.map | 1 + .../AuthOAuth2ConnectorBitbucketConfig.js | 86 ++ .../AuthOAuth2ConnectorBitbucketConfig.js.map | 1 + lib/model/AuthOAuth2ConnectorCollection.js | 70 + .../AuthOAuth2ConnectorCollection.js.map | 1 + lib/model/AuthOAuth2ConnectorConfig.js | 174 +++ lib/model/AuthOAuth2ConnectorConfig.js.map | 1 + lib/model/AuthOAuth2ConnectorGithubConfig.js | 118 ++ .../AuthOAuth2ConnectorGithubConfig.js.map | 1 + .../AuthOAuth2ConnectorGithubConfigOrg.js | 74 + .../AuthOAuth2ConnectorGithubConfigOrg.js.map | 1 + lib/model/AuthOAuth2ConnectorGitlabConfig.js | 98 ++ .../AuthOAuth2ConnectorGitlabConfig.js.map | 1 + .../AuthOAuth2ConnectorLinkedinConfig.js | 80 ++ .../AuthOAuth2ConnectorLinkedinConfig.js.map | 1 + .../AuthOAuth2ConnectorMicrosoftConfig.js | 110 ++ .../AuthOAuth2ConnectorMicrosoftConfig.js.map | 1 + lib/model/AuthOAuth2ConnectorOAuthConfig.js | 122 ++ .../AuthOAuth2ConnectorOAuthConfig.js.map | 1 + lib/model/AuthOAuth2ConnectorOIDCConfig.js | 128 ++ .../AuthOAuth2ConnectorOIDCConfig.js.map | 1 + lib/model/AuthOAuth2ConnectorPydioConfig.js | 70 + .../AuthOAuth2ConnectorPydioConfig.js.map | 1 + ...AuthOAuth2ConnectorPydioConfigConnector.js | 80 ++ ...OAuth2ConnectorPydioConfigConnector.js.map | 1 + lib/model/AuthOAuth2ConnectorSAMLConfig.js | 134 ++ .../AuthOAuth2ConnectorSAMLConfig.js.map | 1 + lib/model/AuthOAuth2MappingRule.js | 80 ++ lib/model/AuthOAuth2MappingRule.js.map | 1 + lib/model/AuthPatListResponse.js | 70 + lib/model/AuthPatListResponse.js.map | 1 + lib/model/AuthPatType.js | 53 + lib/model/AuthPatType.js.map | 1 + lib/model/AuthPersonalAccessToken.js | 130 ++ lib/model/AuthPersonalAccessToken.js.map | 1 + lib/model/CertLicenseInfo.js | 112 ++ lib/model/CertLicenseInfo.js.map | 1 + lib/model/CertLicenseStatsResponse.js | 82 ++ lib/model/CertLicenseStatsResponse.js.map | 1 + lib/model/CertPutLicenseInfoRequest.js | 68 + lib/model/CertPutLicenseInfoRequest.js.map | 1 + lib/model/CertPutLicenseInfoResponse.js | 80 ++ lib/model/CertPutLicenseInfoResponse.js.map | 1 + lib/model/EntActionTemplate.js | 76 + lib/model/EntActionTemplate.js.map | 1 + lib/model/EntConnector.js | 80 ++ lib/model/EntConnector.js.map | 1 + lib/model/EntDeleteActionTemplateResponse.js | 68 + .../EntDeleteActionTemplateResponse.js.map | 1 + lib/model/EntDeleteJobTemplateResponse.js | 68 + lib/model/EntDeleteJobTemplateResponse.js.map | 1 + .../EntDeleteSelectorTemplateResponse.js | 68 + .../EntDeleteSelectorTemplateResponse.js.map | 1 + .../EntDeleteVersioningPolicyResponse.js | 68 + .../EntDeleteVersioningPolicyResponse.js.map | 1 + lib/model/EntDeleteVirtualNodeResponse.js | 68 + lib/model/EntDeleteVirtualNodeResponse.js.map | 1 + lib/model/EntDocTemplatePiece.js | 86 ++ lib/model/EntDocTemplatePiece.js.map | 1 + lib/model/EntDocTemplatesResponse.js | 76 + lib/model/EntDocTemplatesResponse.js.map | 1 + lib/model/EntExternalDirectoryCollection.js | 70 + .../EntExternalDirectoryCollection.js.map | 1 + lib/model/EntExternalDirectoryConfig.js | 76 + lib/model/EntExternalDirectoryConfig.js.map | 1 + lib/model/EntExternalDirectoryResponse.js | 68 + lib/model/EntExternalDirectoryResponse.js.map | 1 + lib/model/EntFrontLoginConnectorsResponse.js | 70 + .../EntFrontLoginConnectorsResponse.js.map | 1 + lib/model/EntListAccessTokensRequest.js | 68 + lib/model/EntListAccessTokensRequest.js.map | 1 + lib/model/EntListActionTemplatesRequest.js | 56 + .../EntListActionTemplatesRequest.js.map | 1 + lib/model/EntListActionTemplatesResponse.js | 70 + .../EntListActionTemplatesResponse.js.map | 1 + lib/model/EntListJobTemplatesRequest.js | 56 + lib/model/EntListJobTemplatesRequest.js.map | 1 + lib/model/EntListJobTemplatesResponse.js | 70 + lib/model/EntListJobTemplatesResponse.js.map | 1 + lib/model/EntListSelectorTemplatesRequest.js | 68 + .../EntListSelectorTemplatesRequest.js.map | 1 + lib/model/EntListSelectorTemplatesResponse.js | 70 + .../EntListSelectorTemplatesResponse.js.map | 1 + lib/model/EntListSitesResponse.js | 70 + lib/model/EntListSitesResponse.js.map | 1 + lib/model/EntOAuth2ClientCollection.js | 70 + lib/model/EntOAuth2ClientCollection.js.map | 1 + lib/model/EntOAuth2ClientResponse.js | 68 + lib/model/EntOAuth2ClientResponse.js.map | 1 + lib/model/EntOAuth2ConnectorCollection.js | 70 + lib/model/EntOAuth2ConnectorCollection.js.map | 1 + lib/model/EntOAuth2ConnectorResponse.js | 68 + lib/model/EntOAuth2ConnectorResponse.js.map | 1 + lib/model/EntPersonalAccessTokenRequest.js | 92 ++ .../EntPersonalAccessTokenRequest.js.map | 1 + lib/model/EntPersonalAccessTokenResponse.js | 68 + .../EntPersonalAccessTokenResponse.js.map | 1 + lib/model/EntPlaygroundRequest.js | 82 ++ lib/model/EntPlaygroundRequest.js.map | 1 + lib/model/EntPlaygroundResponse.js | 88 ++ lib/model/EntPlaygroundResponse.js.map | 1 + lib/model/EntPutActionTemplateRequest.js | 70 + lib/model/EntPutActionTemplateRequest.js.map | 1 + lib/model/EntPutActionTemplateResponse.js | 70 + lib/model/EntPutActionTemplateResponse.js.map | 1 + lib/model/EntPutJobTemplateRequest.js | 76 + lib/model/EntPutJobTemplateRequest.js.map | 1 + lib/model/EntPutJobTemplateResponse.js | 70 + lib/model/EntPutJobTemplateResponse.js.map | 1 + lib/model/EntPutSelectorTemplateRequest.js | 70 + .../EntPutSelectorTemplateRequest.js.map | 1 + lib/model/EntPutSelectorTemplateResponse.js | 68 + .../EntPutSelectorTemplateResponse.js.map | 1 + lib/model/EntSelectorTemplate.js | 134 ++ lib/model/EntSelectorTemplate.js.map | 1 + lib/model/IdmACL.js | 95 ++ lib/model/IdmACL.js.map | 1 + lib/model/IdmACLAction.js | 74 + lib/model/IdmACLAction.js.map | 1 + lib/model/IdmPolicy.js | 110 ++ lib/model/IdmPolicy.js.map | 1 + lib/model/IdmPolicyCondition.js | 74 + lib/model/IdmPolicyCondition.js.map | 1 + lib/model/IdmPolicyEffect.js | 53 + lib/model/IdmPolicyEffect.js.map | 1 + lib/model/IdmPolicyGroup.js | 108 ++ lib/model/IdmPolicyGroup.js.map | 1 + lib/model/IdmPolicyResourceGroup.js | 53 + lib/model/IdmPolicyResourceGroup.js.map | 1 + lib/model/IdmRole.js | 125 ++ lib/model/IdmRole.js.map | 1 + lib/model/IdmUser.js | 140 ++ lib/model/IdmUser.js.map | 1 + lib/model/IdmWorkspace.js | 137 ++ lib/model/IdmWorkspace.js.map | 1 + lib/model/IdmWorkspaceScope.js | 55 + lib/model/IdmWorkspaceScope.js.map | 1 + lib/model/InstallProxyConfig.js | 116 ++ lib/model/InstallProxyConfig.js.map | 1 + lib/model/InstallTLSCertificate.js | 80 ++ lib/model/InstallTLSCertificate.js.map | 1 + lib/model/InstallTLSLetsEncrypt.js | 80 ++ lib/model/InstallTLSLetsEncrypt.js.map | 1 + lib/model/InstallTLSSelfSigned.js | 68 + lib/model/InstallTLSSelfSigned.js.map | 1 + lib/model/IpbanBannedConnection.js | 82 ++ lib/model/IpbanBannedConnection.js.map | 1 + lib/model/IpbanConnectionAttempt.js | 88 ++ lib/model/IpbanConnectionAttempt.js.map | 1 + lib/model/IpbanIPsCollection.js | 74 + lib/model/IpbanIPsCollection.js.map | 1 + lib/model/IpbanListBansCollection.js | 70 + lib/model/IpbanListBansCollection.js.map | 1 + lib/model/IpbanUnbanRequest.js | 68 + lib/model/IpbanUnbanRequest.js.map | 1 + lib/model/IpbanUnbanResponse.js | 68 + lib/model/IpbanUnbanResponse.js.map | 1 + lib/model/JobsAction.js | 192 +++ lib/model/JobsAction.js.map | 1 + lib/model/JobsActionLog.js | 84 ++ lib/model/JobsActionLog.js.map | 1 + lib/model/JobsActionMessage.js | 134 ++ lib/model/JobsActionMessage.js.map | 1 + lib/model/JobsActionOutput.js | 104 ++ lib/model/JobsActionOutput.js.map | 1 + lib/model/JobsActionOutputFilter.js | 82 ++ lib/model/JobsActionOutputFilter.js.map | 1 + lib/model/JobsContextMetaFilter.js | 90 ++ lib/model/JobsContextMetaFilter.js.map | 1 + lib/model/JobsContextMetaFilterType.js | 51 + lib/model/JobsContextMetaFilterType.js.map | 1 + lib/model/JobsDataSourceSelector.js | 102 ++ lib/model/JobsDataSourceSelector.js.map | 1 + lib/model/JobsDataSourceSelectorType.js | 51 + lib/model/JobsDataSourceSelectorType.js.map | 1 + lib/model/JobsDeleteJobResponse.js | 74 + lib/model/JobsDeleteJobResponse.js.map | 1 + lib/model/JobsIdmSelector.js | 102 ++ lib/model/JobsIdmSelector.js.map | 1 + lib/model/JobsIdmSelectorType.js | 55 + lib/model/JobsIdmSelectorType.js.map | 1 + lib/model/JobsJob.js | 208 +++ lib/model/JobsJob.js.map | 1 + lib/model/JobsJobParameter.js | 98 ++ lib/model/JobsJobParameter.js.map | 1 + lib/model/JobsNodesSelector.js | 100 ++ lib/model/JobsNodesSelector.js.map | 1 + lib/model/JobsPutJobRequest.js | 70 + lib/model/JobsPutJobRequest.js.map | 1 + lib/model/JobsPutJobResponse.js | 70 + lib/model/JobsPutJobResponse.js.map | 1 + lib/model/JobsSchedule.js | 75 + lib/model/JobsSchedule.js.map | 1 + lib/model/JobsTask.js | 138 ++ lib/model/JobsTask.js.map | 1 + lib/model/JobsTaskStatus.js | 65 + lib/model/JobsTaskStatus.js.map | 1 + lib/model/JobsTriggerFilter.js | 82 ++ lib/model/JobsTriggerFilter.js.map | 1 + lib/model/JobsUsersSelector.js | 102 ++ lib/model/JobsUsersSelector.js.map | 1 + lib/model/ListLogRequestLogFormat.js | 53 + lib/model/ListLogRequestLogFormat.js.map | 1 + lib/model/LogListLogRequest.js | 89 ++ lib/model/LogListLogRequest.js.map | 1 + lib/model/LogLogMessage.js | 219 +++ lib/model/LogLogMessage.js.map | 1 + lib/model/LogRelType.js | 57 + lib/model/LogRelType.js.map | 1 + lib/model/LogTimeRangeCursor.js | 83 ++ lib/model/LogTimeRangeCursor.js.map | 1 + lib/model/LogTimeRangeRequest.js | 81 ++ lib/model/LogTimeRangeRequest.js.map | 1 + lib/model/LogTimeRangeResult.js | 93 ++ lib/model/LogTimeRangeResult.js.map | 1 + lib/model/NodeChangeEventEventType.js | 61 + lib/model/NodeChangeEventEventType.js.map | 1 + lib/model/ObjectDataSource.js | 194 +++ lib/model/ObjectDataSource.js.map | 1 + lib/model/ObjectEncryptionMode.js | 55 + lib/model/ObjectEncryptionMode.js.map | 1 + lib/model/ObjectStorageType.js | 65 + lib/model/ObjectStorageType.js.map | 1 + lib/model/ProtobufAny.js | 96 ++ lib/model/ProtobufAny.js.map | 1 + lib/model/ReportsAuditedWorkspace.js | 110 ++ lib/model/ReportsAuditedWorkspace.js.map | 1 + lib/model/ReportsSharedResource.js | 84 ++ lib/model/ReportsSharedResource.js.map | 1 + lib/model/ReportsSharedResourceShareType.js | 55 + .../ReportsSharedResourceShareType.js.map | 1 + lib/model/ReportsSharedResourcesRequest.js | 144 ++ .../ReportsSharedResourcesRequest.js.map | 1 + lib/model/ReportsSharedResourcesResponse.js | 96 ++ .../ReportsSharedResourcesResponse.js.map | 1 + lib/model/RestDeleteResponse.js | 74 + lib/model/RestDeleteResponse.js.map | 1 + lib/model/RestError.js | 94 ++ lib/model/RestError.js.map | 1 + lib/model/RestLogMessageCollection.js | 70 + lib/model/RestLogMessageCollection.js.map | 1 + lib/model/RestRevokeResponse.js | 74 + lib/model/RestRevokeResponse.js.map | 1 + lib/model/RestTimeRangeResultCollection.js | 78 ++ .../RestTimeRangeResultCollection.js.map | 1 + lib/model/ServiceOperationType.js | 51 + lib/model/ServiceOperationType.js.map | 1 + lib/model/ServiceQuery.js | 104 ++ lib/model/ServiceQuery.js.map | 1 + lib/model/ServiceResourcePolicy.js | 102 ++ lib/model/ServiceResourcePolicy.js.map | 1 + lib/model/ServiceResourcePolicyAction.js | 57 + lib/model/ServiceResourcePolicyAction.js.map | 1 + .../ServiceResourcePolicyPolicyEffect.js | 51 + .../ServiceResourcePolicyPolicyEffect.js.map | 1 + lib/model/ServiceResourcePolicyQuery.js | 80 ++ lib/model/ServiceResourcePolicyQuery.js.map | 1 + lib/model/TreeChangeLog.js | 114 ++ lib/model/TreeChangeLog.js.map | 1 + lib/model/TreeNode.js | 130 ++ lib/model/TreeNode.js.map | 1 + lib/model/TreeNodeChangeEvent.js | 104 ++ lib/model/TreeNodeChangeEvent.js.map | 1 + lib/model/TreeNodeType.js | 53 + lib/model/TreeNodeType.js.map | 1 + lib/model/TreeVersioningKeepPeriod.js | 74 + lib/model/TreeVersioningKeepPeriod.js.map | 1 + .../TreeVersioningNodeDeletedStrategy.js | 53 + .../TreeVersioningNodeDeletedStrategy.js.map | 1 + lib/model/TreeVersioningPolicy.js | 126 ++ lib/model/TreeVersioningPolicy.js.map | 1 + lib/model/TreeWorkspaceRelativePath.js | 92 ++ lib/model/TreeWorkspaceRelativePath.js.map | 1 + package.json | 37 + src/ApiClient.js | 565 ++++++++ src/api/AuditDataServiceApi.js | 87 ++ src/api/EnterpriseConfigServiceApi.js | 789 +++++++++++ src/api/EnterpriseFrontendServiceApi.js | 79 ++ src/api/EnterpriseLogServiceApi.js | 233 ++++ src/api/EnterprisePolicyServiceApi.js | 326 +++++ src/api/EnterpriseTokenServiceApi.js | 235 ++++ src/api/LicenseServiceApi.js | 135 ++ src/api/SchedulerServiceApi.js | 693 ++++++++++ src/index.js | 1112 +++++++++++++++ src/model/ActivityObject.js | 508 +++++++ src/model/ActivityObjectType.js | 456 ++++++ src/model/AuthLdapMapping.js | 101 ++ src/model/AuthLdapMemberOfMapping.js | 131 ++ src/model/AuthLdapSearchFilter.js | 108 ++ src/model/AuthLdapServerConfig.js | 188 +++ src/model/AuthOAuth2ClientConfig.js | 129 ++ .../AuthOAuth2ConnectorBitbucketConfig.js | 101 ++ src/model/AuthOAuth2ConnectorCollection.js | 81 ++ src/model/AuthOAuth2ConnectorConfig.js | 189 +++ src/model/AuthOAuth2ConnectorGithubConfig.js | 137 ++ .../AuthOAuth2ConnectorGithubConfigOrg.js | 87 ++ src/model/AuthOAuth2ConnectorGitlabConfig.js | 115 ++ .../AuthOAuth2ConnectorLinkedinConfig.js | 94 ++ .../AuthOAuth2ConnectorMicrosoftConfig.js | 129 ++ src/model/AuthOAuth2ConnectorOAuthConfig.js | 143 ++ src/model/AuthOAuth2ConnectorOIDCConfig.js | 150 ++ src/model/AuthOAuth2ConnectorPydioConfig.js | 81 ++ ...AuthOAuth2ConnectorPydioConfigConnector.js | 94 ++ src/model/AuthOAuth2ConnectorSAMLConfig.js | 157 +++ src/model/AuthOAuth2MappingRule.js | 94 ++ src/model/AuthPatListResponse.js | 81 ++ src/model/AuthPatType.js | 57 + src/model/AuthPersonalAccessToken.js | 151 ++ src/model/CertLicenseInfo.js | 129 ++ src/model/CertLicenseStatsResponse.js | 95 ++ src/model/CertPutLicenseInfoRequest.js | 80 ++ src/model/CertPutLicenseInfoResponse.js | 94 ++ src/model/EntActionTemplate.js | 88 ++ src/model/EntConnector.js | 94 ++ src/model/EntDeleteActionTemplateResponse.js | 80 ++ src/model/EntDeleteJobTemplateResponse.js | 80 ++ .../EntDeleteSelectorTemplateResponse.js | 80 ++ .../EntDeleteVersioningPolicyResponse.js | 80 ++ src/model/EntDeleteVirtualNodeResponse.js | 80 ++ src/model/EntDocTemplatePiece.js | 101 ++ src/model/EntDocTemplatesResponse.js | 88 ++ src/model/EntExternalDirectoryCollection.js | 81 ++ src/model/EntExternalDirectoryConfig.js | 88 ++ src/model/EntExternalDirectoryResponse.js | 80 ++ src/model/EntFrontLoginConnectorsResponse.js | 81 ++ src/model/EntListAccessTokensRequest.js | 80 ++ src/model/EntListActionTemplatesRequest.js | 73 + src/model/EntListActionTemplatesResponse.js | 81 ++ src/model/EntListJobTemplatesRequest.js | 73 + src/model/EntListJobTemplatesResponse.js | 81 ++ src/model/EntListSelectorTemplatesRequest.js | 80 ++ src/model/EntListSelectorTemplatesResponse.js | 81 ++ src/model/EntListSitesResponse.js | 81 ++ src/model/EntOAuth2ClientCollection.js | 81 ++ src/model/EntOAuth2ClientResponse.js | 80 ++ src/model/EntOAuth2ConnectorCollection.js | 81 ++ src/model/EntOAuth2ConnectorResponse.js | 80 ++ src/model/EntPersonalAccessTokenRequest.js | 108 ++ src/model/EntPersonalAccessTokenResponse.js | 80 ++ src/model/EntPlaygroundRequest.js | 95 ++ src/model/EntPlaygroundResponse.js | 102 ++ src/model/EntPutActionTemplateRequest.js | 81 ++ src/model/EntPutActionTemplateResponse.js | 81 ++ src/model/EntPutJobTemplateRequest.js | 88 ++ src/model/EntPutJobTemplateResponse.js | 81 ++ src/model/EntPutSelectorTemplateRequest.js | 81 ++ src/model/EntPutSelectorTemplateResponse.js | 80 ++ src/model/EntSelectorTemplate.js | 149 ++ src/model/IdmACL.js | 110 ++ src/model/IdmACLAction.js | 87 ++ src/model/IdmPolicy.js | 124 ++ src/model/IdmPolicyCondition.js | 87 ++ src/model/IdmPolicyEffect.js | 57 + src/model/IdmPolicyGroup.js | 124 ++ src/model/IdmPolicyResourceGroup.js | 57 + src/model/IdmRole.js | 146 ++ src/model/IdmUser.js | 160 +++ src/model/IdmWorkspace.js | 154 +++ src/model/IdmWorkspaceScope.js | 64 + src/model/InstallProxyConfig.js | 132 ++ src/model/InstallTLSCertificate.js | 94 ++ src/model/InstallTLSLetsEncrypt.js | 94 ++ src/model/InstallTLSSelfSigned.js | 80 ++ src/model/IpbanBannedConnection.js | 95 ++ src/model/IpbanConnectionAttempt.js | 101 ++ src/model/IpbanIPsCollection.js | 87 ++ src/model/IpbanListBansCollection.js | 81 ++ src/model/IpbanUnbanRequest.js | 80 ++ src/model/IpbanUnbanResponse.js | 80 ++ src/model/JobsAction.js | 213 +++ src/model/JobsActionLog.js | 96 ++ src/model/JobsActionMessage.js | 145 ++ src/model/JobsActionOutput.js | 122 ++ src/model/JobsActionOutputFilter.js | 95 ++ src/model/JobsContextMetaFilter.js | 103 ++ src/model/JobsContextMetaFilterType.js | 50 + src/model/JobsDataSourceSelector.js | 117 ++ src/model/JobsDataSourceSelectorType.js | 50 + src/model/JobsDeleteJobResponse.js | 87 ++ src/model/JobsIdmSelector.js | 117 ++ src/model/JobsIdmSelectorType.js | 64 + src/model/JobsJob.js | 230 ++++ src/model/JobsJobParameter.js | 115 ++ src/model/JobsNodesSelector.js | 116 ++ src/model/JobsPutJobRequest.js | 81 ++ src/model/JobsPutJobResponse.js | 81 ++ src/model/JobsSchedule.js | 88 ++ src/model/JobsTask.js | 159 +++ src/model/JobsTaskStatus.js | 99 ++ src/model/JobsTriggerFilter.js | 95 ++ src/model/JobsUsersSelector.js | 117 ++ src/model/ListLogRequestLogFormat.js | 57 + src/model/LogListLogRequest.js | 103 ++ src/model/LogLogMessage.js | 256 ++++ src/model/LogRelType.js | 71 + src/model/LogTimeRangeCursor.js | 96 ++ src/model/LogTimeRangeRequest.js | 95 ++ src/model/LogTimeRangeResult.js | 109 ++ src/model/NodeChangeEventEventType.js | 85 ++ src/model/ObjectDataSource.js | 222 +++ src/model/ObjectEncryptionMode.js | 64 + src/model/ObjectStorageType.js | 99 ++ src/model/ProtobufAny.js | 99 ++ src/model/ReportsAuditedWorkspace.js | 125 ++ src/model/ReportsSharedResource.js | 96 ++ src/model/ReportsSharedResourceShareType.js | 64 + src/model/ReportsSharedResourcesRequest.js | 166 +++ src/model/ReportsSharedResourcesResponse.js | 109 ++ src/model/RestDeleteResponse.js | 87 ++ src/model/RestError.js | 108 ++ src/model/RestLogMessageCollection.js | 81 ++ src/model/RestRevokeResponse.js | 87 ++ src/model/RestTimeRangeResultCollection.js | 89 ++ src/model/ServiceOperationType.js | 50 + src/model/ServiceQuery.js | 118 ++ src/model/ServiceResourcePolicy.js | 117 ++ src/model/ServiceResourcePolicyAction.js | 71 + .../ServiceResourcePolicyPolicyEffect.js | 50 + src/model/ServiceResourcePolicyQuery.js | 94 ++ src/model/TreeChangeLog.js | 131 ++ src/model/TreeNode.js | 146 ++ src/model/TreeNodeChangeEvent.js | 117 ++ src/model/TreeNodeType.js | 57 + src/model/TreeVersioningKeepPeriod.js | 87 ++ .../TreeVersioningNodeDeletedStrategy.js | 57 + src/model/TreeVersioningPolicy.js | 145 ++ src/model/TreeWorkspaceRelativePath.js | 108 ++ 463 files changed, 36895 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 Gruntfile.js create mode 100644 lib/ApiClient.js create mode 100644 lib/ApiClient.js.map create mode 100644 lib/api/AuditDataServiceApi.js create mode 100644 lib/api/AuditDataServiceApi.js.map create mode 100644 lib/api/EnterpriseConfigServiceApi.js create mode 100644 lib/api/EnterpriseConfigServiceApi.js.map create mode 100644 lib/api/EnterpriseFrontendServiceApi.js create mode 100644 lib/api/EnterpriseFrontendServiceApi.js.map create mode 100644 lib/api/EnterpriseLogServiceApi.js create mode 100644 lib/api/EnterpriseLogServiceApi.js.map create mode 100644 lib/api/EnterprisePolicyServiceApi.js create mode 100644 lib/api/EnterprisePolicyServiceApi.js.map create mode 100644 lib/api/EnterpriseTokenServiceApi.js create mode 100644 lib/api/EnterpriseTokenServiceApi.js.map create mode 100644 lib/api/LicenseServiceApi.js create mode 100644 lib/api/LicenseServiceApi.js.map create mode 100644 lib/api/SchedulerServiceApi.js create mode 100644 lib/api/SchedulerServiceApi.js.map create mode 100644 lib/index.js create mode 100644 lib/index.js.map create mode 100644 lib/model/ActivityObject.js create mode 100644 lib/model/ActivityObject.js.map create mode 100644 lib/model/ActivityObjectType.js create mode 100644 lib/model/ActivityObjectType.js.map create mode 100644 lib/model/AuthLdapMapping.js create mode 100644 lib/model/AuthLdapMapping.js.map create mode 100644 lib/model/AuthLdapMemberOfMapping.js create mode 100644 lib/model/AuthLdapMemberOfMapping.js.map create mode 100644 lib/model/AuthLdapSearchFilter.js create mode 100644 lib/model/AuthLdapSearchFilter.js.map create mode 100644 lib/model/AuthLdapServerConfig.js create mode 100644 lib/model/AuthLdapServerConfig.js.map create mode 100644 lib/model/AuthOAuth2ClientConfig.js create mode 100644 lib/model/AuthOAuth2ClientConfig.js.map create mode 100644 lib/model/AuthOAuth2ConnectorBitbucketConfig.js create mode 100644 lib/model/AuthOAuth2ConnectorBitbucketConfig.js.map create mode 100644 lib/model/AuthOAuth2ConnectorCollection.js create mode 100644 lib/model/AuthOAuth2ConnectorCollection.js.map create mode 100644 lib/model/AuthOAuth2ConnectorConfig.js create mode 100644 lib/model/AuthOAuth2ConnectorConfig.js.map create mode 100644 lib/model/AuthOAuth2ConnectorGithubConfig.js create mode 100644 lib/model/AuthOAuth2ConnectorGithubConfig.js.map create mode 100644 lib/model/AuthOAuth2ConnectorGithubConfigOrg.js create mode 100644 lib/model/AuthOAuth2ConnectorGithubConfigOrg.js.map create mode 100644 lib/model/AuthOAuth2ConnectorGitlabConfig.js create mode 100644 lib/model/AuthOAuth2ConnectorGitlabConfig.js.map create mode 100644 lib/model/AuthOAuth2ConnectorLinkedinConfig.js create mode 100644 lib/model/AuthOAuth2ConnectorLinkedinConfig.js.map create mode 100644 lib/model/AuthOAuth2ConnectorMicrosoftConfig.js create mode 100644 lib/model/AuthOAuth2ConnectorMicrosoftConfig.js.map create mode 100644 lib/model/AuthOAuth2ConnectorOAuthConfig.js create mode 100644 lib/model/AuthOAuth2ConnectorOAuthConfig.js.map create mode 100644 lib/model/AuthOAuth2ConnectorOIDCConfig.js create mode 100644 lib/model/AuthOAuth2ConnectorOIDCConfig.js.map create mode 100644 lib/model/AuthOAuth2ConnectorPydioConfig.js create mode 100644 lib/model/AuthOAuth2ConnectorPydioConfig.js.map create mode 100644 lib/model/AuthOAuth2ConnectorPydioConfigConnector.js create mode 100644 lib/model/AuthOAuth2ConnectorPydioConfigConnector.js.map create mode 100644 lib/model/AuthOAuth2ConnectorSAMLConfig.js create mode 100644 lib/model/AuthOAuth2ConnectorSAMLConfig.js.map create mode 100644 lib/model/AuthOAuth2MappingRule.js create mode 100644 lib/model/AuthOAuth2MappingRule.js.map create mode 100644 lib/model/AuthPatListResponse.js create mode 100644 lib/model/AuthPatListResponse.js.map create mode 100644 lib/model/AuthPatType.js create mode 100644 lib/model/AuthPatType.js.map create mode 100644 lib/model/AuthPersonalAccessToken.js create mode 100644 lib/model/AuthPersonalAccessToken.js.map create mode 100644 lib/model/CertLicenseInfo.js create mode 100644 lib/model/CertLicenseInfo.js.map create mode 100644 lib/model/CertLicenseStatsResponse.js create mode 100644 lib/model/CertLicenseStatsResponse.js.map create mode 100644 lib/model/CertPutLicenseInfoRequest.js create mode 100644 lib/model/CertPutLicenseInfoRequest.js.map create mode 100644 lib/model/CertPutLicenseInfoResponse.js create mode 100644 lib/model/CertPutLicenseInfoResponse.js.map create mode 100644 lib/model/EntActionTemplate.js create mode 100644 lib/model/EntActionTemplate.js.map create mode 100644 lib/model/EntConnector.js create mode 100644 lib/model/EntConnector.js.map create mode 100644 lib/model/EntDeleteActionTemplateResponse.js create mode 100644 lib/model/EntDeleteActionTemplateResponse.js.map create mode 100644 lib/model/EntDeleteJobTemplateResponse.js create mode 100644 lib/model/EntDeleteJobTemplateResponse.js.map create mode 100644 lib/model/EntDeleteSelectorTemplateResponse.js create mode 100644 lib/model/EntDeleteSelectorTemplateResponse.js.map create mode 100644 lib/model/EntDeleteVersioningPolicyResponse.js create mode 100644 lib/model/EntDeleteVersioningPolicyResponse.js.map create mode 100644 lib/model/EntDeleteVirtualNodeResponse.js create mode 100644 lib/model/EntDeleteVirtualNodeResponse.js.map create mode 100644 lib/model/EntDocTemplatePiece.js create mode 100644 lib/model/EntDocTemplatePiece.js.map create mode 100644 lib/model/EntDocTemplatesResponse.js create mode 100644 lib/model/EntDocTemplatesResponse.js.map create mode 100644 lib/model/EntExternalDirectoryCollection.js create mode 100644 lib/model/EntExternalDirectoryCollection.js.map create mode 100644 lib/model/EntExternalDirectoryConfig.js create mode 100644 lib/model/EntExternalDirectoryConfig.js.map create mode 100644 lib/model/EntExternalDirectoryResponse.js create mode 100644 lib/model/EntExternalDirectoryResponse.js.map create mode 100644 lib/model/EntFrontLoginConnectorsResponse.js create mode 100644 lib/model/EntFrontLoginConnectorsResponse.js.map create mode 100644 lib/model/EntListAccessTokensRequest.js create mode 100644 lib/model/EntListAccessTokensRequest.js.map create mode 100644 lib/model/EntListActionTemplatesRequest.js create mode 100644 lib/model/EntListActionTemplatesRequest.js.map create mode 100644 lib/model/EntListActionTemplatesResponse.js create mode 100644 lib/model/EntListActionTemplatesResponse.js.map create mode 100644 lib/model/EntListJobTemplatesRequest.js create mode 100644 lib/model/EntListJobTemplatesRequest.js.map create mode 100644 lib/model/EntListJobTemplatesResponse.js create mode 100644 lib/model/EntListJobTemplatesResponse.js.map create mode 100644 lib/model/EntListSelectorTemplatesRequest.js create mode 100644 lib/model/EntListSelectorTemplatesRequest.js.map create mode 100644 lib/model/EntListSelectorTemplatesResponse.js create mode 100644 lib/model/EntListSelectorTemplatesResponse.js.map create mode 100644 lib/model/EntListSitesResponse.js create mode 100644 lib/model/EntListSitesResponse.js.map create mode 100644 lib/model/EntOAuth2ClientCollection.js create mode 100644 lib/model/EntOAuth2ClientCollection.js.map create mode 100644 lib/model/EntOAuth2ClientResponse.js create mode 100644 lib/model/EntOAuth2ClientResponse.js.map create mode 100644 lib/model/EntOAuth2ConnectorCollection.js create mode 100644 lib/model/EntOAuth2ConnectorCollection.js.map create mode 100644 lib/model/EntOAuth2ConnectorResponse.js create mode 100644 lib/model/EntOAuth2ConnectorResponse.js.map create mode 100644 lib/model/EntPersonalAccessTokenRequest.js create mode 100644 lib/model/EntPersonalAccessTokenRequest.js.map create mode 100644 lib/model/EntPersonalAccessTokenResponse.js create mode 100644 lib/model/EntPersonalAccessTokenResponse.js.map create mode 100644 lib/model/EntPlaygroundRequest.js create mode 100644 lib/model/EntPlaygroundRequest.js.map create mode 100644 lib/model/EntPlaygroundResponse.js create mode 100644 lib/model/EntPlaygroundResponse.js.map create mode 100644 lib/model/EntPutActionTemplateRequest.js create mode 100644 lib/model/EntPutActionTemplateRequest.js.map create mode 100644 lib/model/EntPutActionTemplateResponse.js create mode 100644 lib/model/EntPutActionTemplateResponse.js.map create mode 100644 lib/model/EntPutJobTemplateRequest.js create mode 100644 lib/model/EntPutJobTemplateRequest.js.map create mode 100644 lib/model/EntPutJobTemplateResponse.js create mode 100644 lib/model/EntPutJobTemplateResponse.js.map create mode 100644 lib/model/EntPutSelectorTemplateRequest.js create mode 100644 lib/model/EntPutSelectorTemplateRequest.js.map create mode 100644 lib/model/EntPutSelectorTemplateResponse.js create mode 100644 lib/model/EntPutSelectorTemplateResponse.js.map create mode 100644 lib/model/EntSelectorTemplate.js create mode 100644 lib/model/EntSelectorTemplate.js.map create mode 100644 lib/model/IdmACL.js create mode 100644 lib/model/IdmACL.js.map create mode 100644 lib/model/IdmACLAction.js create mode 100644 lib/model/IdmACLAction.js.map create mode 100644 lib/model/IdmPolicy.js create mode 100644 lib/model/IdmPolicy.js.map create mode 100644 lib/model/IdmPolicyCondition.js create mode 100644 lib/model/IdmPolicyCondition.js.map create mode 100644 lib/model/IdmPolicyEffect.js create mode 100644 lib/model/IdmPolicyEffect.js.map create mode 100644 lib/model/IdmPolicyGroup.js create mode 100644 lib/model/IdmPolicyGroup.js.map create mode 100644 lib/model/IdmPolicyResourceGroup.js create mode 100644 lib/model/IdmPolicyResourceGroup.js.map create mode 100644 lib/model/IdmRole.js create mode 100644 lib/model/IdmRole.js.map create mode 100644 lib/model/IdmUser.js create mode 100644 lib/model/IdmUser.js.map create mode 100644 lib/model/IdmWorkspace.js create mode 100644 lib/model/IdmWorkspace.js.map create mode 100644 lib/model/IdmWorkspaceScope.js create mode 100644 lib/model/IdmWorkspaceScope.js.map create mode 100644 lib/model/InstallProxyConfig.js create mode 100644 lib/model/InstallProxyConfig.js.map create mode 100644 lib/model/InstallTLSCertificate.js create mode 100644 lib/model/InstallTLSCertificate.js.map create mode 100644 lib/model/InstallTLSLetsEncrypt.js create mode 100644 lib/model/InstallTLSLetsEncrypt.js.map create mode 100644 lib/model/InstallTLSSelfSigned.js create mode 100644 lib/model/InstallTLSSelfSigned.js.map create mode 100644 lib/model/IpbanBannedConnection.js create mode 100644 lib/model/IpbanBannedConnection.js.map create mode 100644 lib/model/IpbanConnectionAttempt.js create mode 100644 lib/model/IpbanConnectionAttempt.js.map create mode 100644 lib/model/IpbanIPsCollection.js create mode 100644 lib/model/IpbanIPsCollection.js.map create mode 100644 lib/model/IpbanListBansCollection.js create mode 100644 lib/model/IpbanListBansCollection.js.map create mode 100644 lib/model/IpbanUnbanRequest.js create mode 100644 lib/model/IpbanUnbanRequest.js.map create mode 100644 lib/model/IpbanUnbanResponse.js create mode 100644 lib/model/IpbanUnbanResponse.js.map create mode 100644 lib/model/JobsAction.js create mode 100644 lib/model/JobsAction.js.map create mode 100644 lib/model/JobsActionLog.js create mode 100644 lib/model/JobsActionLog.js.map create mode 100644 lib/model/JobsActionMessage.js create mode 100644 lib/model/JobsActionMessage.js.map create mode 100644 lib/model/JobsActionOutput.js create mode 100644 lib/model/JobsActionOutput.js.map create mode 100644 lib/model/JobsActionOutputFilter.js create mode 100644 lib/model/JobsActionOutputFilter.js.map create mode 100644 lib/model/JobsContextMetaFilter.js create mode 100644 lib/model/JobsContextMetaFilter.js.map create mode 100644 lib/model/JobsContextMetaFilterType.js create mode 100644 lib/model/JobsContextMetaFilterType.js.map create mode 100644 lib/model/JobsDataSourceSelector.js create mode 100644 lib/model/JobsDataSourceSelector.js.map create mode 100644 lib/model/JobsDataSourceSelectorType.js create mode 100644 lib/model/JobsDataSourceSelectorType.js.map create mode 100644 lib/model/JobsDeleteJobResponse.js create mode 100644 lib/model/JobsDeleteJobResponse.js.map create mode 100644 lib/model/JobsIdmSelector.js create mode 100644 lib/model/JobsIdmSelector.js.map create mode 100644 lib/model/JobsIdmSelectorType.js create mode 100644 lib/model/JobsIdmSelectorType.js.map create mode 100644 lib/model/JobsJob.js create mode 100644 lib/model/JobsJob.js.map create mode 100644 lib/model/JobsJobParameter.js create mode 100644 lib/model/JobsJobParameter.js.map create mode 100644 lib/model/JobsNodesSelector.js create mode 100644 lib/model/JobsNodesSelector.js.map create mode 100644 lib/model/JobsPutJobRequest.js create mode 100644 lib/model/JobsPutJobRequest.js.map create mode 100644 lib/model/JobsPutJobResponse.js create mode 100644 lib/model/JobsPutJobResponse.js.map create mode 100644 lib/model/JobsSchedule.js create mode 100644 lib/model/JobsSchedule.js.map create mode 100644 lib/model/JobsTask.js create mode 100644 lib/model/JobsTask.js.map create mode 100644 lib/model/JobsTaskStatus.js create mode 100644 lib/model/JobsTaskStatus.js.map create mode 100644 lib/model/JobsTriggerFilter.js create mode 100644 lib/model/JobsTriggerFilter.js.map create mode 100644 lib/model/JobsUsersSelector.js create mode 100644 lib/model/JobsUsersSelector.js.map create mode 100644 lib/model/ListLogRequestLogFormat.js create mode 100644 lib/model/ListLogRequestLogFormat.js.map create mode 100644 lib/model/LogListLogRequest.js create mode 100644 lib/model/LogListLogRequest.js.map create mode 100644 lib/model/LogLogMessage.js create mode 100644 lib/model/LogLogMessage.js.map create mode 100644 lib/model/LogRelType.js create mode 100644 lib/model/LogRelType.js.map create mode 100644 lib/model/LogTimeRangeCursor.js create mode 100644 lib/model/LogTimeRangeCursor.js.map create mode 100644 lib/model/LogTimeRangeRequest.js create mode 100644 lib/model/LogTimeRangeRequest.js.map create mode 100644 lib/model/LogTimeRangeResult.js create mode 100644 lib/model/LogTimeRangeResult.js.map create mode 100644 lib/model/NodeChangeEventEventType.js create mode 100644 lib/model/NodeChangeEventEventType.js.map create mode 100644 lib/model/ObjectDataSource.js create mode 100644 lib/model/ObjectDataSource.js.map create mode 100644 lib/model/ObjectEncryptionMode.js create mode 100644 lib/model/ObjectEncryptionMode.js.map create mode 100644 lib/model/ObjectStorageType.js create mode 100644 lib/model/ObjectStorageType.js.map create mode 100644 lib/model/ProtobufAny.js create mode 100644 lib/model/ProtobufAny.js.map create mode 100644 lib/model/ReportsAuditedWorkspace.js create mode 100644 lib/model/ReportsAuditedWorkspace.js.map create mode 100644 lib/model/ReportsSharedResource.js create mode 100644 lib/model/ReportsSharedResource.js.map create mode 100644 lib/model/ReportsSharedResourceShareType.js create mode 100644 lib/model/ReportsSharedResourceShareType.js.map create mode 100644 lib/model/ReportsSharedResourcesRequest.js create mode 100644 lib/model/ReportsSharedResourcesRequest.js.map create mode 100644 lib/model/ReportsSharedResourcesResponse.js create mode 100644 lib/model/ReportsSharedResourcesResponse.js.map create mode 100644 lib/model/RestDeleteResponse.js create mode 100644 lib/model/RestDeleteResponse.js.map create mode 100644 lib/model/RestError.js create mode 100644 lib/model/RestError.js.map create mode 100644 lib/model/RestLogMessageCollection.js create mode 100644 lib/model/RestLogMessageCollection.js.map create mode 100644 lib/model/RestRevokeResponse.js create mode 100644 lib/model/RestRevokeResponse.js.map create mode 100644 lib/model/RestTimeRangeResultCollection.js create mode 100644 lib/model/RestTimeRangeResultCollection.js.map create mode 100644 lib/model/ServiceOperationType.js create mode 100644 lib/model/ServiceOperationType.js.map create mode 100644 lib/model/ServiceQuery.js create mode 100644 lib/model/ServiceQuery.js.map create mode 100644 lib/model/ServiceResourcePolicy.js create mode 100644 lib/model/ServiceResourcePolicy.js.map create mode 100644 lib/model/ServiceResourcePolicyAction.js create mode 100644 lib/model/ServiceResourcePolicyAction.js.map create mode 100644 lib/model/ServiceResourcePolicyPolicyEffect.js create mode 100644 lib/model/ServiceResourcePolicyPolicyEffect.js.map create mode 100644 lib/model/ServiceResourcePolicyQuery.js create mode 100644 lib/model/ServiceResourcePolicyQuery.js.map create mode 100644 lib/model/TreeChangeLog.js create mode 100644 lib/model/TreeChangeLog.js.map create mode 100644 lib/model/TreeNode.js create mode 100644 lib/model/TreeNode.js.map create mode 100644 lib/model/TreeNodeChangeEvent.js create mode 100644 lib/model/TreeNodeChangeEvent.js.map create mode 100644 lib/model/TreeNodeType.js create mode 100644 lib/model/TreeNodeType.js.map create mode 100644 lib/model/TreeVersioningKeepPeriod.js create mode 100644 lib/model/TreeVersioningKeepPeriod.js.map create mode 100644 lib/model/TreeVersioningNodeDeletedStrategy.js create mode 100644 lib/model/TreeVersioningNodeDeletedStrategy.js.map create mode 100644 lib/model/TreeVersioningPolicy.js create mode 100644 lib/model/TreeVersioningPolicy.js.map create mode 100644 lib/model/TreeWorkspaceRelativePath.js create mode 100644 lib/model/TreeWorkspaceRelativePath.js.map create mode 100644 package.json create mode 100644 src/ApiClient.js create mode 100644 src/api/AuditDataServiceApi.js create mode 100644 src/api/EnterpriseConfigServiceApi.js create mode 100644 src/api/EnterpriseFrontendServiceApi.js create mode 100644 src/api/EnterpriseLogServiceApi.js create mode 100644 src/api/EnterprisePolicyServiceApi.js create mode 100644 src/api/EnterpriseTokenServiceApi.js create mode 100644 src/api/LicenseServiceApi.js create mode 100644 src/api/SchedulerServiceApi.js create mode 100644 src/index.js create mode 100644 src/model/ActivityObject.js create mode 100644 src/model/ActivityObjectType.js create mode 100644 src/model/AuthLdapMapping.js create mode 100644 src/model/AuthLdapMemberOfMapping.js create mode 100644 src/model/AuthLdapSearchFilter.js create mode 100644 src/model/AuthLdapServerConfig.js create mode 100644 src/model/AuthOAuth2ClientConfig.js create mode 100644 src/model/AuthOAuth2ConnectorBitbucketConfig.js create mode 100644 src/model/AuthOAuth2ConnectorCollection.js create mode 100644 src/model/AuthOAuth2ConnectorConfig.js create mode 100644 src/model/AuthOAuth2ConnectorGithubConfig.js create mode 100644 src/model/AuthOAuth2ConnectorGithubConfigOrg.js create mode 100644 src/model/AuthOAuth2ConnectorGitlabConfig.js create mode 100644 src/model/AuthOAuth2ConnectorLinkedinConfig.js create mode 100644 src/model/AuthOAuth2ConnectorMicrosoftConfig.js create mode 100644 src/model/AuthOAuth2ConnectorOAuthConfig.js create mode 100644 src/model/AuthOAuth2ConnectorOIDCConfig.js create mode 100644 src/model/AuthOAuth2ConnectorPydioConfig.js create mode 100644 src/model/AuthOAuth2ConnectorPydioConfigConnector.js create mode 100644 src/model/AuthOAuth2ConnectorSAMLConfig.js create mode 100644 src/model/AuthOAuth2MappingRule.js create mode 100644 src/model/AuthPatListResponse.js create mode 100644 src/model/AuthPatType.js create mode 100644 src/model/AuthPersonalAccessToken.js create mode 100644 src/model/CertLicenseInfo.js create mode 100644 src/model/CertLicenseStatsResponse.js create mode 100644 src/model/CertPutLicenseInfoRequest.js create mode 100644 src/model/CertPutLicenseInfoResponse.js create mode 100644 src/model/EntActionTemplate.js create mode 100644 src/model/EntConnector.js create mode 100644 src/model/EntDeleteActionTemplateResponse.js create mode 100644 src/model/EntDeleteJobTemplateResponse.js create mode 100644 src/model/EntDeleteSelectorTemplateResponse.js create mode 100644 src/model/EntDeleteVersioningPolicyResponse.js create mode 100644 src/model/EntDeleteVirtualNodeResponse.js create mode 100644 src/model/EntDocTemplatePiece.js create mode 100644 src/model/EntDocTemplatesResponse.js create mode 100644 src/model/EntExternalDirectoryCollection.js create mode 100644 src/model/EntExternalDirectoryConfig.js create mode 100644 src/model/EntExternalDirectoryResponse.js create mode 100644 src/model/EntFrontLoginConnectorsResponse.js create mode 100644 src/model/EntListAccessTokensRequest.js create mode 100644 src/model/EntListActionTemplatesRequest.js create mode 100644 src/model/EntListActionTemplatesResponse.js create mode 100644 src/model/EntListJobTemplatesRequest.js create mode 100644 src/model/EntListJobTemplatesResponse.js create mode 100644 src/model/EntListSelectorTemplatesRequest.js create mode 100644 src/model/EntListSelectorTemplatesResponse.js create mode 100644 src/model/EntListSitesResponse.js create mode 100644 src/model/EntOAuth2ClientCollection.js create mode 100644 src/model/EntOAuth2ClientResponse.js create mode 100644 src/model/EntOAuth2ConnectorCollection.js create mode 100644 src/model/EntOAuth2ConnectorResponse.js create mode 100644 src/model/EntPersonalAccessTokenRequest.js create mode 100644 src/model/EntPersonalAccessTokenResponse.js create mode 100644 src/model/EntPlaygroundRequest.js create mode 100644 src/model/EntPlaygroundResponse.js create mode 100644 src/model/EntPutActionTemplateRequest.js create mode 100644 src/model/EntPutActionTemplateResponse.js create mode 100644 src/model/EntPutJobTemplateRequest.js create mode 100644 src/model/EntPutJobTemplateResponse.js create mode 100644 src/model/EntPutSelectorTemplateRequest.js create mode 100644 src/model/EntPutSelectorTemplateResponse.js create mode 100644 src/model/EntSelectorTemplate.js create mode 100644 src/model/IdmACL.js create mode 100644 src/model/IdmACLAction.js create mode 100644 src/model/IdmPolicy.js create mode 100644 src/model/IdmPolicyCondition.js create mode 100644 src/model/IdmPolicyEffect.js create mode 100644 src/model/IdmPolicyGroup.js create mode 100644 src/model/IdmPolicyResourceGroup.js create mode 100644 src/model/IdmRole.js create mode 100644 src/model/IdmUser.js create mode 100644 src/model/IdmWorkspace.js create mode 100644 src/model/IdmWorkspaceScope.js create mode 100644 src/model/InstallProxyConfig.js create mode 100644 src/model/InstallTLSCertificate.js create mode 100644 src/model/InstallTLSLetsEncrypt.js create mode 100644 src/model/InstallTLSSelfSigned.js create mode 100644 src/model/IpbanBannedConnection.js create mode 100644 src/model/IpbanConnectionAttempt.js create mode 100644 src/model/IpbanIPsCollection.js create mode 100644 src/model/IpbanListBansCollection.js create mode 100644 src/model/IpbanUnbanRequest.js create mode 100644 src/model/IpbanUnbanResponse.js create mode 100644 src/model/JobsAction.js create mode 100644 src/model/JobsActionLog.js create mode 100644 src/model/JobsActionMessage.js create mode 100644 src/model/JobsActionOutput.js create mode 100644 src/model/JobsActionOutputFilter.js create mode 100644 src/model/JobsContextMetaFilter.js create mode 100644 src/model/JobsContextMetaFilterType.js create mode 100644 src/model/JobsDataSourceSelector.js create mode 100644 src/model/JobsDataSourceSelectorType.js create mode 100644 src/model/JobsDeleteJobResponse.js create mode 100644 src/model/JobsIdmSelector.js create mode 100644 src/model/JobsIdmSelectorType.js create mode 100644 src/model/JobsJob.js create mode 100644 src/model/JobsJobParameter.js create mode 100644 src/model/JobsNodesSelector.js create mode 100644 src/model/JobsPutJobRequest.js create mode 100644 src/model/JobsPutJobResponse.js create mode 100644 src/model/JobsSchedule.js create mode 100644 src/model/JobsTask.js create mode 100644 src/model/JobsTaskStatus.js create mode 100644 src/model/JobsTriggerFilter.js create mode 100644 src/model/JobsUsersSelector.js create mode 100644 src/model/ListLogRequestLogFormat.js create mode 100644 src/model/LogListLogRequest.js create mode 100644 src/model/LogLogMessage.js create mode 100644 src/model/LogRelType.js create mode 100644 src/model/LogTimeRangeCursor.js create mode 100644 src/model/LogTimeRangeRequest.js create mode 100644 src/model/LogTimeRangeResult.js create mode 100644 src/model/NodeChangeEventEventType.js create mode 100644 src/model/ObjectDataSource.js create mode 100644 src/model/ObjectEncryptionMode.js create mode 100644 src/model/ObjectStorageType.js create mode 100644 src/model/ProtobufAny.js create mode 100644 src/model/ReportsAuditedWorkspace.js create mode 100644 src/model/ReportsSharedResource.js create mode 100644 src/model/ReportsSharedResourceShareType.js create mode 100644 src/model/ReportsSharedResourcesRequest.js create mode 100644 src/model/ReportsSharedResourcesResponse.js create mode 100644 src/model/RestDeleteResponse.js create mode 100644 src/model/RestError.js create mode 100644 src/model/RestLogMessageCollection.js create mode 100644 src/model/RestRevokeResponse.js create mode 100644 src/model/RestTimeRangeResultCollection.js create mode 100644 src/model/ServiceOperationType.js create mode 100644 src/model/ServiceQuery.js create mode 100644 src/model/ServiceResourcePolicy.js create mode 100644 src/model/ServiceResourcePolicyAction.js create mode 100644 src/model/ServiceResourcePolicyPolicyEffect.js create mode 100644 src/model/ServiceResourcePolicyQuery.js create mode 100644 src/model/TreeChangeLog.js create mode 100644 src/model/TreeNode.js create mode 100644 src/model/TreeNodeChangeEvent.js create mode 100644 src/model/TreeNodeType.js create mode 100644 src/model/TreeVersioningKeepPeriod.js create mode 100644 src/model/TreeVersioningNodeDeletedStrategy.js create mode 100644 src/model/TreeVersioningPolicy.js create mode 100644 src/model/TreeWorkspaceRelativePath.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d570307 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules +.idea +package-lock.json +npm-debug.log \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..cadaf41 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,27 @@ +module.exports = function(grunt) { + + grunt.initConfig({ + babel: { + options: { + sourceMap: true, + presets: ["@babel/preset-env"], + plugins: ["@babel/plugin-proposal-class-properties"], + }, + dist: { + files: [ + { + expand: true, + cwd: 'src/', + src: ['**/*.js'], + dest: 'lib/' + } + ], + }, + }, + }); + + grunt.loadNpmTasks('grunt-babel'); + + grunt.registerTask("default", ["babel"]); + +}; \ No newline at end of file diff --git a/README.md b/README.md index a43cba8..ee37625 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,50 @@ # cells-enterprise-sdk-js -Javascript SDK for Cells Enterprise Rest API. + +Javascript SDK for **Cells Enterprise** Rest API. Please check [cells-sdk-js](https://github.com/pydio/cells-sdk-js) for accessing the core APIs of Pydio Cells (home edition). + +This SDK is generated automatically using `swagger-codegen` tool from the OpenAPI specification of Cells Enterprise Rest API. It does not rely on any framework and uses superagent internally for performing HTTP requests. + +Since Cells v3, it is used internally by the official Pydio Cells Enterprise web modules. + +## Usage + +### Installation + +Simply use `npm install --save cells-enterprise-sdk` to append the latest version to your package.json. + +### Authentication + +Authentication is passed via the `Authorization: Bearer $TOKEN` header, where `$TOKEN` can be a Personal Access Token, or retrieved dynamically by the frontend login process. + +### Endpoints + +All Enterprise APIs described in Cells official documentation are supported. Below are listed the main services available : + +- AuditDataService +- EnterpriseConfigService +- EnterpriseFrontendService +- EnterpriseLogService +- EnterprisePolicyService +- EnterpriseTokenService +- SchedulerService + +Please refer to the docs for more information. + +### Example + +A sample application is available in cells-sdk example/app.js + +Basic tree listing looks like : + +```javascript + var api = new TreeServiceApi(client); + var request = new RestGetBulkMetaRequest(); + request.NodePaths = ['/folder/*']; + api.bulkStatNodes(request).then(res => { + // Read array res.Nodes with all nodes + }); +``` + +## License + +This library is licensed under Apache V2.0 license. \ No newline at end of file diff --git a/lib/ApiClient.js b/lib/ApiClient.js new file mode 100644 index 0000000..a42beea --- /dev/null +++ b/lib/ApiClient.js @@ -0,0 +1,631 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _superagent = _interopRequireDefault(require("superagent")); + +var _querystring = _interopRequireDefault(require("querystring")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* @module ApiClient +* @version 2.0 +*/ + +/** +* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an +* application to use this class directly - the *Api and model classes provide the public API for the service. The +* contents of this file should be regarded as internal but are documented for completeness. +* @alias module:ApiClient +* @class +*/ +var ApiClient = /*#__PURE__*/function () { + function ApiClient() { + _classCallCheck(this, ApiClient); + + /** + * The base URL against which to resolve every API call's (relative) path. + * @type {String} + * @default http://localhost + */ + this.basePath = 'http://localhost'.replace(/\/+$/, ''); + /** + * The authentication methods to be included for all API calls. + * @type {Array.} + */ + + this.authentications = {}; + /** + * The default HTTP headers to be included for all API calls. + * @type {Array.} + * @default {} + */ + + this.defaultHeaders = {}; + /** + * The default HTTP timeout for all API calls. + * @type {Number} + * @default 60000 + */ + + this.timeout = 60000; + /** + * If set to false an additional timestamp parameter is added to all API GET calls to + * prevent browser caching + * @type {Boolean} + * @default true + */ + + this.cache = true; + /** + * If set to true, the client will save the cookies from each server + * response, and return them in the next request. + * @default false + */ + + this.enableCookies = false; + /* + * Used to save and return cookies in a node.js (non-browser) setting, + * if this.enableCookies is set to true. + */ + + if (typeof window === 'undefined') { + this.agent = new _superagent["default"].agent(); + } + } + /** + * Returns a string representation for an actual parameter. + * @param param The actual parameter. + * @returns {String} The string representation of param. + */ + + + _createClass(ApiClient, [{ + key: "paramToString", + value: function paramToString(param) { + if (param == undefined || param == null) { + return ''; + } + + if (param instanceof Date) { + return param.toJSON(); + } + + return param.toString(); + } + /** + * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. + * NOTE: query parameters are not handled here. + * @param {String} path The path to append to the base URL. + * @param {Object} pathParams The parameter values to append. + * @returns {String} The encoded path with parameter values substituted. + */ + + }, { + key: "buildUrl", + value: function buildUrl(path, pathParams) { + var _this = this; + + if (!path.match(/^\//)) { + path = '/' + path; + } + + var url = this.basePath + path; + url = url.replace(/\{([\w-]+)\}/g, function (fullMatch, key) { + var value; + + if (pathParams.hasOwnProperty(key)) { + value = _this.paramToString(pathParams[key]); + } else { + value = fullMatch; + } + + return encodeURIComponent(value); + }); + return url; + } + /** + * Checks whether the given content type represents JSON.
+ * JSON content type examples:
+ *
    + *
  • application/json
  • + *
  • application/json; charset=UTF8
  • + *
  • APPLICATION/JSON
  • + *
+ * @param {String} contentType The MIME content type to check. + * @returns {Boolean} true if contentType represents JSON, otherwise false. + */ + + }, { + key: "isJsonMime", + value: function isJsonMime(contentType) { + return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); + } + /** + * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. + * @param {Array.} contentTypes + * @returns {String} The chosen content type, preferring JSON. + */ + + }, { + key: "jsonPreferredMime", + value: function jsonPreferredMime(contentTypes) { + for (var i = 0; i < contentTypes.length; i++) { + if (this.isJsonMime(contentTypes[i])) { + return contentTypes[i]; + } + } + + return contentTypes[0]; + } + /** + * Checks whether the given parameter value represents file-like content. + * @param param The parameter to check. + * @returns {Boolean} true if param represents a file. + */ + + }, { + key: "isFileParam", + value: function isFileParam(param) { + // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) + if (typeof require === 'function') { + var fs; + + try { + fs = require('fs'); + } catch (err) {} + + if (fs && fs.ReadStream && param instanceof fs.ReadStream) { + return true; + } + } // Buffer in Node.js + + + if (typeof Buffer === 'function' && param instanceof Buffer) { + return true; + } // Blob in browser + + + if (typeof Blob === 'function' && param instanceof Blob) { + return true; + } // File in browser (it seems File object is also instance of Blob, but keep this for safe) + + + if (typeof File === 'function' && param instanceof File) { + return true; + } + + return false; + } + /** + * Normalizes parameter values: + *
    + *
  • remove nils
  • + *
  • keep files and arrays
  • + *
  • format to string with `paramToString` for other cases
  • + *
+ * @param {Object.} params The parameters as object properties. + * @returns {Object.} normalized parameters. + */ + + }, { + key: "normalizeParams", + value: function normalizeParams(params) { + var newParams = {}; + + for (var key in params) { + if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { + var value = params[key]; + + if (this.isFileParam(value) || Array.isArray(value)) { + newParams[key] = value; + } else { + newParams[key] = this.paramToString(value); + } + } + } + + return newParams; + } + /** + * Enumeration of collection format separator strategies. + * @enum {String} + * @readonly + */ + + }, { + key: "buildCollectionParam", + value: + /** + * Builds a string representation of an array-type actual parameter, according to the given collection format. + * @param {Array} param An array parameter. + * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. + * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns + * param as is if collectionFormat is multi. + */ + function buildCollectionParam(param, collectionFormat) { + if (param == null) { + return null; + } + + switch (collectionFormat) { + case 'csv': + return param.map(this.paramToString).join(','); + + case 'ssv': + return param.map(this.paramToString).join(' '); + + case 'tsv': + return param.map(this.paramToString).join('\t'); + + case 'pipes': + return param.map(this.paramToString).join('|'); + + case 'multi': + //return the array directly as SuperAgent will handle it as expected + return param.map(this.paramToString); + + default: + throw new Error('Unknown collection format: ' + collectionFormat); + } + } + /** + * Applies authentication headers to the request. + * @param {Object} request The request object created by a superagent() call. + * @param {Array.} authNames An array of authentication method names. + */ + + }, { + key: "applyAuthToRequest", + value: function applyAuthToRequest(request, authNames) { + var _this2 = this; + + authNames.forEach(function (authName) { + var auth = _this2.authentications[authName]; + + switch (auth.type) { + case 'basic': + if (auth.username || auth.password) { + request.auth(auth.username || '', auth.password || ''); + } + + break; + + case 'apiKey': + if (auth.apiKey) { + var data = {}; + + if (auth.apiKeyPrefix) { + data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; + } else { + data[auth.name] = auth.apiKey; + } + + if (auth['in'] === 'header') { + request.set(data); + } else { + request.query(data); + } + } + + break; + + case 'oauth2': + if (auth.accessToken) { + request.set({ + 'Authorization': 'Bearer ' + auth.accessToken + }); + } + + break; + + default: + throw new Error('Unknown authentication type: ' + auth.type); + } + }); + } + /** + * Deserializes an HTTP response body into a value of the specified type. + * @param {Object} response A SuperAgent response object. + * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns A value of the specified type. + */ + + }, { + key: "deserialize", + value: function deserialize(response, returnType) { + if (response == null || returnType == null || response.status == 204) { + return null; + } // Rely on SuperAgent for parsing response body. + // See http://visionmedia.github.io/superagent/#parsing-response-bodies + + + var data = response.body; + + if (data == null || _typeof(data) === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length) { + // SuperAgent does not always produce a body; use the unparsed response as a fallback + data = response.text; + } + + return ApiClient.convertToType(data, returnType); + } + /** + * Invokes the REST service using the supplied settings and parameters. + * @param {String} path The base URL to invoke. + * @param {String} httpMethod The HTTP method to use. + * @param {Object.} pathParams A map of path parameters and their values. + * @param {Object.} queryParams A map of query parameters and their values. + * @param {Object.} headerParams A map of header parameters and their values. + * @param {Object.} formParams A map of form parameters and their values. + * @param {Object} bodyParam The value to pass as the request body. + * @param {Array.} authNames An array of authentication type names. + * @param {Array.} contentTypes An array of request MIME types. + * @param {Array.} accepts An array of acceptable response MIME types. + * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the + * constructor for a complex type. + * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object. + */ + + }, { + key: "callApi", + value: function callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType) { + var _this3 = this; + + var url = this.buildUrl(path, pathParams); + var request = (0, _superagent["default"])(httpMethod, url); // apply authentications + + this.applyAuthToRequest(request, authNames); // set query parameters + + if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { + queryParams['_'] = new Date().getTime(); + } + + request.query(this.normalizeParams(queryParams)); // set header parameters + + request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); // set request timeout + + request.timeout(this.timeout); + var contentType = this.jsonPreferredMime(contentTypes); + + if (contentType) { + // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) + if (contentType != 'multipart/form-data') { + request.type(contentType); + } + } else if (!request.header['Content-Type']) { + request.type('application/json'); + } + + if (contentType === 'application/x-www-form-urlencoded') { + request.send(_querystring["default"].stringify(this.normalizeParams(formParams))); + } else if (contentType == 'multipart/form-data') { + var _formParams = this.normalizeParams(formParams); + + for (var key in _formParams) { + if (_formParams.hasOwnProperty(key)) { + if (this.isFileParam(_formParams[key])) { + // file field + request.attach(key, _formParams[key]); + } else { + request.field(key, _formParams[key]); + } + } + } + } else if (bodyParam) { + request.send(bodyParam); + } + + var accept = this.jsonPreferredMime(accepts); + + if (accept) { + request.accept(accept); + } + + if (returnType === 'Blob') { + request.responseType('blob'); + } else if (returnType === 'String') { + request.responseType('string'); + } // Attach previously saved cookies, if enabled + + + if (this.enableCookies) { + if (typeof window === 'undefined') { + this.agent.attachCookies(request); + } else { + request.withCredentials(); + } + } + + return new Promise(function (resolve, reject) { + request.end(function (error, response) { + if (error) { + reject(error); + } else { + try { + var data = _this3.deserialize(response, returnType); + + if (_this3.enableCookies && typeof window === 'undefined') { + _this3.agent.saveCookies(response); + } + + resolve({ + data: data, + response: response + }); + } catch (err) { + reject(err); + } + } + }); + }); + } + /** + * Parses an ISO-8601 string representation of a date value. + * @param {String} str The date value as a string. + * @returns {Date} The parsed date object. + */ + + }], [{ + key: "parseDate", + value: function parseDate(str) { + return new Date(str.replace(/T/i, ' ')); + } + /** + * Converts a value to the specified type. + * @param {(String|Object)} data The data to convert, as a string or object. + * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns An instance of the specified type or null or undefined if data is null or undefined. + */ + + }, { + key: "convertToType", + value: function convertToType(data, type) { + if (data === null || data === undefined) return data; + + switch (type) { + case 'Boolean': + return Boolean(data); + + case 'Integer': + return parseInt(data, 10); + + case 'Number': + return parseFloat(data); + + case 'String': + return String(data); + + case 'Date': + return ApiClient.parseDate(String(data)); + + case 'Blob': + return data; + + default: + if (type === Object) { + // generic object, return directly + return data; + } else if (typeof type === 'function') { + // for model type like: User + return type.constructFromObject(data); + } else if (Array.isArray(type)) { + // for array type like: ['String'] + var itemType = type[0]; + return data.map(function (item) { + return ApiClient.convertToType(item, itemType); + }); + } else if (_typeof(type) === 'object') { + // for plain object type like: {'String': 'Integer'} + var keyType, valueType; + + for (var k in type) { + if (type.hasOwnProperty(k)) { + keyType = k; + valueType = type[k]; + break; + } + } + + var result = {}; + + for (var k in data) { + if (data.hasOwnProperty(k)) { + var key = ApiClient.convertToType(k, keyType); + var value = ApiClient.convertToType(data[k], valueType); + result[key] = value; + } + } + + return result; + } else { + // for unknown type, return the data directly + return data; + } + + } + } + /** + * Constructs a new map or array model from REST data. + * @param data {Object|Array} The REST data. + * @param obj {Object|Array} The target object or array. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj, itemType) { + if (Array.isArray(data)) { + for (var i = 0; i < data.length; i++) { + if (data.hasOwnProperty(i)) obj[i] = ApiClient.convertToType(data[i], itemType); + } + } else { + for (var k in data) { + if (data.hasOwnProperty(k)) obj[k] = ApiClient.convertToType(data[k], itemType); + } + } + } + }]); + + return ApiClient; +}(); +/** +* The default API client implementation. +* @type {module:ApiClient} +*/ + + +exports["default"] = ApiClient; + +_defineProperty(ApiClient, "CollectionFormatEnum", { + /** + * Comma-separated values. Value: csv + * @const + */ + CSV: ',', + + /** + * Space-separated values. Value: ssv + * @const + */ + SSV: ' ', + + /** + * Tab-separated values. Value: tsv + * @const + */ + TSV: '\t', + + /** + * Pipe(|)-separated values. Value: pipes + * @const + */ + PIPES: '|', + + /** + * Native array. Value: multi + * @const + */ + MULTI: 'multi' +}); + +ApiClient.instance = new ApiClient(); +//# sourceMappingURL=ApiClient.js.map diff --git a/lib/ApiClient.js.map b/lib/ApiClient.js.map new file mode 100644 index 0000000..ab29dcc --- /dev/null +++ b/lib/ApiClient.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../src/ApiClient.js"],"names":["ApiClient","basePath","replace","authentications","defaultHeaders","timeout","cache","enableCookies","window","agent","superagent","param","undefined","Date","toJSON","toString","path","pathParams","match","url","fullMatch","key","value","hasOwnProperty","paramToString","encodeURIComponent","contentType","Boolean","contentTypes","i","length","isJsonMime","require","fs","err","ReadStream","Buffer","Blob","File","params","newParams","isFileParam","Array","isArray","collectionFormat","map","join","Error","request","authNames","forEach","authName","auth","type","username","password","apiKey","data","apiKeyPrefix","name","set","query","accessToken","response","returnType","status","body","Object","keys","text","convertToType","httpMethod","queryParams","headerParams","formParams","bodyParam","accepts","buildUrl","applyAuthToRequest","toUpperCase","getTime","normalizeParams","jsonPreferredMime","header","send","querystring","stringify","_formParams","attach","field","accept","responseType","attachCookies","withCredentials","Promise","resolve","reject","end","error","deserialize","saveCookies","str","parseInt","parseFloat","String","parseDate","constructFromObject","itemType","item","keyType","valueType","k","result","obj","CSV","SSV","TSV","PIPES","MULTI","instance"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport superagent from \"superagent\";\nimport querystring from \"querystring\";\n\n/**\n* @module ApiClient\n* @version 2.0\n*/\n\n/**\n* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an\n* application to use this class directly - the *Api and model classes provide the public API for the service. The\n* contents of this file should be regarded as internal but are documented for completeness.\n* @alias module:ApiClient\n* @class\n*/\nexport default class ApiClient {\n constructor() {\n /**\n * The base URL against which to resolve every API call's (relative) path.\n * @type {String}\n * @default http://localhost\n */\n this.basePath = 'http://localhost'.replace(/\\/+$/, '');\n\n /**\n * The authentication methods to be included for all API calls.\n * @type {Array.}\n */\n this.authentications = {\n }\n\n /**\n * The default HTTP headers to be included for all API calls.\n * @type {Array.}\n * @default {}\n */\n this.defaultHeaders = {};\n\n /**\n * The default HTTP timeout for all API calls.\n * @type {Number}\n * @default 60000\n */\n this.timeout = 60000;\n\n /**\n * If set to false an additional timestamp parameter is added to all API GET calls to\n * prevent browser caching\n * @type {Boolean}\n * @default true\n */\n this.cache = true;\n\n /**\n * If set to true, the client will save the cookies from each server\n * response, and return them in the next request.\n * @default false\n */\n this.enableCookies = false;\n\n /*\n * Used to save and return cookies in a node.js (non-browser) setting,\n * if this.enableCookies is set to true.\n */\n if (typeof window === 'undefined') {\n this.agent = new superagent.agent();\n }\n }\n\n /**\n * Returns a string representation for an actual parameter.\n * @param param The actual parameter.\n * @returns {String} The string representation of param.\n */\n paramToString(param) {\n if (param == undefined || param == null) {\n return '';\n }\n if (param instanceof Date) {\n return param.toJSON();\n }\n\n return param.toString();\n }\n\n /**\n * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.\n * NOTE: query parameters are not handled here.\n * @param {String} path The path to append to the base URL.\n * @param {Object} pathParams The parameter values to append.\n * @returns {String} The encoded path with parameter values substituted.\n */\n buildUrl(path, pathParams) {\n if (!path.match(/^\\//)) {\n path = '/' + path;\n }\n\n var url = this.basePath + path;\n url = url.replace(/\\{([\\w-]+)\\}/g, (fullMatch, key) => {\n var value;\n if (pathParams.hasOwnProperty(key)) {\n value = this.paramToString(pathParams[key]);\n } else {\n value = fullMatch;\n }\n\n return encodeURIComponent(value);\n });\n\n return url;\n }\n\n /**\n * Checks whether the given content type represents JSON.
\n * JSON content type examples:
\n *
    \n *
  • application/json
  • \n *
  • application/json; charset=UTF8
  • \n *
  • APPLICATION/JSON
  • \n *
\n * @param {String} contentType The MIME content type to check.\n * @returns {Boolean} true if contentType represents JSON, otherwise false.\n */\n isJsonMime(contentType) {\n return Boolean(contentType != null && contentType.match(/^application\\/json(;.*)?$/i));\n }\n\n /**\n * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.\n * @param {Array.} contentTypes\n * @returns {String} The chosen content type, preferring JSON.\n */\n jsonPreferredMime(contentTypes) {\n for (var i = 0; i < contentTypes.length; i++) {\n if (this.isJsonMime(contentTypes[i])) {\n return contentTypes[i];\n }\n }\n\n return contentTypes[0];\n }\n\n /**\n * Checks whether the given parameter value represents file-like content.\n * @param param The parameter to check.\n * @returns {Boolean} true if param represents a file.\n */\n isFileParam(param) {\n // fs.ReadStream in Node.js and Electron (but not in runtime like browserify)\n if (typeof require === 'function') {\n let fs;\n try {\n fs = require('fs');\n } catch (err) {}\n if (fs && fs.ReadStream && param instanceof fs.ReadStream) {\n return true;\n }\n }\n\n // Buffer in Node.js\n if (typeof Buffer === 'function' && param instanceof Buffer) {\n return true;\n }\n\n // Blob in browser\n if (typeof Blob === 'function' && param instanceof Blob) {\n return true;\n }\n\n // File in browser (it seems File object is also instance of Blob, but keep this for safe)\n if (typeof File === 'function' && param instanceof File) {\n return true;\n }\n\n return false;\n }\n\n /**\n * Normalizes parameter values:\n *
    \n *
  • remove nils
  • \n *
  • keep files and arrays
  • \n *
  • format to string with `paramToString` for other cases
  • \n *
\n * @param {Object.} params The parameters as object properties.\n * @returns {Object.} normalized parameters.\n */\n normalizeParams(params) {\n var newParams = {};\n for (var key in params) {\n if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {\n var value = params[key];\n if (this.isFileParam(value) || Array.isArray(value)) {\n newParams[key] = value;\n } else {\n newParams[key] = this.paramToString(value);\n }\n }\n }\n\n return newParams;\n }\n\n /**\n * Enumeration of collection format separator strategies.\n * @enum {String}\n * @readonly\n */\n static CollectionFormatEnum = {\n /**\n * Comma-separated values. Value: csv\n * @const\n */\n CSV: ',',\n\n /**\n * Space-separated values. Value: ssv\n * @const\n */\n SSV: ' ',\n\n /**\n * Tab-separated values. Value: tsv\n * @const\n */\n TSV: '\\t',\n\n /**\n * Pipe(|)-separated values. Value: pipes\n * @const\n */\n PIPES: '|',\n\n /**\n * Native array. Value: multi\n * @const\n */\n MULTI: 'multi'\n };\n\n /**\n * Builds a string representation of an array-type actual parameter, according to the given collection format.\n * @param {Array} param An array parameter.\n * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.\n * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns\n * param as is if collectionFormat is multi.\n */\n buildCollectionParam(param, collectionFormat) {\n if (param == null) {\n return null;\n }\n switch (collectionFormat) {\n case 'csv':\n return param.map(this.paramToString).join(',');\n case 'ssv':\n return param.map(this.paramToString).join(' ');\n case 'tsv':\n return param.map(this.paramToString).join('\\t');\n case 'pipes':\n return param.map(this.paramToString).join('|');\n case 'multi':\n //return the array directly as SuperAgent will handle it as expected\n return param.map(this.paramToString);\n default:\n throw new Error('Unknown collection format: ' + collectionFormat);\n }\n }\n\n /**\n * Applies authentication headers to the request.\n * @param {Object} request The request object created by a superagent() call.\n * @param {Array.} authNames An array of authentication method names.\n */\n applyAuthToRequest(request, authNames) {\n authNames.forEach((authName) => {\n var auth = this.authentications[authName];\n switch (auth.type) {\n case 'basic':\n if (auth.username || auth.password) {\n request.auth(auth.username || '', auth.password || '');\n }\n\n break;\n case 'apiKey':\n if (auth.apiKey) {\n var data = {};\n if (auth.apiKeyPrefix) {\n data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey;\n } else {\n data[auth.name] = auth.apiKey;\n }\n\n if (auth['in'] === 'header') {\n request.set(data);\n } else {\n request.query(data);\n }\n }\n\n break;\n case 'oauth2':\n if (auth.accessToken) {\n request.set({'Authorization': 'Bearer ' + auth.accessToken});\n }\n\n break;\n default:\n throw new Error('Unknown authentication type: ' + auth.type);\n }\n });\n }\n\n /**\n * Deserializes an HTTP response body into a value of the specified type.\n * @param {Object} response A SuperAgent response object.\n * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types\n * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n * all properties on data will be converted to this type.\n * @returns A value of the specified type.\n */\n deserialize(response, returnType) {\n if (response == null || returnType == null || response.status == 204) {\n return null;\n }\n\n // Rely on SuperAgent for parsing response body.\n // See http://visionmedia.github.io/superagent/#parsing-response-bodies\n var data = response.body;\n if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) {\n // SuperAgent does not always produce a body; use the unparsed response as a fallback\n data = response.text;\n }\n\n return ApiClient.convertToType(data, returnType);\n }\n\n \n\n /**\n * Invokes the REST service using the supplied settings and parameters.\n * @param {String} path The base URL to invoke.\n * @param {String} httpMethod The HTTP method to use.\n * @param {Object.} pathParams A map of path parameters and their values.\n * @param {Object.} queryParams A map of query parameters and their values.\n * @param {Object.} headerParams A map of header parameters and their values.\n * @param {Object.} formParams A map of form parameters and their values.\n * @param {Object} bodyParam The value to pass as the request body.\n * @param {Array.} authNames An array of authentication type names.\n * @param {Array.} contentTypes An array of request MIME types.\n * @param {Array.} accepts An array of acceptable response MIME types.\n * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the\n * constructor for a complex type.\n * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object.\n */\n callApi(path, httpMethod, pathParams,\n queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,\n returnType) {\n\n var url = this.buildUrl(path, pathParams);\n var request = superagent(httpMethod, url);\n\n // apply authentications\n this.applyAuthToRequest(request, authNames);\n\n // set query parameters\n if (httpMethod.toUpperCase() === 'GET' && this.cache === false) {\n queryParams['_'] = new Date().getTime();\n }\n\n request.query(this.normalizeParams(queryParams));\n\n // set header parameters\n request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));\n\n // set request timeout\n request.timeout(this.timeout);\n\n var contentType = this.jsonPreferredMime(contentTypes);\n if (contentType) {\n // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746)\n if(contentType != 'multipart/form-data') {\n request.type(contentType);\n }\n } else if (!request.header['Content-Type']) {\n request.type('application/json');\n }\n\n if (contentType === 'application/x-www-form-urlencoded') {\n request.send(querystring.stringify(this.normalizeParams(formParams)));\n } else if (contentType == 'multipart/form-data') {\n var _formParams = this.normalizeParams(formParams);\n for (var key in _formParams) {\n if (_formParams.hasOwnProperty(key)) {\n if (this.isFileParam(_formParams[key])) {\n // file field\n request.attach(key, _formParams[key]);\n } else {\n request.field(key, _formParams[key]);\n }\n }\n }\n } else if (bodyParam) {\n request.send(bodyParam);\n }\n\n var accept = this.jsonPreferredMime(accepts);\n if (accept) {\n request.accept(accept);\n }\n\n if (returnType === 'Blob') {\n request.responseType('blob');\n } else if (returnType === 'String') {\n request.responseType('string');\n }\n\n // Attach previously saved cookies, if enabled\n if (this.enableCookies){\n if (typeof window === 'undefined') {\n this.agent.attachCookies(request);\n }\n else {\n request.withCredentials();\n }\n }\n\n return new Promise((resolve, reject) => {\n request.end((error, response) => {\n if (error) {\n reject(error);\n } else {\n try {\n var data = this.deserialize(response, returnType);\n if (this.enableCookies && typeof window === 'undefined'){\n this.agent.saveCookies(response);\n }\n\n resolve({data, response});\n } catch (err) {\n reject(err);\n }\n }\n });\n });\n\n \n }\n\n /**\n * Parses an ISO-8601 string representation of a date value.\n * @param {String} str The date value as a string.\n * @returns {Date} The parsed date object.\n */\n static parseDate(str) {\n return new Date(str.replace(/T/i, ' '));\n }\n\n /**\n * Converts a value to the specified type.\n * @param {(String|Object)} data The data to convert, as a string or object.\n * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types\n * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n * all properties on data will be converted to this type.\n * @returns An instance of the specified type or null or undefined if data is null or undefined.\n */\n static convertToType(data, type) {\n if (data === null || data === undefined)\n return data\n\n switch (type) {\n case 'Boolean':\n return Boolean(data);\n case 'Integer':\n return parseInt(data, 10);\n case 'Number':\n return parseFloat(data);\n case 'String':\n return String(data);\n case 'Date':\n return ApiClient.parseDate(String(data));\n case 'Blob':\n return data;\n default:\n if (type === Object) {\n // generic object, return directly\n return data;\n } else if (typeof type === 'function') {\n // for model type like: User\n return type.constructFromObject(data);\n } else if (Array.isArray(type)) {\n // for array type like: ['String']\n var itemType = type[0];\n\n return data.map((item) => {\n return ApiClient.convertToType(item, itemType);\n });\n } else if (typeof type === 'object') {\n // for plain object type like: {'String': 'Integer'}\n var keyType, valueType;\n for (var k in type) {\n if (type.hasOwnProperty(k)) {\n keyType = k;\n valueType = type[k];\n break;\n }\n }\n\n var result = {};\n for (var k in data) {\n if (data.hasOwnProperty(k)) {\n var key = ApiClient.convertToType(k, keyType);\n var value = ApiClient.convertToType(data[k], valueType);\n result[key] = value;\n }\n }\n\n return result;\n } else {\n // for unknown type, return the data directly\n return data;\n }\n }\n }\n\n /**\n * Constructs a new map or array model from REST data.\n * @param data {Object|Array} The REST data.\n * @param obj {Object|Array} The target object or array.\n */\n static constructFromObject(data, obj, itemType) {\n if (Array.isArray(data)) {\n for (var i = 0; i < data.length; i++) {\n if (data.hasOwnProperty(i))\n obj[i] = ApiClient.convertToType(data[i], itemType);\n }\n } else {\n for (var k in data) {\n if (data.hasOwnProperty(k))\n obj[k] = ApiClient.convertToType(data[k], itemType);\n }\n }\n };\n}\n\n/**\n* The default API client implementation.\n* @type {module:ApiClient}\n*/\nApiClient.instance = new ApiClient();\n"],"file":"ApiClient.js"} \ No newline at end of file diff --git a/lib/api/AuditDataServiceApi.js b/lib/api/AuditDataServiceApi.js new file mode 100644 index 0000000..bec7858 --- /dev/null +++ b/lib/api/AuditDataServiceApi.js @@ -0,0 +1,85 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ReportsSharedResourcesRequest = _interopRequireDefault(require("../model/ReportsSharedResourcesRequest")); + +var _ReportsSharedResourcesResponse = _interopRequireDefault(require("../model/ReportsSharedResourcesResponse")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* AuditDataService service. +* @module api/AuditDataServiceApi +* @version 2.0 +*/ +var AuditDataServiceApi = /*#__PURE__*/function () { + /** + * Constructs a new AuditDataServiceApi. + * @alias module:api/AuditDataServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function AuditDataServiceApi(apiClient) { + _classCallCheck(this, AuditDataServiceApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * [Enterprise Only] Audit all shares across the application + * @param {module:model/ReportsSharedResourcesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ReportsSharedResourcesResponse} and HTTP response + */ + + + _createClass(AuditDataServiceApi, [{ + key: "sharedResourcesWithHttpInfo", + value: function sharedResourcesWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling sharedResources"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _ReportsSharedResourcesResponse["default"]; + return this.apiClient.callApi('/audit/data/shares', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Audit all shares across the application + * @param {module:model/ReportsSharedResourcesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ReportsSharedResourcesResponse} + */ + + }, { + key: "sharedResources", + value: function sharedResources(body) { + return this.sharedResourcesWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + }]); + + return AuditDataServiceApi; +}(); + +exports["default"] = AuditDataServiceApi; +//# sourceMappingURL=AuditDataServiceApi.js.map diff --git a/lib/api/AuditDataServiceApi.js.map b/lib/api/AuditDataServiceApi.js.map new file mode 100644 index 0000000..1b2cdaa --- /dev/null +++ b/lib/api/AuditDataServiceApi.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/api/AuditDataServiceApi.js"],"names":["AuditDataServiceApi","apiClient","ApiClient","instance","body","postBody","undefined","Error","pathParams","queryParams","headerParams","formParams","authNames","contentTypes","accepts","returnType","ReportsSharedResourcesResponse","callApi","sharedResourcesWithHttpInfo","then","response_and_data","data"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;IACqBA,mB;AAEjB;AACJ;AACA;AACA;AACA;AACA;AACA;AACI,+BAAYC,SAAZ,EAAuB;AAAA;;AACnB,SAAKA,SAAL,GAAiBA,SAAS,IAAIC,sBAAUC,QAAxC;AACH;AAID;AACJ;AACA;AACA;AACA;;;;;WACI,qCAA4BC,IAA5B,EAAkC;AAChC,UAAIC,QAAQ,GAAGD,IAAf,CADgC,CAGhC;;AACA,UAAIA,IAAI,KAAKE,SAAT,IAAsBF,IAAI,KAAK,IAAnC,EAAyC;AACvC,cAAM,IAAIG,KAAJ,CAAU,oEAAV,CAAN;AACD;;AAGD,UAAIC,UAAU,GAAG,EAAjB;AAEA,UAAIC,WAAW,GAAG,EAAlB;AAEA,UAAIC,YAAY,GAAG,EAAnB;AAEA,UAAIC,UAAU,GAAG,EAAjB;AAGA,UAAIC,SAAS,GAAG,EAAhB;AACA,UAAIC,YAAY,GAAG,CAAC,kBAAD,CAAnB;AACA,UAAIC,OAAO,GAAG,CAAC,kBAAD,CAAd;AACA,UAAIC,UAAU,GAAGC,0CAAjB;AAEA,aAAO,KAAKf,SAAL,CAAegB,OAAf,CACL,oBADK,EACiB,MADjB,EAELT,UAFK,EAEOC,WAFP,EAEoBC,YAFpB,EAEkCC,UAFlC,EAE8CN,QAF9C,EAGLO,SAHK,EAGMC,YAHN,EAGoBC,OAHpB,EAG6BC,UAH7B,CAAP;AAKD;AAED;AACJ;AACA;AACA;AACA;;;;WACI,yBAAgBX,IAAhB,EAAsB;AACpB,aAAO,KAAKc,2BAAL,CAAiCd,IAAjC,EACJe,IADI,CACC,UAASC,iBAAT,EAA4B;AAChC,eAAOA,iBAAiB,CAACC,IAAzB;AACD,OAHI,CAAP;AAID","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from \"../ApiClient\";\nimport ReportsSharedResourcesRequest from '../model/ReportsSharedResourcesRequest';\nimport ReportsSharedResourcesResponse from '../model/ReportsSharedResourcesResponse';\n\n/**\n* AuditDataService service.\n* @module api/AuditDataServiceApi\n* @version 2.0\n*/\nexport default class AuditDataServiceApi {\n\n /**\n * Constructs a new AuditDataServiceApi. \n * @alias module:api/AuditDataServiceApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n constructor(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n }\n\n\n\n /**\n * [Enterprise Only] Audit all shares across the application\n * @param {module:model/ReportsSharedResourcesRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ReportsSharedResourcesResponse} and HTTP response\n */\n sharedResourcesWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling sharedResources\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = ReportsSharedResourcesResponse;\n\n return this.apiClient.callApi(\n '/audit/data/shares', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Audit all shares across the application\n * @param {module:model/ReportsSharedResourcesRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ReportsSharedResourcesResponse}\n */\n sharedResources(body) {\n return this.sharedResourcesWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n}\n"],"file":"AuditDataServiceApi.js"} \ No newline at end of file diff --git a/lib/api/EnterpriseConfigServiceApi.js b/lib/api/EnterpriseConfigServiceApi.js new file mode 100644 index 0000000..f7b7695 --- /dev/null +++ b/lib/api/EnterpriseConfigServiceApi.js @@ -0,0 +1,670 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthOAuth2ClientConfig = _interopRequireDefault(require("../model/AuthOAuth2ClientConfig")); + +var _AuthOAuth2ConnectorCollection = _interopRequireDefault(require("../model/AuthOAuth2ConnectorCollection")); + +var _AuthOAuth2ConnectorConfig = _interopRequireDefault(require("../model/AuthOAuth2ConnectorConfig")); + +var _EntDeleteVersioningPolicyResponse = _interopRequireDefault(require("../model/EntDeleteVersioningPolicyResponse")); + +var _EntDeleteVirtualNodeResponse = _interopRequireDefault(require("../model/EntDeleteVirtualNodeResponse")); + +var _EntExternalDirectoryCollection = _interopRequireDefault(require("../model/EntExternalDirectoryCollection")); + +var _EntExternalDirectoryConfig = _interopRequireDefault(require("../model/EntExternalDirectoryConfig")); + +var _EntExternalDirectoryResponse = _interopRequireDefault(require("../model/EntExternalDirectoryResponse")); + +var _EntListSitesResponse = _interopRequireDefault(require("../model/EntListSitesResponse")); + +var _EntOAuth2ClientCollection = _interopRequireDefault(require("../model/EntOAuth2ClientCollection")); + +var _EntOAuth2ClientResponse = _interopRequireDefault(require("../model/EntOAuth2ClientResponse")); + +var _EntOAuth2ConnectorCollection = _interopRequireDefault(require("../model/EntOAuth2ConnectorCollection")); + +var _EntOAuth2ConnectorResponse = _interopRequireDefault(require("../model/EntOAuth2ConnectorResponse")); + +var _TreeNode = _interopRequireDefault(require("../model/TreeNode")); + +var _TreeVersioningPolicy = _interopRequireDefault(require("../model/TreeVersioningPolicy")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* EnterpriseConfigService service. +* @module api/EnterpriseConfigServiceApi +* @version 2.0 +*/ +var EnterpriseConfigServiceApi = /*#__PURE__*/function () { + /** + * Constructs a new EnterpriseConfigServiceApi. + * @alias module:api/EnterpriseConfigServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function EnterpriseConfigServiceApi(apiClient) { + _classCallCheck(this, EnterpriseConfigServiceApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * [Enterprise Only] Delete external directory + * @param {String} configId + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntExternalDirectoryResponse} and HTTP response + */ + + + _createClass(EnterpriseConfigServiceApi, [{ + key: "deleteExternalDirectoryWithHttpInfo", + value: function deleteExternalDirectoryWithHttpInfo(configId) { + var postBody = null; // verify the required parameter 'configId' is set + + if (configId === undefined || configId === null) { + throw new Error("Missing the required parameter 'configId' when calling deleteExternalDirectory"); + } + + var pathParams = { + 'ConfigId': configId + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntExternalDirectoryResponse["default"]; + return this.apiClient.callApi('/config/directories/{ConfigId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Delete external directory + * @param {String} configId + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntExternalDirectoryResponse} + */ + + }, { + key: "deleteExternalDirectory", + value: function deleteExternalDirectory(configId) { + return this.deleteExternalDirectoryWithHttpInfo(configId).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Delete an oauth2 client + * @param {String} clientID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ClientResponse} and HTTP response + */ + + }, { + key: "deleteOAuth2ClientWithHttpInfo", + value: function deleteOAuth2ClientWithHttpInfo(clientID) { + var postBody = null; // verify the required parameter 'clientID' is set + + if (clientID === undefined || clientID === null) { + throw new Error("Missing the required parameter 'clientID' when calling deleteOAuth2Client"); + } + + var pathParams = { + 'ClientID': clientID + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntOAuth2ClientResponse["default"]; + return this.apiClient.callApi('/config/oauth2clients/{ClientID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Delete an oauth2 client + * @param {String} clientID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ClientResponse} + */ + + }, { + key: "deleteOAuth2Client", + value: function deleteOAuth2Client(clientID) { + return this.deleteOAuth2ClientWithHttpInfo(clientID).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Delete an oauth2 client + * @param {String} id + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ConnectorResponse} and HTTP response + */ + + }, { + key: "deleteOAuth2ConnectorWithHttpInfo", + value: function deleteOAuth2ConnectorWithHttpInfo(id) { + var postBody = null; // verify the required parameter 'id' is set + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling deleteOAuth2Connector"); + } + + var pathParams = { + 'id': id + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntOAuth2ConnectorResponse["default"]; + return this.apiClient.callApi('/config/oauth2connectors/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Delete an oauth2 client + * @param {String} id + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ConnectorResponse} + */ + + }, { + key: "deleteOAuth2Connector", + value: function deleteOAuth2Connector(id) { + return this.deleteOAuth2ConnectorWithHttpInfo(id).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Delete a versioning policy + * @param {String} uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteVersioningPolicyResponse} and HTTP response + */ + + }, { + key: "deleteVersioningPolicyWithHttpInfo", + value: function deleteVersioningPolicyWithHttpInfo(uuid) { + var postBody = null; // verify the required parameter 'uuid' is set + + if (uuid === undefined || uuid === null) { + throw new Error("Missing the required parameter 'uuid' when calling deleteVersioningPolicy"); + } + + var pathParams = { + 'Uuid': uuid + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntDeleteVersioningPolicyResponse["default"]; + return this.apiClient.callApi('/config/versioning/{Uuid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Delete a versioning policy + * @param {String} uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteVersioningPolicyResponse} + */ + + }, { + key: "deleteVersioningPolicy", + value: function deleteVersioningPolicy(uuid) { + return this.deleteVersioningPolicyWithHttpInfo(uuid).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Delete a virtual node + * @param {String} uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteVirtualNodeResponse} and HTTP response + */ + + }, { + key: "deleteVirtualNodeWithHttpInfo", + value: function deleteVirtualNodeWithHttpInfo(uuid) { + var postBody = null; // verify the required parameter 'uuid' is set + + if (uuid === undefined || uuid === null) { + throw new Error("Missing the required parameter 'uuid' when calling deleteVirtualNode"); + } + + var pathParams = { + 'Uuid': uuid + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntDeleteVirtualNodeResponse["default"]; + return this.apiClient.callApi('/config/virtualnodes/{Uuid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Delete a virtual node + * @param {String} uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteVirtualNodeResponse} + */ + + }, { + key: "deleteVirtualNode", + value: function deleteVirtualNode(uuid) { + return this.deleteVirtualNodeWithHttpInfo(uuid).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] List additional user directories + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntExternalDirectoryCollection} and HTTP response + */ + + }, { + key: "listExternalDirectoriesWithHttpInfo", + value: function listExternalDirectoriesWithHttpInfo() { + var postBody = null; + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntExternalDirectoryCollection["default"]; + return this.apiClient.callApi('/config/directories', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] List additional user directories + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntExternalDirectoryCollection} + */ + + }, { + key: "listExternalDirectories", + value: function listExternalDirectories() { + return this.listExternalDirectoriesWithHttpInfo().then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] List oauth2 clients + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ClientCollection} and HTTP response + */ + + }, { + key: "listOAuth2ClientsWithHttpInfo", + value: function listOAuth2ClientsWithHttpInfo() { + var postBody = null; + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntOAuth2ClientCollection["default"]; + return this.apiClient.callApi('/config/oauth2clients', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] List oauth2 clients + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ClientCollection} + */ + + }, { + key: "listOAuth2Clients", + value: function listOAuth2Clients() { + return this.listOAuth2ClientsWithHttpInfo().then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] List oauth2 connectors + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ConnectorCollection} and HTTP response + */ + + }, { + key: "listOAuth2ConnectorsWithHttpInfo", + value: function listOAuth2ConnectorsWithHttpInfo() { + var postBody = null; + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntOAuth2ConnectorCollection["default"]; + return this.apiClient.callApi('/config/oauth2connectors', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] List oauth2 connectors + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ConnectorCollection} + */ + + }, { + key: "listOAuth2Connectors", + value: function listOAuth2Connectors() { + return this.listOAuth2ConnectorsWithHttpInfo().then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] List configured sites + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntListSitesResponse} and HTTP response + */ + + }, { + key: "listSitesWithHttpInfo", + value: function listSitesWithHttpInfo() { + var postBody = null; + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntListSitesResponse["default"]; + return this.apiClient.callApi('/config/sites', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] List configured sites + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntListSitesResponse} + */ + + }, { + key: "listSites", + value: function listSites() { + return this.listSitesWithHttpInfo().then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Add/Create an external directory + * @param {String} configId + * @param {module:model/EntExternalDirectoryConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntExternalDirectoryResponse} and HTTP response + */ + + }, { + key: "putExternalDirectoryWithHttpInfo", + value: function putExternalDirectoryWithHttpInfo(configId, body) { + var postBody = body; // verify the required parameter 'configId' is set + + if (configId === undefined || configId === null) { + throw new Error("Missing the required parameter 'configId' when calling putExternalDirectory"); + } // verify the required parameter 'body' is set + + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putExternalDirectory"); + } + + var pathParams = { + 'ConfigId': configId + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntExternalDirectoryResponse["default"]; + return this.apiClient.callApi('/config/directories/{ConfigId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Add/Create an external directory + * @param {String} configId + * @param {module:model/EntExternalDirectoryConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntExternalDirectoryResponse} + */ + + }, { + key: "putExternalDirectory", + value: function putExternalDirectory(configId, body) { + return this.putExternalDirectoryWithHttpInfo(configId, body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Add/Create a new oauth2 client + * @param {String} clientID + * @param {module:model/AuthOAuth2ClientConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ClientResponse} and HTTP response + */ + + }, { + key: "putOAuth2ClientWithHttpInfo", + value: function putOAuth2ClientWithHttpInfo(clientID, body) { + var postBody = body; // verify the required parameter 'clientID' is set + + if (clientID === undefined || clientID === null) { + throw new Error("Missing the required parameter 'clientID' when calling putOAuth2Client"); + } // verify the required parameter 'body' is set + + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putOAuth2Client"); + } + + var pathParams = { + 'ClientID': clientID + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntOAuth2ClientResponse["default"]; + return this.apiClient.callApi('/config/oauth2clients/{ClientID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Add/Create a new oauth2 client + * @param {String} clientID + * @param {module:model/AuthOAuth2ClientConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ClientResponse} + */ + + }, { + key: "putOAuth2Client", + value: function putOAuth2Client(clientID, body) { + return this.putOAuth2ClientWithHttpInfo(clientID, body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Add/Create a new oauth2 client + * @param {String} id + * @param {module:model/AuthOAuth2ConnectorConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ConnectorResponse} and HTTP response + */ + + }, { + key: "putOAuth2ConnectorWithHttpInfo", + value: function putOAuth2ConnectorWithHttpInfo(id, body) { + var postBody = body; // verify the required parameter 'id' is set + + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling putOAuth2Connector"); + } // verify the required parameter 'body' is set + + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putOAuth2Connector"); + } + + var pathParams = { + 'id': id + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntOAuth2ConnectorResponse["default"]; + return this.apiClient.callApi('/config/oauth2connectors/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Add/Create a new oauth2 client + * @param {String} id + * @param {module:model/AuthOAuth2ConnectorConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ConnectorResponse} + */ + + }, { + key: "putOAuth2Connector", + value: function putOAuth2Connector(id, body) { + return this.putOAuth2ConnectorWithHttpInfo(id, body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Add/Create a new oauth2 client + * @param {module:model/AuthOAuth2ConnectorCollection} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ConnectorResponse} and HTTP response + */ + + }, { + key: "putOAuth2ConnectorsWithHttpInfo", + value: function putOAuth2ConnectorsWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putOAuth2Connectors"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntOAuth2ConnectorResponse["default"]; + return this.apiClient.callApi('/config/oauth2connectors', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Add/Create a new oauth2 client + * @param {module:model/AuthOAuth2ConnectorCollection} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ConnectorResponse} + */ + + }, { + key: "putOAuth2Connectors", + value: function putOAuth2Connectors(body) { + return this.putOAuth2ConnectorsWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Create or update a versioning policy + * @param {String} uuid + * @param {module:model/TreeVersioningPolicy} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TreeVersioningPolicy} and HTTP response + */ + + }, { + key: "putVersioningPolicyWithHttpInfo", + value: function putVersioningPolicyWithHttpInfo(uuid, body) { + var postBody = body; // verify the required parameter 'uuid' is set + + if (uuid === undefined || uuid === null) { + throw new Error("Missing the required parameter 'uuid' when calling putVersioningPolicy"); + } // verify the required parameter 'body' is set + + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putVersioningPolicy"); + } + + var pathParams = { + 'Uuid': uuid + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _TreeVersioningPolicy["default"]; + return this.apiClient.callApi('/config/versioning/{Uuid}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Create or update a versioning policy + * @param {String} uuid + * @param {module:model/TreeVersioningPolicy} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TreeVersioningPolicy} + */ + + }, { + key: "putVersioningPolicy", + value: function putVersioningPolicy(uuid, body) { + return this.putVersioningPolicyWithHttpInfo(uuid, body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Create or update a virtual node + * @param {String} uuid + * @param {module:model/TreeNode} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TreeNode} and HTTP response + */ + + }, { + key: "putVirtualNodeWithHttpInfo", + value: function putVirtualNodeWithHttpInfo(uuid, body) { + var postBody = body; // verify the required parameter 'uuid' is set + + if (uuid === undefined || uuid === null) { + throw new Error("Missing the required parameter 'uuid' when calling putVirtualNode"); + } // verify the required parameter 'body' is set + + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putVirtualNode"); + } + + var pathParams = { + 'Uuid': uuid + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _TreeNode["default"]; + return this.apiClient.callApi('/config/virtualnodes/{Uuid}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Create or update a virtual node + * @param {String} uuid + * @param {module:model/TreeNode} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TreeNode} + */ + + }, { + key: "putVirtualNode", + value: function putVirtualNode(uuid, body) { + return this.putVirtualNodeWithHttpInfo(uuid, body).then(function (response_and_data) { + return response_and_data.data; + }); + } + }]); + + return EnterpriseConfigServiceApi; +}(); + +exports["default"] = EnterpriseConfigServiceApi; +//# sourceMappingURL=EnterpriseConfigServiceApi.js.map diff --git a/lib/api/EnterpriseConfigServiceApi.js.map b/lib/api/EnterpriseConfigServiceApi.js.map new file mode 100644 index 0000000..97fb7f6 --- /dev/null +++ b/lib/api/EnterpriseConfigServiceApi.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/api/EnterpriseConfigServiceApi.js"],"names":["EnterpriseConfigServiceApi","apiClient","ApiClient","instance","configId","postBody","undefined","Error","pathParams","queryParams","headerParams","formParams","authNames","contentTypes","accepts","returnType","EntExternalDirectoryResponse","callApi","deleteExternalDirectoryWithHttpInfo","then","response_and_data","data","clientID","EntOAuth2ClientResponse","deleteOAuth2ClientWithHttpInfo","id","EntOAuth2ConnectorResponse","deleteOAuth2ConnectorWithHttpInfo","uuid","EntDeleteVersioningPolicyResponse","deleteVersioningPolicyWithHttpInfo","EntDeleteVirtualNodeResponse","deleteVirtualNodeWithHttpInfo","EntExternalDirectoryCollection","listExternalDirectoriesWithHttpInfo","EntOAuth2ClientCollection","listOAuth2ClientsWithHttpInfo","EntOAuth2ConnectorCollection","listOAuth2ConnectorsWithHttpInfo","EntListSitesResponse","listSitesWithHttpInfo","body","putExternalDirectoryWithHttpInfo","putOAuth2ClientWithHttpInfo","putOAuth2ConnectorWithHttpInfo","putOAuth2ConnectorsWithHttpInfo","TreeVersioningPolicy","putVersioningPolicyWithHttpInfo","TreeNode","putVirtualNodeWithHttpInfo"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from \"../ApiClient\";\nimport AuthOAuth2ClientConfig from '../model/AuthOAuth2ClientConfig';\nimport AuthOAuth2ConnectorCollection from '../model/AuthOAuth2ConnectorCollection';\nimport AuthOAuth2ConnectorConfig from '../model/AuthOAuth2ConnectorConfig';\nimport EntDeleteVersioningPolicyResponse from '../model/EntDeleteVersioningPolicyResponse';\nimport EntDeleteVirtualNodeResponse from '../model/EntDeleteVirtualNodeResponse';\nimport EntExternalDirectoryCollection from '../model/EntExternalDirectoryCollection';\nimport EntExternalDirectoryConfig from '../model/EntExternalDirectoryConfig';\nimport EntExternalDirectoryResponse from '../model/EntExternalDirectoryResponse';\nimport EntListSitesResponse from '../model/EntListSitesResponse';\nimport EntOAuth2ClientCollection from '../model/EntOAuth2ClientCollection';\nimport EntOAuth2ClientResponse from '../model/EntOAuth2ClientResponse';\nimport EntOAuth2ConnectorCollection from '../model/EntOAuth2ConnectorCollection';\nimport EntOAuth2ConnectorResponse from '../model/EntOAuth2ConnectorResponse';\nimport TreeNode from '../model/TreeNode';\nimport TreeVersioningPolicy from '../model/TreeVersioningPolicy';\n\n/**\n* EnterpriseConfigService service.\n* @module api/EnterpriseConfigServiceApi\n* @version 2.0\n*/\nexport default class EnterpriseConfigServiceApi {\n\n /**\n * Constructs a new EnterpriseConfigServiceApi. \n * @alias module:api/EnterpriseConfigServiceApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n constructor(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n }\n\n\n\n /**\n * [Enterprise Only] Delete external directory\n * @param {String} configId \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntExternalDirectoryResponse} and HTTP response\n */\n deleteExternalDirectoryWithHttpInfo(configId) {\n let postBody = null;\n\n // verify the required parameter 'configId' is set\n if (configId === undefined || configId === null) {\n throw new Error(\"Missing the required parameter 'configId' when calling deleteExternalDirectory\");\n }\n\n\n let pathParams = {\n 'ConfigId': configId\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntExternalDirectoryResponse;\n\n return this.apiClient.callApi(\n '/config/directories/{ConfigId}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Delete external directory\n * @param {String} configId \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntExternalDirectoryResponse}\n */\n deleteExternalDirectory(configId) {\n return this.deleteExternalDirectoryWithHttpInfo(configId)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Delete an oauth2 client\n * @param {String} clientID \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ClientResponse} and HTTP response\n */\n deleteOAuth2ClientWithHttpInfo(clientID) {\n let postBody = null;\n\n // verify the required parameter 'clientID' is set\n if (clientID === undefined || clientID === null) {\n throw new Error(\"Missing the required parameter 'clientID' when calling deleteOAuth2Client\");\n }\n\n\n let pathParams = {\n 'ClientID': clientID\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntOAuth2ClientResponse;\n\n return this.apiClient.callApi(\n '/config/oauth2clients/{ClientID}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Delete an oauth2 client\n * @param {String} clientID \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ClientResponse}\n */\n deleteOAuth2Client(clientID) {\n return this.deleteOAuth2ClientWithHttpInfo(clientID)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Delete an oauth2 client\n * @param {String} id \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ConnectorResponse} and HTTP response\n */\n deleteOAuth2ConnectorWithHttpInfo(id) {\n let postBody = null;\n\n // verify the required parameter 'id' is set\n if (id === undefined || id === null) {\n throw new Error(\"Missing the required parameter 'id' when calling deleteOAuth2Connector\");\n }\n\n\n let pathParams = {\n 'id': id\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntOAuth2ConnectorResponse;\n\n return this.apiClient.callApi(\n '/config/oauth2connectors/{id}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Delete an oauth2 client\n * @param {String} id \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ConnectorResponse}\n */\n deleteOAuth2Connector(id) {\n return this.deleteOAuth2ConnectorWithHttpInfo(id)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Delete a versioning policy\n * @param {String} uuid \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteVersioningPolicyResponse} and HTTP response\n */\n deleteVersioningPolicyWithHttpInfo(uuid) {\n let postBody = null;\n\n // verify the required parameter 'uuid' is set\n if (uuid === undefined || uuid === null) {\n throw new Error(\"Missing the required parameter 'uuid' when calling deleteVersioningPolicy\");\n }\n\n\n let pathParams = {\n 'Uuid': uuid\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntDeleteVersioningPolicyResponse;\n\n return this.apiClient.callApi(\n '/config/versioning/{Uuid}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Delete a versioning policy\n * @param {String} uuid \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteVersioningPolicyResponse}\n */\n deleteVersioningPolicy(uuid) {\n return this.deleteVersioningPolicyWithHttpInfo(uuid)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Delete a virtual node\n * @param {String} uuid \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteVirtualNodeResponse} and HTTP response\n */\n deleteVirtualNodeWithHttpInfo(uuid) {\n let postBody = null;\n\n // verify the required parameter 'uuid' is set\n if (uuid === undefined || uuid === null) {\n throw new Error(\"Missing the required parameter 'uuid' when calling deleteVirtualNode\");\n }\n\n\n let pathParams = {\n 'Uuid': uuid\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntDeleteVirtualNodeResponse;\n\n return this.apiClient.callApi(\n '/config/virtualnodes/{Uuid}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Delete a virtual node\n * @param {String} uuid \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteVirtualNodeResponse}\n */\n deleteVirtualNode(uuid) {\n return this.deleteVirtualNodeWithHttpInfo(uuid)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] List additional user directories\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntExternalDirectoryCollection} and HTTP response\n */\n listExternalDirectoriesWithHttpInfo() {\n let postBody = null;\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntExternalDirectoryCollection;\n\n return this.apiClient.callApi(\n '/config/directories', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] List additional user directories\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntExternalDirectoryCollection}\n */\n listExternalDirectories() {\n return this.listExternalDirectoriesWithHttpInfo()\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] List oauth2 clients\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ClientCollection} and HTTP response\n */\n listOAuth2ClientsWithHttpInfo() {\n let postBody = null;\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntOAuth2ClientCollection;\n\n return this.apiClient.callApi(\n '/config/oauth2clients', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] List oauth2 clients\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ClientCollection}\n */\n listOAuth2Clients() {\n return this.listOAuth2ClientsWithHttpInfo()\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] List oauth2 connectors\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ConnectorCollection} and HTTP response\n */\n listOAuth2ConnectorsWithHttpInfo() {\n let postBody = null;\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntOAuth2ConnectorCollection;\n\n return this.apiClient.callApi(\n '/config/oauth2connectors', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] List oauth2 connectors\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ConnectorCollection}\n */\n listOAuth2Connectors() {\n return this.listOAuth2ConnectorsWithHttpInfo()\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] List configured sites\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntListSitesResponse} and HTTP response\n */\n listSitesWithHttpInfo() {\n let postBody = null;\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntListSitesResponse;\n\n return this.apiClient.callApi(\n '/config/sites', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] List configured sites\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntListSitesResponse}\n */\n listSites() {\n return this.listSitesWithHttpInfo()\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Add/Create an external directory\n * @param {String} configId \n * @param {module:model/EntExternalDirectoryConfig} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntExternalDirectoryResponse} and HTTP response\n */\n putExternalDirectoryWithHttpInfo(configId, body) {\n let postBody = body;\n\n // verify the required parameter 'configId' is set\n if (configId === undefined || configId === null) {\n throw new Error(\"Missing the required parameter 'configId' when calling putExternalDirectory\");\n }\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling putExternalDirectory\");\n }\n\n\n let pathParams = {\n 'ConfigId': configId\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntExternalDirectoryResponse;\n\n return this.apiClient.callApi(\n '/config/directories/{ConfigId}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Add/Create an external directory\n * @param {String} configId \n * @param {module:model/EntExternalDirectoryConfig} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntExternalDirectoryResponse}\n */\n putExternalDirectory(configId, body) {\n return this.putExternalDirectoryWithHttpInfo(configId, body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Add/Create a new oauth2 client\n * @param {String} clientID \n * @param {module:model/AuthOAuth2ClientConfig} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ClientResponse} and HTTP response\n */\n putOAuth2ClientWithHttpInfo(clientID, body) {\n let postBody = body;\n\n // verify the required parameter 'clientID' is set\n if (clientID === undefined || clientID === null) {\n throw new Error(\"Missing the required parameter 'clientID' when calling putOAuth2Client\");\n }\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling putOAuth2Client\");\n }\n\n\n let pathParams = {\n 'ClientID': clientID\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntOAuth2ClientResponse;\n\n return this.apiClient.callApi(\n '/config/oauth2clients/{ClientID}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Add/Create a new oauth2 client\n * @param {String} clientID \n * @param {module:model/AuthOAuth2ClientConfig} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ClientResponse}\n */\n putOAuth2Client(clientID, body) {\n return this.putOAuth2ClientWithHttpInfo(clientID, body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Add/Create a new oauth2 client\n * @param {String} id \n * @param {module:model/AuthOAuth2ConnectorConfig} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ConnectorResponse} and HTTP response\n */\n putOAuth2ConnectorWithHttpInfo(id, body) {\n let postBody = body;\n\n // verify the required parameter 'id' is set\n if (id === undefined || id === null) {\n throw new Error(\"Missing the required parameter 'id' when calling putOAuth2Connector\");\n }\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling putOAuth2Connector\");\n }\n\n\n let pathParams = {\n 'id': id\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntOAuth2ConnectorResponse;\n\n return this.apiClient.callApi(\n '/config/oauth2connectors/{id}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Add/Create a new oauth2 client\n * @param {String} id \n * @param {module:model/AuthOAuth2ConnectorConfig} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ConnectorResponse}\n */\n putOAuth2Connector(id, body) {\n return this.putOAuth2ConnectorWithHttpInfo(id, body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Add/Create a new oauth2 client\n * @param {module:model/AuthOAuth2ConnectorCollection} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ConnectorResponse} and HTTP response\n */\n putOAuth2ConnectorsWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling putOAuth2Connectors\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntOAuth2ConnectorResponse;\n\n return this.apiClient.callApi(\n '/config/oauth2connectors', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Add/Create a new oauth2 client\n * @param {module:model/AuthOAuth2ConnectorCollection} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ConnectorResponse}\n */\n putOAuth2Connectors(body) {\n return this.putOAuth2ConnectorsWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Create or update a versioning policy\n * @param {String} uuid \n * @param {module:model/TreeVersioningPolicy} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TreeVersioningPolicy} and HTTP response\n */\n putVersioningPolicyWithHttpInfo(uuid, body) {\n let postBody = body;\n\n // verify the required parameter 'uuid' is set\n if (uuid === undefined || uuid === null) {\n throw new Error(\"Missing the required parameter 'uuid' when calling putVersioningPolicy\");\n }\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling putVersioningPolicy\");\n }\n\n\n let pathParams = {\n 'Uuid': uuid\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = TreeVersioningPolicy;\n\n return this.apiClient.callApi(\n '/config/versioning/{Uuid}', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Create or update a versioning policy\n * @param {String} uuid \n * @param {module:model/TreeVersioningPolicy} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TreeVersioningPolicy}\n */\n putVersioningPolicy(uuid, body) {\n return this.putVersioningPolicyWithHttpInfo(uuid, body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Create or update a virtual node\n * @param {String} uuid \n * @param {module:model/TreeNode} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TreeNode} and HTTP response\n */\n putVirtualNodeWithHttpInfo(uuid, body) {\n let postBody = body;\n\n // verify the required parameter 'uuid' is set\n if (uuid === undefined || uuid === null) {\n throw new Error(\"Missing the required parameter 'uuid' when calling putVirtualNode\");\n }\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling putVirtualNode\");\n }\n\n\n let pathParams = {\n 'Uuid': uuid\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = TreeNode;\n\n return this.apiClient.callApi(\n '/config/virtualnodes/{Uuid}', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Create or update a virtual node\n * @param {String} uuid \n * @param {module:model/TreeNode} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TreeNode}\n */\n putVirtualNode(uuid, body) {\n return this.putVirtualNodeWithHttpInfo(uuid, body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n}\n"],"file":"EnterpriseConfigServiceApi.js"} \ No newline at end of file diff --git a/lib/api/EnterpriseFrontendServiceApi.js b/lib/api/EnterpriseFrontendServiceApi.js new file mode 100644 index 0000000..11851ce --- /dev/null +++ b/lib/api/EnterpriseFrontendServiceApi.js @@ -0,0 +1,76 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EntFrontLoginConnectorsResponse = _interopRequireDefault(require("../model/EntFrontLoginConnectorsResponse")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* EnterpriseFrontendService service. +* @module api/EnterpriseFrontendServiceApi +* @version 2.0 +*/ +var EnterpriseFrontendServiceApi = /*#__PURE__*/function () { + /** + * Constructs a new EnterpriseFrontendServiceApi. + * @alias module:api/EnterpriseFrontendServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function EnterpriseFrontendServiceApi(apiClient) { + _classCallCheck(this, EnterpriseFrontendServiceApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * [Enterprise Only] Handle Login Connectors + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntFrontLoginConnectorsResponse} and HTTP response + */ + + + _createClass(EnterpriseFrontendServiceApi, [{ + key: "frontLoginConnectorsWithHttpInfo", + value: function frontLoginConnectorsWithHttpInfo() { + var postBody = null; + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntFrontLoginConnectorsResponse["default"]; + return this.apiClient.callApi('/frontend/login/connectors', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Handle Login Connectors + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntFrontLoginConnectorsResponse} + */ + + }, { + key: "frontLoginConnectors", + value: function frontLoginConnectors() { + return this.frontLoginConnectorsWithHttpInfo().then(function (response_and_data) { + return response_and_data.data; + }); + } + }]); + + return EnterpriseFrontendServiceApi; +}(); + +exports["default"] = EnterpriseFrontendServiceApi; +//# sourceMappingURL=EnterpriseFrontendServiceApi.js.map diff --git a/lib/api/EnterpriseFrontendServiceApi.js.map b/lib/api/EnterpriseFrontendServiceApi.js.map new file mode 100644 index 0000000..487e74b --- /dev/null +++ b/lib/api/EnterpriseFrontendServiceApi.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/api/EnterpriseFrontendServiceApi.js"],"names":["EnterpriseFrontendServiceApi","apiClient","ApiClient","instance","postBody","pathParams","queryParams","headerParams","formParams","authNames","contentTypes","accepts","returnType","EntFrontLoginConnectorsResponse","callApi","frontLoginConnectorsWithHttpInfo","then","response_and_data","data"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;IACqBA,4B;AAEjB;AACJ;AACA;AACA;AACA;AACA;AACA;AACI,wCAAYC,SAAZ,EAAuB;AAAA;;AACnB,SAAKA,SAAL,GAAiBA,SAAS,IAAIC,sBAAUC,QAAxC;AACH;AAID;AACJ;AACA;AACA;;;;;WACI,4CAAmC;AACjC,UAAIC,QAAQ,GAAG,IAAf;AAGA,UAAIC,UAAU,GAAG,EAAjB;AAEA,UAAIC,WAAW,GAAG,EAAlB;AAEA,UAAIC,YAAY,GAAG,EAAnB;AAEA,UAAIC,UAAU,GAAG,EAAjB;AAGA,UAAIC,SAAS,GAAG,EAAhB;AACA,UAAIC,YAAY,GAAG,CAAC,kBAAD,CAAnB;AACA,UAAIC,OAAO,GAAG,CAAC,kBAAD,CAAd;AACA,UAAIC,UAAU,GAAGC,2CAAjB;AAEA,aAAO,KAAKZ,SAAL,CAAea,OAAf,CACL,4BADK,EACyB,KADzB,EAELT,UAFK,EAEOC,WAFP,EAEoBC,YAFpB,EAEkCC,UAFlC,EAE8CJ,QAF9C,EAGLK,SAHK,EAGMC,YAHN,EAGoBC,OAHpB,EAG6BC,UAH7B,CAAP;AAKD;AAED;AACJ;AACA;AACA;;;;WACI,gCAAuB;AACrB,aAAO,KAAKG,gCAAL,GACJC,IADI,CACC,UAASC,iBAAT,EAA4B;AAChC,eAAOA,iBAAiB,CAACC,IAAzB;AACD,OAHI,CAAP;AAID","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from \"../ApiClient\";\nimport EntFrontLoginConnectorsResponse from '../model/EntFrontLoginConnectorsResponse';\n\n/**\n* EnterpriseFrontendService service.\n* @module api/EnterpriseFrontendServiceApi\n* @version 2.0\n*/\nexport default class EnterpriseFrontendServiceApi {\n\n /**\n * Constructs a new EnterpriseFrontendServiceApi. \n * @alias module:api/EnterpriseFrontendServiceApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n constructor(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n }\n\n\n\n /**\n * [Enterprise Only] Handle Login Connectors\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntFrontLoginConnectorsResponse} and HTTP response\n */\n frontLoginConnectorsWithHttpInfo() {\n let postBody = null;\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntFrontLoginConnectorsResponse;\n\n return this.apiClient.callApi(\n '/frontend/login/connectors', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Handle Login Connectors\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntFrontLoginConnectorsResponse}\n */\n frontLoginConnectors() {\n return this.frontLoginConnectorsWithHttpInfo()\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n}\n"],"file":"EnterpriseFrontendServiceApi.js"} \ No newline at end of file diff --git a/lib/api/EnterpriseLogServiceApi.js b/lib/api/EnterpriseLogServiceApi.js new file mode 100644 index 0000000..948a111 --- /dev/null +++ b/lib/api/EnterpriseLogServiceApi.js @@ -0,0 +1,203 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _LogListLogRequest = _interopRequireDefault(require("../model/LogListLogRequest")); + +var _LogTimeRangeRequest = _interopRequireDefault(require("../model/LogTimeRangeRequest")); + +var _RestLogMessageCollection = _interopRequireDefault(require("../model/RestLogMessageCollection")); + +var _RestTimeRangeResultCollection = _interopRequireDefault(require("../model/RestTimeRangeResultCollection")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* EnterpriseLogService service. +* @module api/EnterpriseLogServiceApi +* @version 2.0 +*/ +var EnterpriseLogServiceApi = /*#__PURE__*/function () { + /** + * Constructs a new EnterpriseLogServiceApi. + * @alias module:api/EnterpriseLogServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function EnterpriseLogServiceApi(apiClient) { + _classCallCheck(this, EnterpriseLogServiceApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * [Enterprise Only] Auditable Logs, in Json or CSV format + * @param {module:model/LogListLogRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestLogMessageCollection} and HTTP response + */ + + + _createClass(EnterpriseLogServiceApi, [{ + key: "auditWithHttpInfo", + value: function auditWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling audit"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _RestLogMessageCollection["default"]; + return this.apiClient.callApi('/log/audit', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Auditable Logs, in Json or CSV format + * @param {module:model/LogListLogRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestLogMessageCollection} + */ + + }, { + key: "audit", + value: function audit(body) { + return this.auditWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Retrieves aggregated audit logs to generate charts + * @param {module:model/LogTimeRangeRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestTimeRangeResultCollection} and HTTP response + */ + + }, { + key: "auditChartDataWithHttpInfo", + value: function auditChartDataWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling auditChartData"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _RestTimeRangeResultCollection["default"]; + return this.apiClient.callApi('/log/audit/chartdata', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Retrieves aggregated audit logs to generate charts + * @param {module:model/LogTimeRangeRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestTimeRangeResultCollection} + */ + + }, { + key: "auditChartData", + value: function auditChartData(body) { + return this.auditChartDataWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Auditable Logs, in Json or CSV format + * @param {module:model/LogListLogRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestLogMessageCollection} and HTTP response + */ + + }, { + key: "auditExportWithHttpInfo", + value: function auditExportWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling auditExport"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _RestLogMessageCollection["default"]; + return this.apiClient.callApi('/log/audit/export', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Auditable Logs, in Json or CSV format + * @param {module:model/LogListLogRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestLogMessageCollection} + */ + + }, { + key: "auditExport", + value: function auditExport(body) { + return this.auditExportWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Technical Logs, in Json or CSV format + * @param {module:model/LogListLogRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestLogMessageCollection} and HTTP response + */ + + }, { + key: "syslogExportWithHttpInfo", + value: function syslogExportWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling syslogExport"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _RestLogMessageCollection["default"]; + return this.apiClient.callApi('/log/sys/export', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Technical Logs, in Json or CSV format + * @param {module:model/LogListLogRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestLogMessageCollection} + */ + + }, { + key: "syslogExport", + value: function syslogExport(body) { + return this.syslogExportWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + }]); + + return EnterpriseLogServiceApi; +}(); + +exports["default"] = EnterpriseLogServiceApi; +//# sourceMappingURL=EnterpriseLogServiceApi.js.map diff --git a/lib/api/EnterpriseLogServiceApi.js.map b/lib/api/EnterpriseLogServiceApi.js.map new file mode 100644 index 0000000..ab3da67 --- /dev/null +++ b/lib/api/EnterpriseLogServiceApi.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/api/EnterpriseLogServiceApi.js"],"names":["EnterpriseLogServiceApi","apiClient","ApiClient","instance","body","postBody","undefined","Error","pathParams","queryParams","headerParams","formParams","authNames","contentTypes","accepts","returnType","RestLogMessageCollection","callApi","auditWithHttpInfo","then","response_and_data","data","RestTimeRangeResultCollection","auditChartDataWithHttpInfo","auditExportWithHttpInfo","syslogExportWithHttpInfo"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from \"../ApiClient\";\nimport LogListLogRequest from '../model/LogListLogRequest';\nimport LogTimeRangeRequest from '../model/LogTimeRangeRequest';\nimport RestLogMessageCollection from '../model/RestLogMessageCollection';\nimport RestTimeRangeResultCollection from '../model/RestTimeRangeResultCollection';\n\n/**\n* EnterpriseLogService service.\n* @module api/EnterpriseLogServiceApi\n* @version 2.0\n*/\nexport default class EnterpriseLogServiceApi {\n\n /**\n * Constructs a new EnterpriseLogServiceApi. \n * @alias module:api/EnterpriseLogServiceApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n constructor(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n }\n\n\n\n /**\n * [Enterprise Only] Auditable Logs, in Json or CSV format\n * @param {module:model/LogListLogRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestLogMessageCollection} and HTTP response\n */\n auditWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling audit\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = RestLogMessageCollection;\n\n return this.apiClient.callApi(\n '/log/audit', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Auditable Logs, in Json or CSV format\n * @param {module:model/LogListLogRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestLogMessageCollection}\n */\n audit(body) {\n return this.auditWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Retrieves aggregated audit logs to generate charts\n * @param {module:model/LogTimeRangeRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestTimeRangeResultCollection} and HTTP response\n */\n auditChartDataWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling auditChartData\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = RestTimeRangeResultCollection;\n\n return this.apiClient.callApi(\n '/log/audit/chartdata', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Retrieves aggregated audit logs to generate charts\n * @param {module:model/LogTimeRangeRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestTimeRangeResultCollection}\n */\n auditChartData(body) {\n return this.auditChartDataWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Auditable Logs, in Json or CSV format\n * @param {module:model/LogListLogRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestLogMessageCollection} and HTTP response\n */\n auditExportWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling auditExport\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = RestLogMessageCollection;\n\n return this.apiClient.callApi(\n '/log/audit/export', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Auditable Logs, in Json or CSV format\n * @param {module:model/LogListLogRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestLogMessageCollection}\n */\n auditExport(body) {\n return this.auditExportWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Technical Logs, in Json or CSV format\n * @param {module:model/LogListLogRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestLogMessageCollection} and HTTP response\n */\n syslogExportWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling syslogExport\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = RestLogMessageCollection;\n\n return this.apiClient.callApi(\n '/log/sys/export', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Technical Logs, in Json or CSV format\n * @param {module:model/LogListLogRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestLogMessageCollection}\n */\n syslogExport(body) {\n return this.syslogExportWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n}\n"],"file":"EnterpriseLogServiceApi.js"} \ No newline at end of file diff --git a/lib/api/EnterprisePolicyServiceApi.js b/lib/api/EnterprisePolicyServiceApi.js new file mode 100644 index 0000000..7c9616f --- /dev/null +++ b/lib/api/EnterprisePolicyServiceApi.js @@ -0,0 +1,280 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _IdmPolicyGroup = _interopRequireDefault(require("../model/IdmPolicyGroup")); + +var _IpbanIPsCollection = _interopRequireDefault(require("../model/IpbanIPsCollection")); + +var _IpbanListBansCollection = _interopRequireDefault(require("../model/IpbanListBansCollection")); + +var _IpbanUnbanRequest = _interopRequireDefault(require("../model/IpbanUnbanRequest")); + +var _IpbanUnbanResponse = _interopRequireDefault(require("../model/IpbanUnbanResponse")); + +var _RestDeleteResponse = _interopRequireDefault(require("../model/RestDeleteResponse")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* EnterprisePolicyService service. +* @module api/EnterprisePolicyServiceApi +* @version 2.0 +*/ +var EnterprisePolicyServiceApi = /*#__PURE__*/function () { + /** + * Constructs a new EnterprisePolicyServiceApi. + * @alias module:api/EnterprisePolicyServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function EnterprisePolicyServiceApi(apiClient) { + _classCallCheck(this, EnterprisePolicyServiceApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * [Enterprise Only] Delete a security policy + * @param {String} uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestDeleteResponse} and HTTP response + */ + + + _createClass(EnterprisePolicyServiceApi, [{ + key: "deletePolicyWithHttpInfo", + value: function deletePolicyWithHttpInfo(uuid) { + var postBody = null; // verify the required parameter 'uuid' is set + + if (uuid === undefined || uuid === null) { + throw new Error("Missing the required parameter 'uuid' when calling deletePolicy"); + } + + var pathParams = { + 'Uuid': uuid + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _RestDeleteResponse["default"]; + return this.apiClient.callApi('/policy/{Uuid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Delete a security policy + * @param {String} uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestDeleteResponse} + */ + + }, { + key: "deletePolicy", + value: function deletePolicy(uuid) { + return this.deletePolicyWithHttpInfo(uuid).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] List banned IPs + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IpbanListBansCollection} and HTTP response + */ + + }, { + key: "listBansWithHttpInfo", + value: function listBansWithHttpInfo() { + var postBody = null; + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _IpbanListBansCollection["default"]; + return this.apiClient.callApi('/policy/ipbans', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] List banned IPs + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IpbanListBansCollection} + */ + + }, { + key: "listBans", + value: function listBans() { + return this.listBansWithHttpInfo().then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] List white/black lists + * @param {String} name + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IpbanIPsCollection} and HTTP response + */ + + }, { + key: "listIPsWithHttpInfo", + value: function listIPsWithHttpInfo(name) { + var postBody = null; // verify the required parameter 'name' is set + + if (name === undefined || name === null) { + throw new Error("Missing the required parameter 'name' when calling listIPs"); + } + + var pathParams = { + 'Name': name + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _IpbanIPsCollection["default"]; + return this.apiClient.callApi('/policy/iplists/{Name}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] List white/black lists + * @param {String} name + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IpbanIPsCollection} + */ + + }, { + key: "listIPs", + value: function listIPs(name) { + return this.listIPsWithHttpInfo(name).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Update or create a security policy + * @param {module:model/IdmPolicyGroup} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IdmPolicyGroup} and HTTP response + */ + + }, { + key: "putPolicyWithHttpInfo", + value: function putPolicyWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putPolicy"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _IdmPolicyGroup["default"]; + return this.apiClient.callApi('/policy', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Update or create a security policy + * @param {module:model/IdmPolicyGroup} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IdmPolicyGroup} + */ + + }, { + key: "putPolicy", + value: function putPolicy(body) { + return this.putPolicyWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] List banned IPs + * @param {module:model/IpbanUnbanRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IpbanUnbanResponse} and HTTP response + */ + + }, { + key: "unbanWithHttpInfo", + value: function unbanWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling unban"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _IpbanUnbanResponse["default"]; + return this.apiClient.callApi('/policy/ipbans', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] List banned IPs + * @param {module:model/IpbanUnbanRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IpbanUnbanResponse} + */ + + }, { + key: "unban", + value: function unban(body) { + return this.unbanWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Update white/black lists + * @param {module:model/IpbanIPsCollection} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IpbanIPsCollection} and HTTP response + */ + + }, { + key: "updateIPsWithHttpInfo", + value: function updateIPsWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling updateIPs"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _IpbanIPsCollection["default"]; + return this.apiClient.callApi('/policy/iplists', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Update white/black lists + * @param {module:model/IpbanIPsCollection} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IpbanIPsCollection} + */ + + }, { + key: "updateIPs", + value: function updateIPs(body) { + return this.updateIPsWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + }]); + + return EnterprisePolicyServiceApi; +}(); + +exports["default"] = EnterprisePolicyServiceApi; +//# sourceMappingURL=EnterprisePolicyServiceApi.js.map diff --git a/lib/api/EnterprisePolicyServiceApi.js.map b/lib/api/EnterprisePolicyServiceApi.js.map new file mode 100644 index 0000000..e9ccc6e --- /dev/null +++ b/lib/api/EnterprisePolicyServiceApi.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/api/EnterprisePolicyServiceApi.js"],"names":["EnterprisePolicyServiceApi","apiClient","ApiClient","instance","uuid","postBody","undefined","Error","pathParams","queryParams","headerParams","formParams","authNames","contentTypes","accepts","returnType","RestDeleteResponse","callApi","deletePolicyWithHttpInfo","then","response_and_data","data","IpbanListBansCollection","listBansWithHttpInfo","name","IpbanIPsCollection","listIPsWithHttpInfo","body","IdmPolicyGroup","putPolicyWithHttpInfo","IpbanUnbanResponse","unbanWithHttpInfo","updateIPsWithHttpInfo"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from \"../ApiClient\";\nimport IdmPolicyGroup from '../model/IdmPolicyGroup';\nimport IpbanIPsCollection from '../model/IpbanIPsCollection';\nimport IpbanListBansCollection from '../model/IpbanListBansCollection';\nimport IpbanUnbanRequest from '../model/IpbanUnbanRequest';\nimport IpbanUnbanResponse from '../model/IpbanUnbanResponse';\nimport RestDeleteResponse from '../model/RestDeleteResponse';\n\n/**\n* EnterprisePolicyService service.\n* @module api/EnterprisePolicyServiceApi\n* @version 2.0\n*/\nexport default class EnterprisePolicyServiceApi {\n\n /**\n * Constructs a new EnterprisePolicyServiceApi. \n * @alias module:api/EnterprisePolicyServiceApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n constructor(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n }\n\n\n\n /**\n * [Enterprise Only] Delete a security policy\n * @param {String} uuid \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestDeleteResponse} and HTTP response\n */\n deletePolicyWithHttpInfo(uuid) {\n let postBody = null;\n\n // verify the required parameter 'uuid' is set\n if (uuid === undefined || uuid === null) {\n throw new Error(\"Missing the required parameter 'uuid' when calling deletePolicy\");\n }\n\n\n let pathParams = {\n 'Uuid': uuid\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = RestDeleteResponse;\n\n return this.apiClient.callApi(\n '/policy/{Uuid}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Delete a security policy\n * @param {String} uuid \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestDeleteResponse}\n */\n deletePolicy(uuid) {\n return this.deletePolicyWithHttpInfo(uuid)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] List banned IPs\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IpbanListBansCollection} and HTTP response\n */\n listBansWithHttpInfo() {\n let postBody = null;\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = IpbanListBansCollection;\n\n return this.apiClient.callApi(\n '/policy/ipbans', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] List banned IPs\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IpbanListBansCollection}\n */\n listBans() {\n return this.listBansWithHttpInfo()\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] List white/black lists\n * @param {String} name \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IpbanIPsCollection} and HTTP response\n */\n listIPsWithHttpInfo(name) {\n let postBody = null;\n\n // verify the required parameter 'name' is set\n if (name === undefined || name === null) {\n throw new Error(\"Missing the required parameter 'name' when calling listIPs\");\n }\n\n\n let pathParams = {\n 'Name': name\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = IpbanIPsCollection;\n\n return this.apiClient.callApi(\n '/policy/iplists/{Name}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] List white/black lists\n * @param {String} name \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IpbanIPsCollection}\n */\n listIPs(name) {\n return this.listIPsWithHttpInfo(name)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Update or create a security policy\n * @param {module:model/IdmPolicyGroup} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IdmPolicyGroup} and HTTP response\n */\n putPolicyWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling putPolicy\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = IdmPolicyGroup;\n\n return this.apiClient.callApi(\n '/policy', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Update or create a security policy\n * @param {module:model/IdmPolicyGroup} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IdmPolicyGroup}\n */\n putPolicy(body) {\n return this.putPolicyWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] List banned IPs\n * @param {module:model/IpbanUnbanRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IpbanUnbanResponse} and HTTP response\n */\n unbanWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling unban\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = IpbanUnbanResponse;\n\n return this.apiClient.callApi(\n '/policy/ipbans', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] List banned IPs\n * @param {module:model/IpbanUnbanRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IpbanUnbanResponse}\n */\n unban(body) {\n return this.unbanWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Update white/black lists\n * @param {module:model/IpbanIPsCollection} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IpbanIPsCollection} and HTTP response\n */\n updateIPsWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling updateIPs\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = IpbanIPsCollection;\n\n return this.apiClient.callApi(\n '/policy/iplists', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Update white/black lists\n * @param {module:model/IpbanIPsCollection} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IpbanIPsCollection}\n */\n updateIPs(body) {\n return this.updateIPsWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n}\n"],"file":"EnterprisePolicyServiceApi.js"} \ No newline at end of file diff --git a/lib/api/EnterpriseTokenServiceApi.js b/lib/api/EnterpriseTokenServiceApi.js new file mode 100644 index 0000000..a5532ef --- /dev/null +++ b/lib/api/EnterpriseTokenServiceApi.js @@ -0,0 +1,207 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthPatListResponse = _interopRequireDefault(require("../model/AuthPatListResponse")); + +var _EntListAccessTokensRequest = _interopRequireDefault(require("../model/EntListAccessTokensRequest")); + +var _EntPersonalAccessTokenRequest = _interopRequireDefault(require("../model/EntPersonalAccessTokenRequest")); + +var _EntPersonalAccessTokenResponse = _interopRequireDefault(require("../model/EntPersonalAccessTokenResponse")); + +var _RestRevokeResponse = _interopRequireDefault(require("../model/RestRevokeResponse")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* EnterpriseTokenService service. +* @module api/EnterpriseTokenServiceApi +* @version 2.0 +*/ +var EnterpriseTokenServiceApi = /*#__PURE__*/function () { + /** + * Constructs a new EnterpriseTokenServiceApi. + * @alias module:api/EnterpriseTokenServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function EnterpriseTokenServiceApi(apiClient) { + _classCallCheck(this, EnterpriseTokenServiceApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Generate a personal access token + * @param {module:model/EntPersonalAccessTokenRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPersonalAccessTokenResponse} and HTTP response + */ + + + _createClass(EnterpriseTokenServiceApi, [{ + key: "generatePersonalAccessTokenWithHttpInfo", + value: function generatePersonalAccessTokenWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling generatePersonalAccessToken"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntPersonalAccessTokenResponse["default"]; + return this.apiClient.callApi('/auth/token/personal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * Generate a personal access token + * @param {module:model/EntPersonalAccessTokenRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPersonalAccessTokenResponse} + */ + + }, { + key: "generatePersonalAccessToken", + value: function generatePersonalAccessToken(body) { + return this.generatePersonalAccessTokenWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * Generate a personal access token + * @param {module:model/EntPersonalAccessTokenRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPersonalAccessTokenResponse} and HTTP response + */ + + }, { + key: "impersonatePersonalAccessTokenWithHttpInfo", + value: function impersonatePersonalAccessTokenWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling impersonatePersonalAccessToken"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntPersonalAccessTokenResponse["default"]; + return this.apiClient.callApi('/auth/token/impersonate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * Generate a personal access token + * @param {module:model/EntPersonalAccessTokenRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPersonalAccessTokenResponse} + */ + + }, { + key: "impersonatePersonalAccessToken", + value: function impersonatePersonalAccessToken(body) { + return this.impersonatePersonalAccessTokenWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * List generated personal access tokens, eventually filtering by user + * @param {module:model/EntListAccessTokensRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AuthPatListResponse} and HTTP response + */ + + }, { + key: "listPersonalAccessTokensWithHttpInfo", + value: function listPersonalAccessTokensWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling listPersonalAccessTokens"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _AuthPatListResponse["default"]; + return this.apiClient.callApi('/auth/tokens', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * List generated personal access tokens, eventually filtering by user + * @param {module:model/EntListAccessTokensRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AuthPatListResponse} + */ + + }, { + key: "listPersonalAccessTokens", + value: function listPersonalAccessTokens(body) { + return this.listPersonalAccessTokensWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * Delete a personal access token based on its Uuid + * @param {String} tokenId + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestRevokeResponse} and HTTP response + */ + + }, { + key: "revokePersonalAccessTokenWithHttpInfo", + value: function revokePersonalAccessTokenWithHttpInfo(tokenId) { + var postBody = null; // verify the required parameter 'tokenId' is set + + if (tokenId === undefined || tokenId === null) { + throw new Error("Missing the required parameter 'tokenId' when calling revokePersonalAccessToken"); + } + + var pathParams = { + 'TokenId': tokenId + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _RestRevokeResponse["default"]; + return this.apiClient.callApi('/auth/tokens/{TokenId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * Delete a personal access token based on its Uuid + * @param {String} tokenId + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestRevokeResponse} + */ + + }, { + key: "revokePersonalAccessToken", + value: function revokePersonalAccessToken(tokenId) { + return this.revokePersonalAccessTokenWithHttpInfo(tokenId).then(function (response_and_data) { + return response_and_data.data; + }); + } + }]); + + return EnterpriseTokenServiceApi; +}(); + +exports["default"] = EnterpriseTokenServiceApi; +//# sourceMappingURL=EnterpriseTokenServiceApi.js.map diff --git a/lib/api/EnterpriseTokenServiceApi.js.map b/lib/api/EnterpriseTokenServiceApi.js.map new file mode 100644 index 0000000..de7d3a2 --- /dev/null +++ b/lib/api/EnterpriseTokenServiceApi.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/api/EnterpriseTokenServiceApi.js"],"names":["EnterpriseTokenServiceApi","apiClient","ApiClient","instance","body","postBody","undefined","Error","pathParams","queryParams","headerParams","formParams","authNames","contentTypes","accepts","returnType","EntPersonalAccessTokenResponse","callApi","generatePersonalAccessTokenWithHttpInfo","then","response_and_data","data","impersonatePersonalAccessTokenWithHttpInfo","AuthPatListResponse","listPersonalAccessTokensWithHttpInfo","tokenId","RestRevokeResponse","revokePersonalAccessTokenWithHttpInfo"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from \"../ApiClient\";\nimport AuthPatListResponse from '../model/AuthPatListResponse';\nimport EntListAccessTokensRequest from '../model/EntListAccessTokensRequest';\nimport EntPersonalAccessTokenRequest from '../model/EntPersonalAccessTokenRequest';\nimport EntPersonalAccessTokenResponse from '../model/EntPersonalAccessTokenResponse';\nimport RestRevokeResponse from '../model/RestRevokeResponse';\n\n/**\n* EnterpriseTokenService service.\n* @module api/EnterpriseTokenServiceApi\n* @version 2.0\n*/\nexport default class EnterpriseTokenServiceApi {\n\n /**\n * Constructs a new EnterpriseTokenServiceApi. \n * @alias module:api/EnterpriseTokenServiceApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n constructor(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n }\n\n\n\n /**\n * Generate a personal access token\n * @param {module:model/EntPersonalAccessTokenRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPersonalAccessTokenResponse} and HTTP response\n */\n generatePersonalAccessTokenWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling generatePersonalAccessToken\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntPersonalAccessTokenResponse;\n\n return this.apiClient.callApi(\n '/auth/token/personal', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * Generate a personal access token\n * @param {module:model/EntPersonalAccessTokenRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPersonalAccessTokenResponse}\n */\n generatePersonalAccessToken(body) {\n return this.generatePersonalAccessTokenWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * Generate a personal access token\n * @param {module:model/EntPersonalAccessTokenRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPersonalAccessTokenResponse} and HTTP response\n */\n impersonatePersonalAccessTokenWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling impersonatePersonalAccessToken\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntPersonalAccessTokenResponse;\n\n return this.apiClient.callApi(\n '/auth/token/impersonate', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * Generate a personal access token\n * @param {module:model/EntPersonalAccessTokenRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPersonalAccessTokenResponse}\n */\n impersonatePersonalAccessToken(body) {\n return this.impersonatePersonalAccessTokenWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * List generated personal access tokens, eventually filtering by user\n * @param {module:model/EntListAccessTokensRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AuthPatListResponse} and HTTP response\n */\n listPersonalAccessTokensWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling listPersonalAccessTokens\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = AuthPatListResponse;\n\n return this.apiClient.callApi(\n '/auth/tokens', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * List generated personal access tokens, eventually filtering by user\n * @param {module:model/EntListAccessTokensRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AuthPatListResponse}\n */\n listPersonalAccessTokens(body) {\n return this.listPersonalAccessTokensWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * Delete a personal access token based on its Uuid\n * @param {String} tokenId \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestRevokeResponse} and HTTP response\n */\n revokePersonalAccessTokenWithHttpInfo(tokenId) {\n let postBody = null;\n\n // verify the required parameter 'tokenId' is set\n if (tokenId === undefined || tokenId === null) {\n throw new Error(\"Missing the required parameter 'tokenId' when calling revokePersonalAccessToken\");\n }\n\n\n let pathParams = {\n 'TokenId': tokenId\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = RestRevokeResponse;\n\n return this.apiClient.callApi(\n '/auth/tokens/{TokenId}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * Delete a personal access token based on its Uuid\n * @param {String} tokenId \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestRevokeResponse}\n */\n revokePersonalAccessToken(tokenId) {\n return this.revokePersonalAccessTokenWithHttpInfo(tokenId)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n}\n"],"file":"EnterpriseTokenServiceApi.js"} \ No newline at end of file diff --git a/lib/api/LicenseServiceApi.js b/lib/api/LicenseServiceApi.js new file mode 100644 index 0000000..46062e1 --- /dev/null +++ b/lib/api/LicenseServiceApi.js @@ -0,0 +1,125 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _CertLicenseStatsResponse = _interopRequireDefault(require("../model/CertLicenseStatsResponse")); + +var _CertPutLicenseInfoRequest = _interopRequireDefault(require("../model/CertPutLicenseInfoRequest")); + +var _CertPutLicenseInfoResponse = _interopRequireDefault(require("../model/CertPutLicenseInfoResponse")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* LicenseService service. +* @module api/LicenseServiceApi +* @version 2.0 +*/ +var LicenseServiceApi = /*#__PURE__*/function () { + /** + * Constructs a new LicenseServiceApi. + * @alias module:api/LicenseServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function LicenseServiceApi(apiClient) { + _classCallCheck(this, LicenseServiceApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * [Enterprise Only] Display statistics about licenses usage + * @param {Object} opts Optional parameters + * @param {Boolean} opts.forceRefresh + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CertLicenseStatsResponse} and HTTP response + */ + + + _createClass(LicenseServiceApi, [{ + key: "licenseStatsWithHttpInfo", + value: function licenseStatsWithHttpInfo(opts) { + opts = opts || {}; + var postBody = null; + var pathParams = {}; + var queryParams = { + 'ForceRefresh': opts['forceRefresh'] + }; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _CertLicenseStatsResponse["default"]; + return this.apiClient.callApi('/license/stats', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Display statistics about licenses usage + * @param {Object} opts Optional parameters + * @param {Boolean} opts.forceRefresh + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CertLicenseStatsResponse} + */ + + }, { + key: "licenseStats", + value: function licenseStats(opts) { + return this.licenseStatsWithHttpInfo(opts).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Update License String + * @param {module:model/CertPutLicenseInfoRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CertPutLicenseInfoResponse} and HTTP response + */ + + }, { + key: "putLicenseInfoWithHttpInfo", + value: function putLicenseInfoWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putLicenseInfo"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _CertPutLicenseInfoResponse["default"]; + return this.apiClient.callApi('/license/update', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Update License String + * @param {module:model/CertPutLicenseInfoRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CertPutLicenseInfoResponse} + */ + + }, { + key: "putLicenseInfo", + value: function putLicenseInfo(body) { + return this.putLicenseInfoWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + }]); + + return LicenseServiceApi; +}(); + +exports["default"] = LicenseServiceApi; +//# sourceMappingURL=LicenseServiceApi.js.map diff --git a/lib/api/LicenseServiceApi.js.map b/lib/api/LicenseServiceApi.js.map new file mode 100644 index 0000000..ffbb8b8 --- /dev/null +++ b/lib/api/LicenseServiceApi.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/api/LicenseServiceApi.js"],"names":["LicenseServiceApi","apiClient","ApiClient","instance","opts","postBody","pathParams","queryParams","headerParams","formParams","authNames","contentTypes","accepts","returnType","CertLicenseStatsResponse","callApi","licenseStatsWithHttpInfo","then","response_and_data","data","body","undefined","Error","CertPutLicenseInfoResponse","putLicenseInfoWithHttpInfo"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA;AACA;AACA;AACA;AACA;IACqBA,iB;AAEjB;AACJ;AACA;AACA;AACA;AACA;AACA;AACI,6BAAYC,SAAZ,EAAuB;AAAA;;AACnB,SAAKA,SAAL,GAAiBA,SAAS,IAAIC,sBAAUC,QAAxC;AACH;AAID;AACJ;AACA;AACA;AACA;AACA;;;;;WACI,kCAAyBC,IAAzB,EAA+B;AAC7BA,MAAAA,IAAI,GAAGA,IAAI,IAAI,EAAf;AACA,UAAIC,QAAQ,GAAG,IAAf;AAGA,UAAIC,UAAU,GAAG,EAAjB;AAEA,UAAIC,WAAW,GAAG;AAChB,wBAAgBH,IAAI,CAAC,cAAD;AADJ,OAAlB;AAGA,UAAII,YAAY,GAAG,EAAnB;AAEA,UAAIC,UAAU,GAAG,EAAjB;AAGA,UAAIC,SAAS,GAAG,EAAhB;AACA,UAAIC,YAAY,GAAG,CAAC,kBAAD,CAAnB;AACA,UAAIC,OAAO,GAAG,CAAC,kBAAD,CAAd;AACA,UAAIC,UAAU,GAAGC,oCAAjB;AAEA,aAAO,KAAKb,SAAL,CAAec,OAAf,CACL,gBADK,EACa,KADb,EAELT,UAFK,EAEOC,WAFP,EAEoBC,YAFpB,EAEkCC,UAFlC,EAE8CJ,QAF9C,EAGLK,SAHK,EAGMC,YAHN,EAGoBC,OAHpB,EAG6BC,UAH7B,CAAP;AAKD;AAED;AACJ;AACA;AACA;AACA;AACA;;;;WACI,sBAAaT,IAAb,EAAmB;AACjB,aAAO,KAAKY,wBAAL,CAA8BZ,IAA9B,EACJa,IADI,CACC,UAASC,iBAAT,EAA4B;AAChC,eAAOA,iBAAiB,CAACC,IAAzB;AACD,OAHI,CAAP;AAID;AAGD;AACJ;AACA;AACA;AACA;;;;WACI,oCAA2BC,IAA3B,EAAiC;AAC/B,UAAIf,QAAQ,GAAGe,IAAf,CAD+B,CAG/B;;AACA,UAAIA,IAAI,KAAKC,SAAT,IAAsBD,IAAI,KAAK,IAAnC,EAAyC;AACvC,cAAM,IAAIE,KAAJ,CAAU,mEAAV,CAAN;AACD;;AAGD,UAAIhB,UAAU,GAAG,EAAjB;AAEA,UAAIC,WAAW,GAAG,EAAlB;AAEA,UAAIC,YAAY,GAAG,EAAnB;AAEA,UAAIC,UAAU,GAAG,EAAjB;AAGA,UAAIC,SAAS,GAAG,EAAhB;AACA,UAAIC,YAAY,GAAG,CAAC,kBAAD,CAAnB;AACA,UAAIC,OAAO,GAAG,CAAC,kBAAD,CAAd;AACA,UAAIC,UAAU,GAAGU,sCAAjB;AAEA,aAAO,KAAKtB,SAAL,CAAec,OAAf,CACL,iBADK,EACc,KADd,EAELT,UAFK,EAEOC,WAFP,EAEoBC,YAFpB,EAEkCC,UAFlC,EAE8CJ,QAF9C,EAGLK,SAHK,EAGMC,YAHN,EAGoBC,OAHpB,EAG6BC,UAH7B,CAAP;AAKD;AAED;AACJ;AACA;AACA;AACA;;;;WACI,wBAAeO,IAAf,EAAqB;AACnB,aAAO,KAAKI,0BAAL,CAAgCJ,IAAhC,EACJH,IADI,CACC,UAASC,iBAAT,EAA4B;AAChC,eAAOA,iBAAiB,CAACC,IAAzB;AACD,OAHI,CAAP;AAID","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from \"../ApiClient\";\nimport CertLicenseStatsResponse from '../model/CertLicenseStatsResponse';\nimport CertPutLicenseInfoRequest from '../model/CertPutLicenseInfoRequest';\nimport CertPutLicenseInfoResponse from '../model/CertPutLicenseInfoResponse';\n\n/**\n* LicenseService service.\n* @module api/LicenseServiceApi\n* @version 2.0\n*/\nexport default class LicenseServiceApi {\n\n /**\n * Constructs a new LicenseServiceApi. \n * @alias module:api/LicenseServiceApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n constructor(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n }\n\n\n\n /**\n * [Enterprise Only] Display statistics about licenses usage\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.forceRefresh \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CertLicenseStatsResponse} and HTTP response\n */\n licenseStatsWithHttpInfo(opts) {\n opts = opts || {};\n let postBody = null;\n\n\n let pathParams = {\n };\n let queryParams = {\n 'ForceRefresh': opts['forceRefresh']\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = CertLicenseStatsResponse;\n\n return this.apiClient.callApi(\n '/license/stats', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Display statistics about licenses usage\n * @param {Object} opts Optional parameters\n * @param {Boolean} opts.forceRefresh \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CertLicenseStatsResponse}\n */\n licenseStats(opts) {\n return this.licenseStatsWithHttpInfo(opts)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Update License String\n * @param {module:model/CertPutLicenseInfoRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CertPutLicenseInfoResponse} and HTTP response\n */\n putLicenseInfoWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling putLicenseInfo\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = CertPutLicenseInfoResponse;\n\n return this.apiClient.callApi(\n '/license/update', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Update License String\n * @param {module:model/CertPutLicenseInfoRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CertPutLicenseInfoResponse}\n */\n putLicenseInfo(body) {\n return this.putLicenseInfoWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n}\n"],"file":"LicenseServiceApi.js"} \ No newline at end of file diff --git a/lib/api/SchedulerServiceApi.js b/lib/api/SchedulerServiceApi.js new file mode 100644 index 0000000..d173b2b --- /dev/null +++ b/lib/api/SchedulerServiceApi.js @@ -0,0 +1,596 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EntDeleteActionTemplateResponse = _interopRequireDefault(require("../model/EntDeleteActionTemplateResponse")); + +var _EntDeleteJobTemplateResponse = _interopRequireDefault(require("../model/EntDeleteJobTemplateResponse")); + +var _EntDeleteSelectorTemplateResponse = _interopRequireDefault(require("../model/EntDeleteSelectorTemplateResponse")); + +var _EntDocTemplatesResponse = _interopRequireDefault(require("../model/EntDocTemplatesResponse")); + +var _EntListActionTemplatesRequest = _interopRequireDefault(require("../model/EntListActionTemplatesRequest")); + +var _EntListActionTemplatesResponse = _interopRequireDefault(require("../model/EntListActionTemplatesResponse")); + +var _EntListJobTemplatesRequest = _interopRequireDefault(require("../model/EntListJobTemplatesRequest")); + +var _EntListJobTemplatesResponse = _interopRequireDefault(require("../model/EntListJobTemplatesResponse")); + +var _EntListSelectorTemplatesRequest = _interopRequireDefault(require("../model/EntListSelectorTemplatesRequest")); + +var _EntListSelectorTemplatesResponse = _interopRequireDefault(require("../model/EntListSelectorTemplatesResponse")); + +var _EntPlaygroundRequest = _interopRequireDefault(require("../model/EntPlaygroundRequest")); + +var _EntPlaygroundResponse = _interopRequireDefault(require("../model/EntPlaygroundResponse")); + +var _EntPutActionTemplateRequest = _interopRequireDefault(require("../model/EntPutActionTemplateRequest")); + +var _EntPutActionTemplateResponse = _interopRequireDefault(require("../model/EntPutActionTemplateResponse")); + +var _EntPutJobTemplateRequest = _interopRequireDefault(require("../model/EntPutJobTemplateRequest")); + +var _EntPutJobTemplateResponse = _interopRequireDefault(require("../model/EntPutJobTemplateResponse")); + +var _EntPutSelectorTemplateRequest = _interopRequireDefault(require("../model/EntPutSelectorTemplateRequest")); + +var _EntPutSelectorTemplateResponse = _interopRequireDefault(require("../model/EntPutSelectorTemplateResponse")); + +var _JobsDeleteJobResponse = _interopRequireDefault(require("../model/JobsDeleteJobResponse")); + +var _JobsPutJobRequest = _interopRequireDefault(require("../model/JobsPutJobRequest")); + +var _JobsPutJobResponse = _interopRequireDefault(require("../model/JobsPutJobResponse")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* SchedulerService service. +* @module api/SchedulerServiceApi +* @version 2.0 +*/ +var SchedulerServiceApi = /*#__PURE__*/function () { + /** + * Constructs a new SchedulerServiceApi. + * @alias module:api/SchedulerServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + function SchedulerServiceApi(apiClient) { + _classCallCheck(this, SchedulerServiceApi); + + this.apiClient = apiClient || _ApiClient["default"].instance; + } + /** + * Templates management for actions + * @param {String} templateName + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteActionTemplateResponse} and HTTP response + */ + + + _createClass(SchedulerServiceApi, [{ + key: "deleteActionTemplateWithHttpInfo", + value: function deleteActionTemplateWithHttpInfo(templateName) { + var postBody = null; // verify the required parameter 'templateName' is set + + if (templateName === undefined || templateName === null) { + throw new Error("Missing the required parameter 'templateName' when calling deleteActionTemplate"); + } + + var pathParams = { + 'TemplateName': templateName + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntDeleteActionTemplateResponse["default"]; + return this.apiClient.callApi('/scheduler/templates/actions/{TemplateName}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * Templates management for actions + * @param {String} templateName + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteActionTemplateResponse} + */ + + }, { + key: "deleteActionTemplate", + value: function deleteActionTemplate(templateName) { + return this.deleteActionTemplateWithHttpInfo(templateName).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Delete a job from the scheduler + * @param {String} jobID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JobsDeleteJobResponse} and HTTP response + */ + + }, { + key: "deleteJobWithHttpInfo", + value: function deleteJobWithHttpInfo(jobID) { + var postBody = null; // verify the required parameter 'jobID' is set + + if (jobID === undefined || jobID === null) { + throw new Error("Missing the required parameter 'jobID' when calling deleteJob"); + } + + var pathParams = { + 'JobID': jobID + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _JobsDeleteJobResponse["default"]; + return this.apiClient.callApi('/scheduler/jobs/{JobID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Delete a job from the scheduler + * @param {String} jobID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JobsDeleteJobResponse} + */ + + }, { + key: "deleteJob", + value: function deleteJob(jobID) { + return this.deleteJobWithHttpInfo(jobID).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * Templates management for Jobs + * @param {String} name + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteJobTemplateResponse} and HTTP response + */ + + }, { + key: "deleteJobTemplateWithHttpInfo", + value: function deleteJobTemplateWithHttpInfo(name) { + var postBody = null; // verify the required parameter 'name' is set + + if (name === undefined || name === null) { + throw new Error("Missing the required parameter 'name' when calling deleteJobTemplate"); + } + + var pathParams = { + 'Name': name + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntDeleteJobTemplateResponse["default"]; + return this.apiClient.callApi('/scheduler/templates/jobs/{Name}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * Templates management for Jobs + * @param {String} name + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteJobTemplateResponse} + */ + + }, { + key: "deleteJobTemplate", + value: function deleteJobTemplate(name) { + return this.deleteJobTemplateWithHttpInfo(name).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * Templates management for filters + * @param {String} templateName + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteSelectorTemplateResponse} and HTTP response + */ + + }, { + key: "deleteSelectorTemplateWithHttpInfo", + value: function deleteSelectorTemplateWithHttpInfo(templateName) { + var postBody = null; // verify the required parameter 'templateName' is set + + if (templateName === undefined || templateName === null) { + throw new Error("Missing the required parameter 'templateName' when calling deleteSelectorTemplate"); + } + + var pathParams = { + 'TemplateName': templateName + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntDeleteSelectorTemplateResponse["default"]; + return this.apiClient.callApi('/scheduler/templates/selectors/{TemplateName}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * Templates management for filters + * @param {String} templateName + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteSelectorTemplateResponse} + */ + + }, { + key: "deleteSelectorTemplate", + value: function deleteSelectorTemplate(templateName) { + return this.deleteSelectorTemplateWithHttpInfo(templateName).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * Run a code sample + * @param {module:model/EntPlaygroundRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPlaygroundResponse} and HTTP response + */ + + }, { + key: "executePlaygroundCodeWithHttpInfo", + value: function executePlaygroundCodeWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling executePlaygroundCode"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntPlaygroundResponse["default"]; + return this.apiClient.callApi('/scheduler/templates/playground', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * Run a code sample + * @param {module:model/EntPlaygroundRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPlaygroundResponse} + */ + + }, { + key: "executePlaygroundCode", + value: function executePlaygroundCode(body) { + return this.executePlaygroundCodeWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * Templates management for actions + * @param {module:model/EntListActionTemplatesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntListActionTemplatesResponse} and HTTP response + */ + + }, { + key: "listActionTemplatesWithHttpInfo", + value: function listActionTemplatesWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling listActionTemplates"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntListActionTemplatesResponse["default"]; + return this.apiClient.callApi('/scheduler/templates/actions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * Templates management for actions + * @param {module:model/EntListActionTemplatesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntListActionTemplatesResponse} + */ + + }, { + key: "listActionTemplates", + value: function listActionTemplates(body) { + return this.listActionTemplatesWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * @param {String} type + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDocTemplatesResponse} and HTTP response + */ + + }, { + key: "listDocTemplatesWithHttpInfo", + value: function listDocTemplatesWithHttpInfo(type) { + var postBody = null; // verify the required parameter 'type' is set + + if (type === undefined || type === null) { + throw new Error("Missing the required parameter 'type' when calling listDocTemplates"); + } + + var pathParams = { + 'Type': type + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntDocTemplatesResponse["default"]; + return this.apiClient.callApi('/scheduler/templates/docs/{Type}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * @param {String} type + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDocTemplatesResponse} + */ + + }, { + key: "listDocTemplates", + value: function listDocTemplates(type) { + return this.listDocTemplatesWithHttpInfo(type).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * Templates management for Jobs + * @param {module:model/EntListJobTemplatesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntListJobTemplatesResponse} and HTTP response + */ + + }, { + key: "listJobTemplatesWithHttpInfo", + value: function listJobTemplatesWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling listJobTemplates"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntListJobTemplatesResponse["default"]; + return this.apiClient.callApi('/scheduler/templates/jobs', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * Templates management for Jobs + * @param {module:model/EntListJobTemplatesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntListJobTemplatesResponse} + */ + + }, { + key: "listJobTemplates", + value: function listJobTemplates(body) { + return this.listJobTemplatesWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * Templates management for filters + * @param {module:model/EntListSelectorTemplatesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntListSelectorTemplatesResponse} and HTTP response + */ + + }, { + key: "listSelectorTemplatesWithHttpInfo", + value: function listSelectorTemplatesWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling listSelectorTemplates"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntListSelectorTemplatesResponse["default"]; + return this.apiClient.callApi('/scheduler/templates/selectors', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * Templates management for filters + * @param {module:model/EntListSelectorTemplatesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntListSelectorTemplatesResponse} + */ + + }, { + key: "listSelectorTemplates", + value: function listSelectorTemplates(body) { + return this.listSelectorTemplatesWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * Templates management for actions + * @param {module:model/EntPutActionTemplateRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPutActionTemplateResponse} and HTTP response + */ + + }, { + key: "putActionTemplateWithHttpInfo", + value: function putActionTemplateWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putActionTemplate"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntPutActionTemplateResponse["default"]; + return this.apiClient.callApi('/scheduler/templates/actions', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * Templates management for actions + * @param {module:model/EntPutActionTemplateRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPutActionTemplateResponse} + */ + + }, { + key: "putActionTemplate", + value: function putActionTemplate(body) { + return this.putActionTemplateWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * [Enterprise Only] Put a job in the scheduler + * @param {module:model/JobsPutJobRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JobsPutJobResponse} and HTTP response + */ + + }, { + key: "putJobWithHttpInfo", + value: function putJobWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putJob"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _JobsPutJobResponse["default"]; + return this.apiClient.callApi('/scheduler/jobs', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * [Enterprise Only] Put a job in the scheduler + * @param {module:model/JobsPutJobRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JobsPutJobResponse} + */ + + }, { + key: "putJob", + value: function putJob(body) { + return this.putJobWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * Templates management for Jobs + * @param {String} name + * @param {module:model/EntPutJobTemplateRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPutJobTemplateResponse} and HTTP response + */ + + }, { + key: "putJobTemplateWithHttpInfo", + value: function putJobTemplateWithHttpInfo(name, body) { + var postBody = body; // verify the required parameter 'name' is set + + if (name === undefined || name === null) { + throw new Error("Missing the required parameter 'name' when calling putJobTemplate"); + } // verify the required parameter 'body' is set + + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putJobTemplate"); + } + + var pathParams = { + 'Name': name + }; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntPutJobTemplateResponse["default"]; + return this.apiClient.callApi('/scheduler/templates/jobs/{Name}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * Templates management for Jobs + * @param {String} name + * @param {module:model/EntPutJobTemplateRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPutJobTemplateResponse} + */ + + }, { + key: "putJobTemplate", + value: function putJobTemplate(name, body) { + return this.putJobTemplateWithHttpInfo(name, body).then(function (response_and_data) { + return response_and_data.data; + }); + } + /** + * Templates management for filters + * @param {module:model/EntPutSelectorTemplateRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPutSelectorTemplateResponse} and HTTP response + */ + + }, { + key: "putSelectorTemplateWithHttpInfo", + value: function putSelectorTemplateWithHttpInfo(body) { + var postBody = body; // verify the required parameter 'body' is set + + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putSelectorTemplate"); + } + + var pathParams = {}; + var queryParams = {}; + var headerParams = {}; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _EntPutSelectorTemplateResponse["default"]; + return this.apiClient.callApi('/scheduler/templates/selectors', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType); + } + /** + * Templates management for filters + * @param {module:model/EntPutSelectorTemplateRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPutSelectorTemplateResponse} + */ + + }, { + key: "putSelectorTemplate", + value: function putSelectorTemplate(body) { + return this.putSelectorTemplateWithHttpInfo(body).then(function (response_and_data) { + return response_and_data.data; + }); + } + }]); + + return SchedulerServiceApi; +}(); + +exports["default"] = SchedulerServiceApi; +//# sourceMappingURL=SchedulerServiceApi.js.map diff --git a/lib/api/SchedulerServiceApi.js.map b/lib/api/SchedulerServiceApi.js.map new file mode 100644 index 0000000..6771f8c --- /dev/null +++ b/lib/api/SchedulerServiceApi.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/api/SchedulerServiceApi.js"],"names":["SchedulerServiceApi","apiClient","ApiClient","instance","templateName","postBody","undefined","Error","pathParams","queryParams","headerParams","formParams","authNames","contentTypes","accepts","returnType","EntDeleteActionTemplateResponse","callApi","deleteActionTemplateWithHttpInfo","then","response_and_data","data","jobID","JobsDeleteJobResponse","deleteJobWithHttpInfo","name","EntDeleteJobTemplateResponse","deleteJobTemplateWithHttpInfo","EntDeleteSelectorTemplateResponse","deleteSelectorTemplateWithHttpInfo","body","EntPlaygroundResponse","executePlaygroundCodeWithHttpInfo","EntListActionTemplatesResponse","listActionTemplatesWithHttpInfo","type","EntDocTemplatesResponse","listDocTemplatesWithHttpInfo","EntListJobTemplatesResponse","listJobTemplatesWithHttpInfo","EntListSelectorTemplatesResponse","listSelectorTemplatesWithHttpInfo","EntPutActionTemplateResponse","putActionTemplateWithHttpInfo","JobsPutJobResponse","putJobWithHttpInfo","EntPutJobTemplateResponse","putJobTemplateWithHttpInfo","EntPutSelectorTemplateResponse","putSelectorTemplateWithHttpInfo"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from \"../ApiClient\";\nimport EntDeleteActionTemplateResponse from '../model/EntDeleteActionTemplateResponse';\nimport EntDeleteJobTemplateResponse from '../model/EntDeleteJobTemplateResponse';\nimport EntDeleteSelectorTemplateResponse from '../model/EntDeleteSelectorTemplateResponse';\nimport EntDocTemplatesResponse from '../model/EntDocTemplatesResponse';\nimport EntListActionTemplatesRequest from '../model/EntListActionTemplatesRequest';\nimport EntListActionTemplatesResponse from '../model/EntListActionTemplatesResponse';\nimport EntListJobTemplatesRequest from '../model/EntListJobTemplatesRequest';\nimport EntListJobTemplatesResponse from '../model/EntListJobTemplatesResponse';\nimport EntListSelectorTemplatesRequest from '../model/EntListSelectorTemplatesRequest';\nimport EntListSelectorTemplatesResponse from '../model/EntListSelectorTemplatesResponse';\nimport EntPlaygroundRequest from '../model/EntPlaygroundRequest';\nimport EntPlaygroundResponse from '../model/EntPlaygroundResponse';\nimport EntPutActionTemplateRequest from '../model/EntPutActionTemplateRequest';\nimport EntPutActionTemplateResponse from '../model/EntPutActionTemplateResponse';\nimport EntPutJobTemplateRequest from '../model/EntPutJobTemplateRequest';\nimport EntPutJobTemplateResponse from '../model/EntPutJobTemplateResponse';\nimport EntPutSelectorTemplateRequest from '../model/EntPutSelectorTemplateRequest';\nimport EntPutSelectorTemplateResponse from '../model/EntPutSelectorTemplateResponse';\nimport JobsDeleteJobResponse from '../model/JobsDeleteJobResponse';\nimport JobsPutJobRequest from '../model/JobsPutJobRequest';\nimport JobsPutJobResponse from '../model/JobsPutJobResponse';\n\n/**\n* SchedulerService service.\n* @module api/SchedulerServiceApi\n* @version 2.0\n*/\nexport default class SchedulerServiceApi {\n\n /**\n * Constructs a new SchedulerServiceApi. \n * @alias module:api/SchedulerServiceApi\n * @class\n * @param {module:ApiClient} apiClient Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n constructor(apiClient) {\n this.apiClient = apiClient || ApiClient.instance;\n }\n\n\n\n /**\n * Templates management for actions\n * @param {String} templateName \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteActionTemplateResponse} and HTTP response\n */\n deleteActionTemplateWithHttpInfo(templateName) {\n let postBody = null;\n\n // verify the required parameter 'templateName' is set\n if (templateName === undefined || templateName === null) {\n throw new Error(\"Missing the required parameter 'templateName' when calling deleteActionTemplate\");\n }\n\n\n let pathParams = {\n 'TemplateName': templateName\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntDeleteActionTemplateResponse;\n\n return this.apiClient.callApi(\n '/scheduler/templates/actions/{TemplateName}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * Templates management for actions\n * @param {String} templateName \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteActionTemplateResponse}\n */\n deleteActionTemplate(templateName) {\n return this.deleteActionTemplateWithHttpInfo(templateName)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Delete a job from the scheduler\n * @param {String} jobID \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JobsDeleteJobResponse} and HTTP response\n */\n deleteJobWithHttpInfo(jobID) {\n let postBody = null;\n\n // verify the required parameter 'jobID' is set\n if (jobID === undefined || jobID === null) {\n throw new Error(\"Missing the required parameter 'jobID' when calling deleteJob\");\n }\n\n\n let pathParams = {\n 'JobID': jobID\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = JobsDeleteJobResponse;\n\n return this.apiClient.callApi(\n '/scheduler/jobs/{JobID}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Delete a job from the scheduler\n * @param {String} jobID \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JobsDeleteJobResponse}\n */\n deleteJob(jobID) {\n return this.deleteJobWithHttpInfo(jobID)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * Templates management for Jobs\n * @param {String} name \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteJobTemplateResponse} and HTTP response\n */\n deleteJobTemplateWithHttpInfo(name) {\n let postBody = null;\n\n // verify the required parameter 'name' is set\n if (name === undefined || name === null) {\n throw new Error(\"Missing the required parameter 'name' when calling deleteJobTemplate\");\n }\n\n\n let pathParams = {\n 'Name': name\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntDeleteJobTemplateResponse;\n\n return this.apiClient.callApi(\n '/scheduler/templates/jobs/{Name}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * Templates management for Jobs\n * @param {String} name \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteJobTemplateResponse}\n */\n deleteJobTemplate(name) {\n return this.deleteJobTemplateWithHttpInfo(name)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * Templates management for filters\n * @param {String} templateName \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteSelectorTemplateResponse} and HTTP response\n */\n deleteSelectorTemplateWithHttpInfo(templateName) {\n let postBody = null;\n\n // verify the required parameter 'templateName' is set\n if (templateName === undefined || templateName === null) {\n throw new Error(\"Missing the required parameter 'templateName' when calling deleteSelectorTemplate\");\n }\n\n\n let pathParams = {\n 'TemplateName': templateName\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntDeleteSelectorTemplateResponse;\n\n return this.apiClient.callApi(\n '/scheduler/templates/selectors/{TemplateName}', 'DELETE',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * Templates management for filters\n * @param {String} templateName \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteSelectorTemplateResponse}\n */\n deleteSelectorTemplate(templateName) {\n return this.deleteSelectorTemplateWithHttpInfo(templateName)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * Run a code sample\n * @param {module:model/EntPlaygroundRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPlaygroundResponse} and HTTP response\n */\n executePlaygroundCodeWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling executePlaygroundCode\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntPlaygroundResponse;\n\n return this.apiClient.callApi(\n '/scheduler/templates/playground', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * Run a code sample\n * @param {module:model/EntPlaygroundRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPlaygroundResponse}\n */\n executePlaygroundCode(body) {\n return this.executePlaygroundCodeWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * Templates management for actions\n * @param {module:model/EntListActionTemplatesRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntListActionTemplatesResponse} and HTTP response\n */\n listActionTemplatesWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling listActionTemplates\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntListActionTemplatesResponse;\n\n return this.apiClient.callApi(\n '/scheduler/templates/actions', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * Templates management for actions\n * @param {module:model/EntListActionTemplatesRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntListActionTemplatesResponse}\n */\n listActionTemplates(body) {\n return this.listActionTemplatesWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * @param {String} type \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDocTemplatesResponse} and HTTP response\n */\n listDocTemplatesWithHttpInfo(type) {\n let postBody = null;\n\n // verify the required parameter 'type' is set\n if (type === undefined || type === null) {\n throw new Error(\"Missing the required parameter 'type' when calling listDocTemplates\");\n }\n\n\n let pathParams = {\n 'Type': type\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntDocTemplatesResponse;\n\n return this.apiClient.callApi(\n '/scheduler/templates/docs/{Type}', 'GET',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * @param {String} type \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDocTemplatesResponse}\n */\n listDocTemplates(type) {\n return this.listDocTemplatesWithHttpInfo(type)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * Templates management for Jobs\n * @param {module:model/EntListJobTemplatesRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntListJobTemplatesResponse} and HTTP response\n */\n listJobTemplatesWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling listJobTemplates\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntListJobTemplatesResponse;\n\n return this.apiClient.callApi(\n '/scheduler/templates/jobs', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * Templates management for Jobs\n * @param {module:model/EntListJobTemplatesRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntListJobTemplatesResponse}\n */\n listJobTemplates(body) {\n return this.listJobTemplatesWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * Templates management for filters\n * @param {module:model/EntListSelectorTemplatesRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntListSelectorTemplatesResponse} and HTTP response\n */\n listSelectorTemplatesWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling listSelectorTemplates\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntListSelectorTemplatesResponse;\n\n return this.apiClient.callApi(\n '/scheduler/templates/selectors', 'POST',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * Templates management for filters\n * @param {module:model/EntListSelectorTemplatesRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntListSelectorTemplatesResponse}\n */\n listSelectorTemplates(body) {\n return this.listSelectorTemplatesWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * Templates management for actions\n * @param {module:model/EntPutActionTemplateRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPutActionTemplateResponse} and HTTP response\n */\n putActionTemplateWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling putActionTemplate\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntPutActionTemplateResponse;\n\n return this.apiClient.callApi(\n '/scheduler/templates/actions', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * Templates management for actions\n * @param {module:model/EntPutActionTemplateRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPutActionTemplateResponse}\n */\n putActionTemplate(body) {\n return this.putActionTemplateWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * [Enterprise Only] Put a job in the scheduler\n * @param {module:model/JobsPutJobRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JobsPutJobResponse} and HTTP response\n */\n putJobWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling putJob\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = JobsPutJobResponse;\n\n return this.apiClient.callApi(\n '/scheduler/jobs', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * [Enterprise Only] Put a job in the scheduler\n * @param {module:model/JobsPutJobRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JobsPutJobResponse}\n */\n putJob(body) {\n return this.putJobWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * Templates management for Jobs\n * @param {String} name \n * @param {module:model/EntPutJobTemplateRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPutJobTemplateResponse} and HTTP response\n */\n putJobTemplateWithHttpInfo(name, body) {\n let postBody = body;\n\n // verify the required parameter 'name' is set\n if (name === undefined || name === null) {\n throw new Error(\"Missing the required parameter 'name' when calling putJobTemplate\");\n }\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling putJobTemplate\");\n }\n\n\n let pathParams = {\n 'Name': name\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntPutJobTemplateResponse;\n\n return this.apiClient.callApi(\n '/scheduler/templates/jobs/{Name}', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * Templates management for Jobs\n * @param {String} name \n * @param {module:model/EntPutJobTemplateRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPutJobTemplateResponse}\n */\n putJobTemplate(name, body) {\n return this.putJobTemplateWithHttpInfo(name, body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n /**\n * Templates management for filters\n * @param {module:model/EntPutSelectorTemplateRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPutSelectorTemplateResponse} and HTTP response\n */\n putSelectorTemplateWithHttpInfo(body) {\n let postBody = body;\n\n // verify the required parameter 'body' is set\n if (body === undefined || body === null) {\n throw new Error(\"Missing the required parameter 'body' when calling putSelectorTemplate\");\n }\n\n\n let pathParams = {\n };\n let queryParams = {\n };\n let headerParams = {\n };\n let formParams = {\n };\n\n let authNames = [];\n let contentTypes = ['application/json'];\n let accepts = ['application/json'];\n let returnType = EntPutSelectorTemplateResponse;\n\n return this.apiClient.callApi(\n '/scheduler/templates/selectors', 'PUT',\n pathParams, queryParams, headerParams, formParams, postBody,\n authNames, contentTypes, accepts, returnType\n );\n }\n\n /**\n * Templates management for filters\n * @param {module:model/EntPutSelectorTemplateRequest} body \n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPutSelectorTemplateResponse}\n */\n putSelectorTemplate(body) {\n return this.putSelectorTemplateWithHttpInfo(body)\n .then(function(response_and_data) {\n return response_and_data.data;\n });\n }\n\n\n}\n"],"file":"SchedulerServiceApi.js"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js new file mode 100644 index 0000000..59f67fc --- /dev/null +++ b/lib/index.js @@ -0,0 +1,1224 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "ApiClient", { + enumerable: true, + get: function get() { + return _ApiClient["default"]; + } +}); +Object.defineProperty(exports, "ActivityObject", { + enumerable: true, + get: function get() { + return _ActivityObject["default"]; + } +}); +Object.defineProperty(exports, "ActivityObjectType", { + enumerable: true, + get: function get() { + return _ActivityObjectType["default"]; + } +}); +Object.defineProperty(exports, "AuthLdapMapping", { + enumerable: true, + get: function get() { + return _AuthLdapMapping["default"]; + } +}); +Object.defineProperty(exports, "AuthLdapMemberOfMapping", { + enumerable: true, + get: function get() { + return _AuthLdapMemberOfMapping["default"]; + } +}); +Object.defineProperty(exports, "AuthLdapSearchFilter", { + enumerable: true, + get: function get() { + return _AuthLdapSearchFilter["default"]; + } +}); +Object.defineProperty(exports, "AuthLdapServerConfig", { + enumerable: true, + get: function get() { + return _AuthLdapServerConfig["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ClientConfig", { + enumerable: true, + get: function get() { + return _AuthOAuth2ClientConfig["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ConnectorBitbucketConfig", { + enumerable: true, + get: function get() { + return _AuthOAuth2ConnectorBitbucketConfig["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ConnectorCollection", { + enumerable: true, + get: function get() { + return _AuthOAuth2ConnectorCollection["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ConnectorConfig", { + enumerable: true, + get: function get() { + return _AuthOAuth2ConnectorConfig["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ConnectorGithubConfig", { + enumerable: true, + get: function get() { + return _AuthOAuth2ConnectorGithubConfig["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ConnectorGithubConfigOrg", { + enumerable: true, + get: function get() { + return _AuthOAuth2ConnectorGithubConfigOrg["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ConnectorGitlabConfig", { + enumerable: true, + get: function get() { + return _AuthOAuth2ConnectorGitlabConfig["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ConnectorLinkedinConfig", { + enumerable: true, + get: function get() { + return _AuthOAuth2ConnectorLinkedinConfig["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ConnectorMicrosoftConfig", { + enumerable: true, + get: function get() { + return _AuthOAuth2ConnectorMicrosoftConfig["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ConnectorOAuthConfig", { + enumerable: true, + get: function get() { + return _AuthOAuth2ConnectorOAuthConfig["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ConnectorOIDCConfig", { + enumerable: true, + get: function get() { + return _AuthOAuth2ConnectorOIDCConfig["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ConnectorPydioConfig", { + enumerable: true, + get: function get() { + return _AuthOAuth2ConnectorPydioConfig["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ConnectorPydioConfigConnector", { + enumerable: true, + get: function get() { + return _AuthOAuth2ConnectorPydioConfigConnector["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2ConnectorSAMLConfig", { + enumerable: true, + get: function get() { + return _AuthOAuth2ConnectorSAMLConfig["default"]; + } +}); +Object.defineProperty(exports, "AuthOAuth2MappingRule", { + enumerable: true, + get: function get() { + return _AuthOAuth2MappingRule["default"]; + } +}); +Object.defineProperty(exports, "AuthPatListResponse", { + enumerable: true, + get: function get() { + return _AuthPatListResponse["default"]; + } +}); +Object.defineProperty(exports, "AuthPatType", { + enumerable: true, + get: function get() { + return _AuthPatType["default"]; + } +}); +Object.defineProperty(exports, "AuthPersonalAccessToken", { + enumerable: true, + get: function get() { + return _AuthPersonalAccessToken["default"]; + } +}); +Object.defineProperty(exports, "CertLicenseInfo", { + enumerable: true, + get: function get() { + return _CertLicenseInfo["default"]; + } +}); +Object.defineProperty(exports, "CertLicenseStatsResponse", { + enumerable: true, + get: function get() { + return _CertLicenseStatsResponse["default"]; + } +}); +Object.defineProperty(exports, "CertPutLicenseInfoRequest", { + enumerable: true, + get: function get() { + return _CertPutLicenseInfoRequest["default"]; + } +}); +Object.defineProperty(exports, "CertPutLicenseInfoResponse", { + enumerable: true, + get: function get() { + return _CertPutLicenseInfoResponse["default"]; + } +}); +Object.defineProperty(exports, "EntActionTemplate", { + enumerable: true, + get: function get() { + return _EntActionTemplate["default"]; + } +}); +Object.defineProperty(exports, "EntConnector", { + enumerable: true, + get: function get() { + return _EntConnector["default"]; + } +}); +Object.defineProperty(exports, "EntDeleteActionTemplateResponse", { + enumerable: true, + get: function get() { + return _EntDeleteActionTemplateResponse["default"]; + } +}); +Object.defineProperty(exports, "EntDeleteJobTemplateResponse", { + enumerable: true, + get: function get() { + return _EntDeleteJobTemplateResponse["default"]; + } +}); +Object.defineProperty(exports, "EntDeleteSelectorTemplateResponse", { + enumerable: true, + get: function get() { + return _EntDeleteSelectorTemplateResponse["default"]; + } +}); +Object.defineProperty(exports, "EntDeleteVersioningPolicyResponse", { + enumerable: true, + get: function get() { + return _EntDeleteVersioningPolicyResponse["default"]; + } +}); +Object.defineProperty(exports, "EntDeleteVirtualNodeResponse", { + enumerable: true, + get: function get() { + return _EntDeleteVirtualNodeResponse["default"]; + } +}); +Object.defineProperty(exports, "EntDocTemplatePiece", { + enumerable: true, + get: function get() { + return _EntDocTemplatePiece["default"]; + } +}); +Object.defineProperty(exports, "EntDocTemplatesResponse", { + enumerable: true, + get: function get() { + return _EntDocTemplatesResponse["default"]; + } +}); +Object.defineProperty(exports, "EntExternalDirectoryCollection", { + enumerable: true, + get: function get() { + return _EntExternalDirectoryCollection["default"]; + } +}); +Object.defineProperty(exports, "EntExternalDirectoryConfig", { + enumerable: true, + get: function get() { + return _EntExternalDirectoryConfig["default"]; + } +}); +Object.defineProperty(exports, "EntExternalDirectoryResponse", { + enumerable: true, + get: function get() { + return _EntExternalDirectoryResponse["default"]; + } +}); +Object.defineProperty(exports, "EntFrontLoginConnectorsResponse", { + enumerable: true, + get: function get() { + return _EntFrontLoginConnectorsResponse["default"]; + } +}); +Object.defineProperty(exports, "EntListAccessTokensRequest", { + enumerable: true, + get: function get() { + return _EntListAccessTokensRequest["default"]; + } +}); +Object.defineProperty(exports, "EntListActionTemplatesRequest", { + enumerable: true, + get: function get() { + return _EntListActionTemplatesRequest["default"]; + } +}); +Object.defineProperty(exports, "EntListActionTemplatesResponse", { + enumerable: true, + get: function get() { + return _EntListActionTemplatesResponse["default"]; + } +}); +Object.defineProperty(exports, "EntListJobTemplatesRequest", { + enumerable: true, + get: function get() { + return _EntListJobTemplatesRequest["default"]; + } +}); +Object.defineProperty(exports, "EntListJobTemplatesResponse", { + enumerable: true, + get: function get() { + return _EntListJobTemplatesResponse["default"]; + } +}); +Object.defineProperty(exports, "EntListSelectorTemplatesRequest", { + enumerable: true, + get: function get() { + return _EntListSelectorTemplatesRequest["default"]; + } +}); +Object.defineProperty(exports, "EntListSelectorTemplatesResponse", { + enumerable: true, + get: function get() { + return _EntListSelectorTemplatesResponse["default"]; + } +}); +Object.defineProperty(exports, "EntListSitesResponse", { + enumerable: true, + get: function get() { + return _EntListSitesResponse["default"]; + } +}); +Object.defineProperty(exports, "EntOAuth2ClientCollection", { + enumerable: true, + get: function get() { + return _EntOAuth2ClientCollection["default"]; + } +}); +Object.defineProperty(exports, "EntOAuth2ClientResponse", { + enumerable: true, + get: function get() { + return _EntOAuth2ClientResponse["default"]; + } +}); +Object.defineProperty(exports, "EntOAuth2ConnectorCollection", { + enumerable: true, + get: function get() { + return _EntOAuth2ConnectorCollection["default"]; + } +}); +Object.defineProperty(exports, "EntOAuth2ConnectorResponse", { + enumerable: true, + get: function get() { + return _EntOAuth2ConnectorResponse["default"]; + } +}); +Object.defineProperty(exports, "EntPersonalAccessTokenRequest", { + enumerable: true, + get: function get() { + return _EntPersonalAccessTokenRequest["default"]; + } +}); +Object.defineProperty(exports, "EntPersonalAccessTokenResponse", { + enumerable: true, + get: function get() { + return _EntPersonalAccessTokenResponse["default"]; + } +}); +Object.defineProperty(exports, "EntPlaygroundRequest", { + enumerable: true, + get: function get() { + return _EntPlaygroundRequest["default"]; + } +}); +Object.defineProperty(exports, "EntPlaygroundResponse", { + enumerable: true, + get: function get() { + return _EntPlaygroundResponse["default"]; + } +}); +Object.defineProperty(exports, "EntPutActionTemplateRequest", { + enumerable: true, + get: function get() { + return _EntPutActionTemplateRequest["default"]; + } +}); +Object.defineProperty(exports, "EntPutActionTemplateResponse", { + enumerable: true, + get: function get() { + return _EntPutActionTemplateResponse["default"]; + } +}); +Object.defineProperty(exports, "EntPutJobTemplateRequest", { + enumerable: true, + get: function get() { + return _EntPutJobTemplateRequest["default"]; + } +}); +Object.defineProperty(exports, "EntPutJobTemplateResponse", { + enumerable: true, + get: function get() { + return _EntPutJobTemplateResponse["default"]; + } +}); +Object.defineProperty(exports, "EntPutSelectorTemplateRequest", { + enumerable: true, + get: function get() { + return _EntPutSelectorTemplateRequest["default"]; + } +}); +Object.defineProperty(exports, "EntPutSelectorTemplateResponse", { + enumerable: true, + get: function get() { + return _EntPutSelectorTemplateResponse["default"]; + } +}); +Object.defineProperty(exports, "EntSelectorTemplate", { + enumerable: true, + get: function get() { + return _EntSelectorTemplate["default"]; + } +}); +Object.defineProperty(exports, "IdmACL", { + enumerable: true, + get: function get() { + return _IdmACL["default"]; + } +}); +Object.defineProperty(exports, "IdmACLAction", { + enumerable: true, + get: function get() { + return _IdmACLAction["default"]; + } +}); +Object.defineProperty(exports, "IdmPolicy", { + enumerable: true, + get: function get() { + return _IdmPolicy["default"]; + } +}); +Object.defineProperty(exports, "IdmPolicyCondition", { + enumerable: true, + get: function get() { + return _IdmPolicyCondition["default"]; + } +}); +Object.defineProperty(exports, "IdmPolicyEffect", { + enumerable: true, + get: function get() { + return _IdmPolicyEffect["default"]; + } +}); +Object.defineProperty(exports, "IdmPolicyGroup", { + enumerable: true, + get: function get() { + return _IdmPolicyGroup["default"]; + } +}); +Object.defineProperty(exports, "IdmPolicyResourceGroup", { + enumerable: true, + get: function get() { + return _IdmPolicyResourceGroup["default"]; + } +}); +Object.defineProperty(exports, "IdmRole", { + enumerable: true, + get: function get() { + return _IdmRole["default"]; + } +}); +Object.defineProperty(exports, "IdmUser", { + enumerable: true, + get: function get() { + return _IdmUser["default"]; + } +}); +Object.defineProperty(exports, "IdmWorkspace", { + enumerable: true, + get: function get() { + return _IdmWorkspace["default"]; + } +}); +Object.defineProperty(exports, "IdmWorkspaceScope", { + enumerable: true, + get: function get() { + return _IdmWorkspaceScope["default"]; + } +}); +Object.defineProperty(exports, "InstallProxyConfig", { + enumerable: true, + get: function get() { + return _InstallProxyConfig["default"]; + } +}); +Object.defineProperty(exports, "InstallTLSCertificate", { + enumerable: true, + get: function get() { + return _InstallTLSCertificate["default"]; + } +}); +Object.defineProperty(exports, "InstallTLSLetsEncrypt", { + enumerable: true, + get: function get() { + return _InstallTLSLetsEncrypt["default"]; + } +}); +Object.defineProperty(exports, "InstallTLSSelfSigned", { + enumerable: true, + get: function get() { + return _InstallTLSSelfSigned["default"]; + } +}); +Object.defineProperty(exports, "IpbanBannedConnection", { + enumerable: true, + get: function get() { + return _IpbanBannedConnection["default"]; + } +}); +Object.defineProperty(exports, "IpbanConnectionAttempt", { + enumerable: true, + get: function get() { + return _IpbanConnectionAttempt["default"]; + } +}); +Object.defineProperty(exports, "IpbanIPsCollection", { + enumerable: true, + get: function get() { + return _IpbanIPsCollection["default"]; + } +}); +Object.defineProperty(exports, "IpbanListBansCollection", { + enumerable: true, + get: function get() { + return _IpbanListBansCollection["default"]; + } +}); +Object.defineProperty(exports, "IpbanUnbanRequest", { + enumerable: true, + get: function get() { + return _IpbanUnbanRequest["default"]; + } +}); +Object.defineProperty(exports, "IpbanUnbanResponse", { + enumerable: true, + get: function get() { + return _IpbanUnbanResponse["default"]; + } +}); +Object.defineProperty(exports, "JobsAction", { + enumerable: true, + get: function get() { + return _JobsAction["default"]; + } +}); +Object.defineProperty(exports, "JobsActionLog", { + enumerable: true, + get: function get() { + return _JobsActionLog["default"]; + } +}); +Object.defineProperty(exports, "JobsActionMessage", { + enumerable: true, + get: function get() { + return _JobsActionMessage["default"]; + } +}); +Object.defineProperty(exports, "JobsActionOutput", { + enumerable: true, + get: function get() { + return _JobsActionOutput["default"]; + } +}); +Object.defineProperty(exports, "JobsActionOutputFilter", { + enumerable: true, + get: function get() { + return _JobsActionOutputFilter["default"]; + } +}); +Object.defineProperty(exports, "JobsContextMetaFilter", { + enumerable: true, + get: function get() { + return _JobsContextMetaFilter["default"]; + } +}); +Object.defineProperty(exports, "JobsContextMetaFilterType", { + enumerable: true, + get: function get() { + return _JobsContextMetaFilterType["default"]; + } +}); +Object.defineProperty(exports, "JobsDataSourceSelector", { + enumerable: true, + get: function get() { + return _JobsDataSourceSelector["default"]; + } +}); +Object.defineProperty(exports, "JobsDataSourceSelectorType", { + enumerable: true, + get: function get() { + return _JobsDataSourceSelectorType["default"]; + } +}); +Object.defineProperty(exports, "JobsDeleteJobResponse", { + enumerable: true, + get: function get() { + return _JobsDeleteJobResponse["default"]; + } +}); +Object.defineProperty(exports, "JobsIdmSelector", { + enumerable: true, + get: function get() { + return _JobsIdmSelector["default"]; + } +}); +Object.defineProperty(exports, "JobsIdmSelectorType", { + enumerable: true, + get: function get() { + return _JobsIdmSelectorType["default"]; + } +}); +Object.defineProperty(exports, "JobsJob", { + enumerable: true, + get: function get() { + return _JobsJob["default"]; + } +}); +Object.defineProperty(exports, "JobsJobParameter", { + enumerable: true, + get: function get() { + return _JobsJobParameter["default"]; + } +}); +Object.defineProperty(exports, "JobsNodesSelector", { + enumerable: true, + get: function get() { + return _JobsNodesSelector["default"]; + } +}); +Object.defineProperty(exports, "JobsPutJobRequest", { + enumerable: true, + get: function get() { + return _JobsPutJobRequest["default"]; + } +}); +Object.defineProperty(exports, "JobsPutJobResponse", { + enumerable: true, + get: function get() { + return _JobsPutJobResponse["default"]; + } +}); +Object.defineProperty(exports, "JobsSchedule", { + enumerable: true, + get: function get() { + return _JobsSchedule["default"]; + } +}); +Object.defineProperty(exports, "JobsTask", { + enumerable: true, + get: function get() { + return _JobsTask["default"]; + } +}); +Object.defineProperty(exports, "JobsTaskStatus", { + enumerable: true, + get: function get() { + return _JobsTaskStatus["default"]; + } +}); +Object.defineProperty(exports, "JobsTriggerFilter", { + enumerable: true, + get: function get() { + return _JobsTriggerFilter["default"]; + } +}); +Object.defineProperty(exports, "JobsUsersSelector", { + enumerable: true, + get: function get() { + return _JobsUsersSelector["default"]; + } +}); +Object.defineProperty(exports, "ListLogRequestLogFormat", { + enumerable: true, + get: function get() { + return _ListLogRequestLogFormat["default"]; + } +}); +Object.defineProperty(exports, "LogListLogRequest", { + enumerable: true, + get: function get() { + return _LogListLogRequest["default"]; + } +}); +Object.defineProperty(exports, "LogLogMessage", { + enumerable: true, + get: function get() { + return _LogLogMessage["default"]; + } +}); +Object.defineProperty(exports, "LogRelType", { + enumerable: true, + get: function get() { + return _LogRelType["default"]; + } +}); +Object.defineProperty(exports, "LogTimeRangeCursor", { + enumerable: true, + get: function get() { + return _LogTimeRangeCursor["default"]; + } +}); +Object.defineProperty(exports, "LogTimeRangeRequest", { + enumerable: true, + get: function get() { + return _LogTimeRangeRequest["default"]; + } +}); +Object.defineProperty(exports, "LogTimeRangeResult", { + enumerable: true, + get: function get() { + return _LogTimeRangeResult["default"]; + } +}); +Object.defineProperty(exports, "NodeChangeEventEventType", { + enumerable: true, + get: function get() { + return _NodeChangeEventEventType["default"]; + } +}); +Object.defineProperty(exports, "ObjectDataSource", { + enumerable: true, + get: function get() { + return _ObjectDataSource["default"]; + } +}); +Object.defineProperty(exports, "ObjectEncryptionMode", { + enumerable: true, + get: function get() { + return _ObjectEncryptionMode["default"]; + } +}); +Object.defineProperty(exports, "ObjectStorageType", { + enumerable: true, + get: function get() { + return _ObjectStorageType["default"]; + } +}); +Object.defineProperty(exports, "ProtobufAny", { + enumerable: true, + get: function get() { + return _ProtobufAny["default"]; + } +}); +Object.defineProperty(exports, "ReportsAuditedWorkspace", { + enumerable: true, + get: function get() { + return _ReportsAuditedWorkspace["default"]; + } +}); +Object.defineProperty(exports, "ReportsSharedResource", { + enumerable: true, + get: function get() { + return _ReportsSharedResource["default"]; + } +}); +Object.defineProperty(exports, "ReportsSharedResourceShareType", { + enumerable: true, + get: function get() { + return _ReportsSharedResourceShareType["default"]; + } +}); +Object.defineProperty(exports, "ReportsSharedResourcesRequest", { + enumerable: true, + get: function get() { + return _ReportsSharedResourcesRequest["default"]; + } +}); +Object.defineProperty(exports, "ReportsSharedResourcesResponse", { + enumerable: true, + get: function get() { + return _ReportsSharedResourcesResponse["default"]; + } +}); +Object.defineProperty(exports, "RestDeleteResponse", { + enumerable: true, + get: function get() { + return _RestDeleteResponse["default"]; + } +}); +Object.defineProperty(exports, "RestError", { + enumerable: true, + get: function get() { + return _RestError["default"]; + } +}); +Object.defineProperty(exports, "RestLogMessageCollection", { + enumerable: true, + get: function get() { + return _RestLogMessageCollection["default"]; + } +}); +Object.defineProperty(exports, "RestRevokeResponse", { + enumerable: true, + get: function get() { + return _RestRevokeResponse["default"]; + } +}); +Object.defineProperty(exports, "RestTimeRangeResultCollection", { + enumerable: true, + get: function get() { + return _RestTimeRangeResultCollection["default"]; + } +}); +Object.defineProperty(exports, "ServiceOperationType", { + enumerable: true, + get: function get() { + return _ServiceOperationType["default"]; + } +}); +Object.defineProperty(exports, "ServiceQuery", { + enumerable: true, + get: function get() { + return _ServiceQuery["default"]; + } +}); +Object.defineProperty(exports, "ServiceResourcePolicy", { + enumerable: true, + get: function get() { + return _ServiceResourcePolicy["default"]; + } +}); +Object.defineProperty(exports, "ServiceResourcePolicyAction", { + enumerable: true, + get: function get() { + return _ServiceResourcePolicyAction["default"]; + } +}); +Object.defineProperty(exports, "ServiceResourcePolicyPolicyEffect", { + enumerable: true, + get: function get() { + return _ServiceResourcePolicyPolicyEffect["default"]; + } +}); +Object.defineProperty(exports, "ServiceResourcePolicyQuery", { + enumerable: true, + get: function get() { + return _ServiceResourcePolicyQuery["default"]; + } +}); +Object.defineProperty(exports, "TreeChangeLog", { + enumerable: true, + get: function get() { + return _TreeChangeLog["default"]; + } +}); +Object.defineProperty(exports, "TreeNode", { + enumerable: true, + get: function get() { + return _TreeNode["default"]; + } +}); +Object.defineProperty(exports, "TreeNodeChangeEvent", { + enumerable: true, + get: function get() { + return _TreeNodeChangeEvent["default"]; + } +}); +Object.defineProperty(exports, "TreeNodeType", { + enumerable: true, + get: function get() { + return _TreeNodeType["default"]; + } +}); +Object.defineProperty(exports, "TreeVersioningKeepPeriod", { + enumerable: true, + get: function get() { + return _TreeVersioningKeepPeriod["default"]; + } +}); +Object.defineProperty(exports, "TreeVersioningNodeDeletedStrategy", { + enumerable: true, + get: function get() { + return _TreeVersioningNodeDeletedStrategy["default"]; + } +}); +Object.defineProperty(exports, "TreeVersioningPolicy", { + enumerable: true, + get: function get() { + return _TreeVersioningPolicy["default"]; + } +}); +Object.defineProperty(exports, "TreeWorkspaceRelativePath", { + enumerable: true, + get: function get() { + return _TreeWorkspaceRelativePath["default"]; + } +}); +Object.defineProperty(exports, "AuditDataServiceApi", { + enumerable: true, + get: function get() { + return _AuditDataServiceApi["default"]; + } +}); +Object.defineProperty(exports, "EnterpriseConfigServiceApi", { + enumerable: true, + get: function get() { + return _EnterpriseConfigServiceApi["default"]; + } +}); +Object.defineProperty(exports, "EnterpriseFrontendServiceApi", { + enumerable: true, + get: function get() { + return _EnterpriseFrontendServiceApi["default"]; + } +}); +Object.defineProperty(exports, "EnterpriseLogServiceApi", { + enumerable: true, + get: function get() { + return _EnterpriseLogServiceApi["default"]; + } +}); +Object.defineProperty(exports, "EnterprisePolicyServiceApi", { + enumerable: true, + get: function get() { + return _EnterprisePolicyServiceApi["default"]; + } +}); +Object.defineProperty(exports, "EnterpriseTokenServiceApi", { + enumerable: true, + get: function get() { + return _EnterpriseTokenServiceApi["default"]; + } +}); +Object.defineProperty(exports, "LicenseServiceApi", { + enumerable: true, + get: function get() { + return _LicenseServiceApi["default"]; + } +}); +Object.defineProperty(exports, "SchedulerServiceApi", { + enumerable: true, + get: function get() { + return _SchedulerServiceApi["default"]; + } +}); + +var _ApiClient = _interopRequireDefault(require("./ApiClient")); + +var _ActivityObject = _interopRequireDefault(require("./model/ActivityObject")); + +var _ActivityObjectType = _interopRequireDefault(require("./model/ActivityObjectType")); + +var _AuthLdapMapping = _interopRequireDefault(require("./model/AuthLdapMapping")); + +var _AuthLdapMemberOfMapping = _interopRequireDefault(require("./model/AuthLdapMemberOfMapping")); + +var _AuthLdapSearchFilter = _interopRequireDefault(require("./model/AuthLdapSearchFilter")); + +var _AuthLdapServerConfig = _interopRequireDefault(require("./model/AuthLdapServerConfig")); + +var _AuthOAuth2ClientConfig = _interopRequireDefault(require("./model/AuthOAuth2ClientConfig")); + +var _AuthOAuth2ConnectorBitbucketConfig = _interopRequireDefault(require("./model/AuthOAuth2ConnectorBitbucketConfig")); + +var _AuthOAuth2ConnectorCollection = _interopRequireDefault(require("./model/AuthOAuth2ConnectorCollection")); + +var _AuthOAuth2ConnectorConfig = _interopRequireDefault(require("./model/AuthOAuth2ConnectorConfig")); + +var _AuthOAuth2ConnectorGithubConfig = _interopRequireDefault(require("./model/AuthOAuth2ConnectorGithubConfig")); + +var _AuthOAuth2ConnectorGithubConfigOrg = _interopRequireDefault(require("./model/AuthOAuth2ConnectorGithubConfigOrg")); + +var _AuthOAuth2ConnectorGitlabConfig = _interopRequireDefault(require("./model/AuthOAuth2ConnectorGitlabConfig")); + +var _AuthOAuth2ConnectorLinkedinConfig = _interopRequireDefault(require("./model/AuthOAuth2ConnectorLinkedinConfig")); + +var _AuthOAuth2ConnectorMicrosoftConfig = _interopRequireDefault(require("./model/AuthOAuth2ConnectorMicrosoftConfig")); + +var _AuthOAuth2ConnectorOAuthConfig = _interopRequireDefault(require("./model/AuthOAuth2ConnectorOAuthConfig")); + +var _AuthOAuth2ConnectorOIDCConfig = _interopRequireDefault(require("./model/AuthOAuth2ConnectorOIDCConfig")); + +var _AuthOAuth2ConnectorPydioConfig = _interopRequireDefault(require("./model/AuthOAuth2ConnectorPydioConfig")); + +var _AuthOAuth2ConnectorPydioConfigConnector = _interopRequireDefault(require("./model/AuthOAuth2ConnectorPydioConfigConnector")); + +var _AuthOAuth2ConnectorSAMLConfig = _interopRequireDefault(require("./model/AuthOAuth2ConnectorSAMLConfig")); + +var _AuthOAuth2MappingRule = _interopRequireDefault(require("./model/AuthOAuth2MappingRule")); + +var _AuthPatListResponse = _interopRequireDefault(require("./model/AuthPatListResponse")); + +var _AuthPatType = _interopRequireDefault(require("./model/AuthPatType")); + +var _AuthPersonalAccessToken = _interopRequireDefault(require("./model/AuthPersonalAccessToken")); + +var _CertLicenseInfo = _interopRequireDefault(require("./model/CertLicenseInfo")); + +var _CertLicenseStatsResponse = _interopRequireDefault(require("./model/CertLicenseStatsResponse")); + +var _CertPutLicenseInfoRequest = _interopRequireDefault(require("./model/CertPutLicenseInfoRequest")); + +var _CertPutLicenseInfoResponse = _interopRequireDefault(require("./model/CertPutLicenseInfoResponse")); + +var _EntActionTemplate = _interopRequireDefault(require("./model/EntActionTemplate")); + +var _EntConnector = _interopRequireDefault(require("./model/EntConnector")); + +var _EntDeleteActionTemplateResponse = _interopRequireDefault(require("./model/EntDeleteActionTemplateResponse")); + +var _EntDeleteJobTemplateResponse = _interopRequireDefault(require("./model/EntDeleteJobTemplateResponse")); + +var _EntDeleteSelectorTemplateResponse = _interopRequireDefault(require("./model/EntDeleteSelectorTemplateResponse")); + +var _EntDeleteVersioningPolicyResponse = _interopRequireDefault(require("./model/EntDeleteVersioningPolicyResponse")); + +var _EntDeleteVirtualNodeResponse = _interopRequireDefault(require("./model/EntDeleteVirtualNodeResponse")); + +var _EntDocTemplatePiece = _interopRequireDefault(require("./model/EntDocTemplatePiece")); + +var _EntDocTemplatesResponse = _interopRequireDefault(require("./model/EntDocTemplatesResponse")); + +var _EntExternalDirectoryCollection = _interopRequireDefault(require("./model/EntExternalDirectoryCollection")); + +var _EntExternalDirectoryConfig = _interopRequireDefault(require("./model/EntExternalDirectoryConfig")); + +var _EntExternalDirectoryResponse = _interopRequireDefault(require("./model/EntExternalDirectoryResponse")); + +var _EntFrontLoginConnectorsResponse = _interopRequireDefault(require("./model/EntFrontLoginConnectorsResponse")); + +var _EntListAccessTokensRequest = _interopRequireDefault(require("./model/EntListAccessTokensRequest")); + +var _EntListActionTemplatesRequest = _interopRequireDefault(require("./model/EntListActionTemplatesRequest")); + +var _EntListActionTemplatesResponse = _interopRequireDefault(require("./model/EntListActionTemplatesResponse")); + +var _EntListJobTemplatesRequest = _interopRequireDefault(require("./model/EntListJobTemplatesRequest")); + +var _EntListJobTemplatesResponse = _interopRequireDefault(require("./model/EntListJobTemplatesResponse")); + +var _EntListSelectorTemplatesRequest = _interopRequireDefault(require("./model/EntListSelectorTemplatesRequest")); + +var _EntListSelectorTemplatesResponse = _interopRequireDefault(require("./model/EntListSelectorTemplatesResponse")); + +var _EntListSitesResponse = _interopRequireDefault(require("./model/EntListSitesResponse")); + +var _EntOAuth2ClientCollection = _interopRequireDefault(require("./model/EntOAuth2ClientCollection")); + +var _EntOAuth2ClientResponse = _interopRequireDefault(require("./model/EntOAuth2ClientResponse")); + +var _EntOAuth2ConnectorCollection = _interopRequireDefault(require("./model/EntOAuth2ConnectorCollection")); + +var _EntOAuth2ConnectorResponse = _interopRequireDefault(require("./model/EntOAuth2ConnectorResponse")); + +var _EntPersonalAccessTokenRequest = _interopRequireDefault(require("./model/EntPersonalAccessTokenRequest")); + +var _EntPersonalAccessTokenResponse = _interopRequireDefault(require("./model/EntPersonalAccessTokenResponse")); + +var _EntPlaygroundRequest = _interopRequireDefault(require("./model/EntPlaygroundRequest")); + +var _EntPlaygroundResponse = _interopRequireDefault(require("./model/EntPlaygroundResponse")); + +var _EntPutActionTemplateRequest = _interopRequireDefault(require("./model/EntPutActionTemplateRequest")); + +var _EntPutActionTemplateResponse = _interopRequireDefault(require("./model/EntPutActionTemplateResponse")); + +var _EntPutJobTemplateRequest = _interopRequireDefault(require("./model/EntPutJobTemplateRequest")); + +var _EntPutJobTemplateResponse = _interopRequireDefault(require("./model/EntPutJobTemplateResponse")); + +var _EntPutSelectorTemplateRequest = _interopRequireDefault(require("./model/EntPutSelectorTemplateRequest")); + +var _EntPutSelectorTemplateResponse = _interopRequireDefault(require("./model/EntPutSelectorTemplateResponse")); + +var _EntSelectorTemplate = _interopRequireDefault(require("./model/EntSelectorTemplate")); + +var _IdmACL = _interopRequireDefault(require("./model/IdmACL")); + +var _IdmACLAction = _interopRequireDefault(require("./model/IdmACLAction")); + +var _IdmPolicy = _interopRequireDefault(require("./model/IdmPolicy")); + +var _IdmPolicyCondition = _interopRequireDefault(require("./model/IdmPolicyCondition")); + +var _IdmPolicyEffect = _interopRequireDefault(require("./model/IdmPolicyEffect")); + +var _IdmPolicyGroup = _interopRequireDefault(require("./model/IdmPolicyGroup")); + +var _IdmPolicyResourceGroup = _interopRequireDefault(require("./model/IdmPolicyResourceGroup")); + +var _IdmRole = _interopRequireDefault(require("./model/IdmRole")); + +var _IdmUser = _interopRequireDefault(require("./model/IdmUser")); + +var _IdmWorkspace = _interopRequireDefault(require("./model/IdmWorkspace")); + +var _IdmWorkspaceScope = _interopRequireDefault(require("./model/IdmWorkspaceScope")); + +var _InstallProxyConfig = _interopRequireDefault(require("./model/InstallProxyConfig")); + +var _InstallTLSCertificate = _interopRequireDefault(require("./model/InstallTLSCertificate")); + +var _InstallTLSLetsEncrypt = _interopRequireDefault(require("./model/InstallTLSLetsEncrypt")); + +var _InstallTLSSelfSigned = _interopRequireDefault(require("./model/InstallTLSSelfSigned")); + +var _IpbanBannedConnection = _interopRequireDefault(require("./model/IpbanBannedConnection")); + +var _IpbanConnectionAttempt = _interopRequireDefault(require("./model/IpbanConnectionAttempt")); + +var _IpbanIPsCollection = _interopRequireDefault(require("./model/IpbanIPsCollection")); + +var _IpbanListBansCollection = _interopRequireDefault(require("./model/IpbanListBansCollection")); + +var _IpbanUnbanRequest = _interopRequireDefault(require("./model/IpbanUnbanRequest")); + +var _IpbanUnbanResponse = _interopRequireDefault(require("./model/IpbanUnbanResponse")); + +var _JobsAction = _interopRequireDefault(require("./model/JobsAction")); + +var _JobsActionLog = _interopRequireDefault(require("./model/JobsActionLog")); + +var _JobsActionMessage = _interopRequireDefault(require("./model/JobsActionMessage")); + +var _JobsActionOutput = _interopRequireDefault(require("./model/JobsActionOutput")); + +var _JobsActionOutputFilter = _interopRequireDefault(require("./model/JobsActionOutputFilter")); + +var _JobsContextMetaFilter = _interopRequireDefault(require("./model/JobsContextMetaFilter")); + +var _JobsContextMetaFilterType = _interopRequireDefault(require("./model/JobsContextMetaFilterType")); + +var _JobsDataSourceSelector = _interopRequireDefault(require("./model/JobsDataSourceSelector")); + +var _JobsDataSourceSelectorType = _interopRequireDefault(require("./model/JobsDataSourceSelectorType")); + +var _JobsDeleteJobResponse = _interopRequireDefault(require("./model/JobsDeleteJobResponse")); + +var _JobsIdmSelector = _interopRequireDefault(require("./model/JobsIdmSelector")); + +var _JobsIdmSelectorType = _interopRequireDefault(require("./model/JobsIdmSelectorType")); + +var _JobsJob = _interopRequireDefault(require("./model/JobsJob")); + +var _JobsJobParameter = _interopRequireDefault(require("./model/JobsJobParameter")); + +var _JobsNodesSelector = _interopRequireDefault(require("./model/JobsNodesSelector")); + +var _JobsPutJobRequest = _interopRequireDefault(require("./model/JobsPutJobRequest")); + +var _JobsPutJobResponse = _interopRequireDefault(require("./model/JobsPutJobResponse")); + +var _JobsSchedule = _interopRequireDefault(require("./model/JobsSchedule")); + +var _JobsTask = _interopRequireDefault(require("./model/JobsTask")); + +var _JobsTaskStatus = _interopRequireDefault(require("./model/JobsTaskStatus")); + +var _JobsTriggerFilter = _interopRequireDefault(require("./model/JobsTriggerFilter")); + +var _JobsUsersSelector = _interopRequireDefault(require("./model/JobsUsersSelector")); + +var _ListLogRequestLogFormat = _interopRequireDefault(require("./model/ListLogRequestLogFormat")); + +var _LogListLogRequest = _interopRequireDefault(require("./model/LogListLogRequest")); + +var _LogLogMessage = _interopRequireDefault(require("./model/LogLogMessage")); + +var _LogRelType = _interopRequireDefault(require("./model/LogRelType")); + +var _LogTimeRangeCursor = _interopRequireDefault(require("./model/LogTimeRangeCursor")); + +var _LogTimeRangeRequest = _interopRequireDefault(require("./model/LogTimeRangeRequest")); + +var _LogTimeRangeResult = _interopRequireDefault(require("./model/LogTimeRangeResult")); + +var _NodeChangeEventEventType = _interopRequireDefault(require("./model/NodeChangeEventEventType")); + +var _ObjectDataSource = _interopRequireDefault(require("./model/ObjectDataSource")); + +var _ObjectEncryptionMode = _interopRequireDefault(require("./model/ObjectEncryptionMode")); + +var _ObjectStorageType = _interopRequireDefault(require("./model/ObjectStorageType")); + +var _ProtobufAny = _interopRequireDefault(require("./model/ProtobufAny")); + +var _ReportsAuditedWorkspace = _interopRequireDefault(require("./model/ReportsAuditedWorkspace")); + +var _ReportsSharedResource = _interopRequireDefault(require("./model/ReportsSharedResource")); + +var _ReportsSharedResourceShareType = _interopRequireDefault(require("./model/ReportsSharedResourceShareType")); + +var _ReportsSharedResourcesRequest = _interopRequireDefault(require("./model/ReportsSharedResourcesRequest")); + +var _ReportsSharedResourcesResponse = _interopRequireDefault(require("./model/ReportsSharedResourcesResponse")); + +var _RestDeleteResponse = _interopRequireDefault(require("./model/RestDeleteResponse")); + +var _RestError = _interopRequireDefault(require("./model/RestError")); + +var _RestLogMessageCollection = _interopRequireDefault(require("./model/RestLogMessageCollection")); + +var _RestRevokeResponse = _interopRequireDefault(require("./model/RestRevokeResponse")); + +var _RestTimeRangeResultCollection = _interopRequireDefault(require("./model/RestTimeRangeResultCollection")); + +var _ServiceOperationType = _interopRequireDefault(require("./model/ServiceOperationType")); + +var _ServiceQuery = _interopRequireDefault(require("./model/ServiceQuery")); + +var _ServiceResourcePolicy = _interopRequireDefault(require("./model/ServiceResourcePolicy")); + +var _ServiceResourcePolicyAction = _interopRequireDefault(require("./model/ServiceResourcePolicyAction")); + +var _ServiceResourcePolicyPolicyEffect = _interopRequireDefault(require("./model/ServiceResourcePolicyPolicyEffect")); + +var _ServiceResourcePolicyQuery = _interopRequireDefault(require("./model/ServiceResourcePolicyQuery")); + +var _TreeChangeLog = _interopRequireDefault(require("./model/TreeChangeLog")); + +var _TreeNode = _interopRequireDefault(require("./model/TreeNode")); + +var _TreeNodeChangeEvent = _interopRequireDefault(require("./model/TreeNodeChangeEvent")); + +var _TreeNodeType = _interopRequireDefault(require("./model/TreeNodeType")); + +var _TreeVersioningKeepPeriod = _interopRequireDefault(require("./model/TreeVersioningKeepPeriod")); + +var _TreeVersioningNodeDeletedStrategy = _interopRequireDefault(require("./model/TreeVersioningNodeDeletedStrategy")); + +var _TreeVersioningPolicy = _interopRequireDefault(require("./model/TreeVersioningPolicy")); + +var _TreeWorkspaceRelativePath = _interopRequireDefault(require("./model/TreeWorkspaceRelativePath")); + +var _AuditDataServiceApi = _interopRequireDefault(require("./api/AuditDataServiceApi")); + +var _EnterpriseConfigServiceApi = _interopRequireDefault(require("./api/EnterpriseConfigServiceApi")); + +var _EnterpriseFrontendServiceApi = _interopRequireDefault(require("./api/EnterpriseFrontendServiceApi")); + +var _EnterpriseLogServiceApi = _interopRequireDefault(require("./api/EnterpriseLogServiceApi")); + +var _EnterprisePolicyServiceApi = _interopRequireDefault(require("./api/EnterprisePolicyServiceApi")); + +var _EnterpriseTokenServiceApi = _interopRequireDefault(require("./api/EnterpriseTokenServiceApi")); + +var _LicenseServiceApi = _interopRequireDefault(require("./api/LicenseServiceApi")); + +var _SchedulerServiceApi = _interopRequireDefault(require("./api/SchedulerServiceApi")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +//# sourceMappingURL=index.js.map diff --git a/lib/index.js.map b/lib/index.js.map new file mode 100644 index 0000000..dcfb8fe --- /dev/null +++ b/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from './ApiClient';\nimport ActivityObject from './model/ActivityObject';\nimport ActivityObjectType from './model/ActivityObjectType';\nimport AuthLdapMapping from './model/AuthLdapMapping';\nimport AuthLdapMemberOfMapping from './model/AuthLdapMemberOfMapping';\nimport AuthLdapSearchFilter from './model/AuthLdapSearchFilter';\nimport AuthLdapServerConfig from './model/AuthLdapServerConfig';\nimport AuthOAuth2ClientConfig from './model/AuthOAuth2ClientConfig';\nimport AuthOAuth2ConnectorBitbucketConfig from './model/AuthOAuth2ConnectorBitbucketConfig';\nimport AuthOAuth2ConnectorCollection from './model/AuthOAuth2ConnectorCollection';\nimport AuthOAuth2ConnectorConfig from './model/AuthOAuth2ConnectorConfig';\nimport AuthOAuth2ConnectorGithubConfig from './model/AuthOAuth2ConnectorGithubConfig';\nimport AuthOAuth2ConnectorGithubConfigOrg from './model/AuthOAuth2ConnectorGithubConfigOrg';\nimport AuthOAuth2ConnectorGitlabConfig from './model/AuthOAuth2ConnectorGitlabConfig';\nimport AuthOAuth2ConnectorLinkedinConfig from './model/AuthOAuth2ConnectorLinkedinConfig';\nimport AuthOAuth2ConnectorMicrosoftConfig from './model/AuthOAuth2ConnectorMicrosoftConfig';\nimport AuthOAuth2ConnectorOAuthConfig from './model/AuthOAuth2ConnectorOAuthConfig';\nimport AuthOAuth2ConnectorOIDCConfig from './model/AuthOAuth2ConnectorOIDCConfig';\nimport AuthOAuth2ConnectorPydioConfig from './model/AuthOAuth2ConnectorPydioConfig';\nimport AuthOAuth2ConnectorPydioConfigConnector from './model/AuthOAuth2ConnectorPydioConfigConnector';\nimport AuthOAuth2ConnectorSAMLConfig from './model/AuthOAuth2ConnectorSAMLConfig';\nimport AuthOAuth2MappingRule from './model/AuthOAuth2MappingRule';\nimport AuthPatListResponse from './model/AuthPatListResponse';\nimport AuthPatType from './model/AuthPatType';\nimport AuthPersonalAccessToken from './model/AuthPersonalAccessToken';\nimport CertLicenseInfo from './model/CertLicenseInfo';\nimport CertLicenseStatsResponse from './model/CertLicenseStatsResponse';\nimport CertPutLicenseInfoRequest from './model/CertPutLicenseInfoRequest';\nimport CertPutLicenseInfoResponse from './model/CertPutLicenseInfoResponse';\nimport EntActionTemplate from './model/EntActionTemplate';\nimport EntConnector from './model/EntConnector';\nimport EntDeleteActionTemplateResponse from './model/EntDeleteActionTemplateResponse';\nimport EntDeleteJobTemplateResponse from './model/EntDeleteJobTemplateResponse';\nimport EntDeleteSelectorTemplateResponse from './model/EntDeleteSelectorTemplateResponse';\nimport EntDeleteVersioningPolicyResponse from './model/EntDeleteVersioningPolicyResponse';\nimport EntDeleteVirtualNodeResponse from './model/EntDeleteVirtualNodeResponse';\nimport EntDocTemplatePiece from './model/EntDocTemplatePiece';\nimport EntDocTemplatesResponse from './model/EntDocTemplatesResponse';\nimport EntExternalDirectoryCollection from './model/EntExternalDirectoryCollection';\nimport EntExternalDirectoryConfig from './model/EntExternalDirectoryConfig';\nimport EntExternalDirectoryResponse from './model/EntExternalDirectoryResponse';\nimport EntFrontLoginConnectorsResponse from './model/EntFrontLoginConnectorsResponse';\nimport EntListAccessTokensRequest from './model/EntListAccessTokensRequest';\nimport EntListActionTemplatesRequest from './model/EntListActionTemplatesRequest';\nimport EntListActionTemplatesResponse from './model/EntListActionTemplatesResponse';\nimport EntListJobTemplatesRequest from './model/EntListJobTemplatesRequest';\nimport EntListJobTemplatesResponse from './model/EntListJobTemplatesResponse';\nimport EntListSelectorTemplatesRequest from './model/EntListSelectorTemplatesRequest';\nimport EntListSelectorTemplatesResponse from './model/EntListSelectorTemplatesResponse';\nimport EntListSitesResponse from './model/EntListSitesResponse';\nimport EntOAuth2ClientCollection from './model/EntOAuth2ClientCollection';\nimport EntOAuth2ClientResponse from './model/EntOAuth2ClientResponse';\nimport EntOAuth2ConnectorCollection from './model/EntOAuth2ConnectorCollection';\nimport EntOAuth2ConnectorResponse from './model/EntOAuth2ConnectorResponse';\nimport EntPersonalAccessTokenRequest from './model/EntPersonalAccessTokenRequest';\nimport EntPersonalAccessTokenResponse from './model/EntPersonalAccessTokenResponse';\nimport EntPlaygroundRequest from './model/EntPlaygroundRequest';\nimport EntPlaygroundResponse from './model/EntPlaygroundResponse';\nimport EntPutActionTemplateRequest from './model/EntPutActionTemplateRequest';\nimport EntPutActionTemplateResponse from './model/EntPutActionTemplateResponse';\nimport EntPutJobTemplateRequest from './model/EntPutJobTemplateRequest';\nimport EntPutJobTemplateResponse from './model/EntPutJobTemplateResponse';\nimport EntPutSelectorTemplateRequest from './model/EntPutSelectorTemplateRequest';\nimport EntPutSelectorTemplateResponse from './model/EntPutSelectorTemplateResponse';\nimport EntSelectorTemplate from './model/EntSelectorTemplate';\nimport IdmACL from './model/IdmACL';\nimport IdmACLAction from './model/IdmACLAction';\nimport IdmPolicy from './model/IdmPolicy';\nimport IdmPolicyCondition from './model/IdmPolicyCondition';\nimport IdmPolicyEffect from './model/IdmPolicyEffect';\nimport IdmPolicyGroup from './model/IdmPolicyGroup';\nimport IdmPolicyResourceGroup from './model/IdmPolicyResourceGroup';\nimport IdmRole from './model/IdmRole';\nimport IdmUser from './model/IdmUser';\nimport IdmWorkspace from './model/IdmWorkspace';\nimport IdmWorkspaceScope from './model/IdmWorkspaceScope';\nimport InstallProxyConfig from './model/InstallProxyConfig';\nimport InstallTLSCertificate from './model/InstallTLSCertificate';\nimport InstallTLSLetsEncrypt from './model/InstallTLSLetsEncrypt';\nimport InstallTLSSelfSigned from './model/InstallTLSSelfSigned';\nimport IpbanBannedConnection from './model/IpbanBannedConnection';\nimport IpbanConnectionAttempt from './model/IpbanConnectionAttempt';\nimport IpbanIPsCollection from './model/IpbanIPsCollection';\nimport IpbanListBansCollection from './model/IpbanListBansCollection';\nimport IpbanUnbanRequest from './model/IpbanUnbanRequest';\nimport IpbanUnbanResponse from './model/IpbanUnbanResponse';\nimport JobsAction from './model/JobsAction';\nimport JobsActionLog from './model/JobsActionLog';\nimport JobsActionMessage from './model/JobsActionMessage';\nimport JobsActionOutput from './model/JobsActionOutput';\nimport JobsActionOutputFilter from './model/JobsActionOutputFilter';\nimport JobsContextMetaFilter from './model/JobsContextMetaFilter';\nimport JobsContextMetaFilterType from './model/JobsContextMetaFilterType';\nimport JobsDataSourceSelector from './model/JobsDataSourceSelector';\nimport JobsDataSourceSelectorType from './model/JobsDataSourceSelectorType';\nimport JobsDeleteJobResponse from './model/JobsDeleteJobResponse';\nimport JobsIdmSelector from './model/JobsIdmSelector';\nimport JobsIdmSelectorType from './model/JobsIdmSelectorType';\nimport JobsJob from './model/JobsJob';\nimport JobsJobParameter from './model/JobsJobParameter';\nimport JobsNodesSelector from './model/JobsNodesSelector';\nimport JobsPutJobRequest from './model/JobsPutJobRequest';\nimport JobsPutJobResponse from './model/JobsPutJobResponse';\nimport JobsSchedule from './model/JobsSchedule';\nimport JobsTask from './model/JobsTask';\nimport JobsTaskStatus from './model/JobsTaskStatus';\nimport JobsTriggerFilter from './model/JobsTriggerFilter';\nimport JobsUsersSelector from './model/JobsUsersSelector';\nimport ListLogRequestLogFormat from './model/ListLogRequestLogFormat';\nimport LogListLogRequest from './model/LogListLogRequest';\nimport LogLogMessage from './model/LogLogMessage';\nimport LogRelType from './model/LogRelType';\nimport LogTimeRangeCursor from './model/LogTimeRangeCursor';\nimport LogTimeRangeRequest from './model/LogTimeRangeRequest';\nimport LogTimeRangeResult from './model/LogTimeRangeResult';\nimport NodeChangeEventEventType from './model/NodeChangeEventEventType';\nimport ObjectDataSource from './model/ObjectDataSource';\nimport ObjectEncryptionMode from './model/ObjectEncryptionMode';\nimport ObjectStorageType from './model/ObjectStorageType';\nimport ProtobufAny from './model/ProtobufAny';\nimport ReportsAuditedWorkspace from './model/ReportsAuditedWorkspace';\nimport ReportsSharedResource from './model/ReportsSharedResource';\nimport ReportsSharedResourceShareType from './model/ReportsSharedResourceShareType';\nimport ReportsSharedResourcesRequest from './model/ReportsSharedResourcesRequest';\nimport ReportsSharedResourcesResponse from './model/ReportsSharedResourcesResponse';\nimport RestDeleteResponse from './model/RestDeleteResponse';\nimport RestError from './model/RestError';\nimport RestLogMessageCollection from './model/RestLogMessageCollection';\nimport RestRevokeResponse from './model/RestRevokeResponse';\nimport RestTimeRangeResultCollection from './model/RestTimeRangeResultCollection';\nimport ServiceOperationType from './model/ServiceOperationType';\nimport ServiceQuery from './model/ServiceQuery';\nimport ServiceResourcePolicy from './model/ServiceResourcePolicy';\nimport ServiceResourcePolicyAction from './model/ServiceResourcePolicyAction';\nimport ServiceResourcePolicyPolicyEffect from './model/ServiceResourcePolicyPolicyEffect';\nimport ServiceResourcePolicyQuery from './model/ServiceResourcePolicyQuery';\nimport TreeChangeLog from './model/TreeChangeLog';\nimport TreeNode from './model/TreeNode';\nimport TreeNodeChangeEvent from './model/TreeNodeChangeEvent';\nimport TreeNodeType from './model/TreeNodeType';\nimport TreeVersioningKeepPeriod from './model/TreeVersioningKeepPeriod';\nimport TreeVersioningNodeDeletedStrategy from './model/TreeVersioningNodeDeletedStrategy';\nimport TreeVersioningPolicy from './model/TreeVersioningPolicy';\nimport TreeWorkspaceRelativePath from './model/TreeWorkspaceRelativePath';\nimport AuditDataServiceApi from './api/AuditDataServiceApi';\nimport EnterpriseConfigServiceApi from './api/EnterpriseConfigServiceApi';\nimport EnterpriseFrontendServiceApi from './api/EnterpriseFrontendServiceApi';\nimport EnterpriseLogServiceApi from './api/EnterpriseLogServiceApi';\nimport EnterprisePolicyServiceApi from './api/EnterprisePolicyServiceApi';\nimport EnterpriseTokenServiceApi from './api/EnterpriseTokenServiceApi';\nimport LicenseServiceApi from './api/LicenseServiceApi';\nimport SchedulerServiceApi from './api/SchedulerServiceApi';\n\n\n/**\n* ERROR_UNKNOWN.
\n* The index module provides access to constructors for all the classes which comprise the public API.\n*

\n* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:\n*

\n* var PydioCellsEnterpriseRestApi = require('index'); // See note below*.\n* var xxxSvc = new PydioCellsEnterpriseRestApi.XxxApi(); // Allocate the API class we're going to use.\n* var yyyModel = new PydioCellsEnterpriseRestApi.Yyy(); // Construct a model instance.\n* yyyModel.someProperty = 'someValue';\n* ...\n* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.\n* ...\n* 
\n* *NOTE: For a top-level AMD script, use require(['index'], function(){...})\n* and put the application logic within the callback function.\n*

\n*

\n* A non-AMD browser application (discouraged) might do something like this:\n*

\n* var xxxSvc = new PydioCellsEnterpriseRestApi.XxxApi(); // Allocate the API class we're going to use.\n* var yyy = new PydioCellsEnterpriseRestApi.Yyy(); // Construct a model instance.\n* yyyModel.someProperty = 'someValue';\n* ...\n* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.\n* ...\n* 
\n*

\n* @module index\n* @version 2.0\n*/\nexport {\n /**\n * The ApiClient constructor.\n * @property {module:ApiClient}\n */\n ApiClient,\n\n /**\n * The ActivityObject model constructor.\n * @property {module:model/ActivityObject}\n */\n ActivityObject,\n\n /**\n * The ActivityObjectType model constructor.\n * @property {module:model/ActivityObjectType}\n */\n ActivityObjectType,\n\n /**\n * The AuthLdapMapping model constructor.\n * @property {module:model/AuthLdapMapping}\n */\n AuthLdapMapping,\n\n /**\n * The AuthLdapMemberOfMapping model constructor.\n * @property {module:model/AuthLdapMemberOfMapping}\n */\n AuthLdapMemberOfMapping,\n\n /**\n * The AuthLdapSearchFilter model constructor.\n * @property {module:model/AuthLdapSearchFilter}\n */\n AuthLdapSearchFilter,\n\n /**\n * The AuthLdapServerConfig model constructor.\n * @property {module:model/AuthLdapServerConfig}\n */\n AuthLdapServerConfig,\n\n /**\n * The AuthOAuth2ClientConfig model constructor.\n * @property {module:model/AuthOAuth2ClientConfig}\n */\n AuthOAuth2ClientConfig,\n\n /**\n * The AuthOAuth2ConnectorBitbucketConfig model constructor.\n * @property {module:model/AuthOAuth2ConnectorBitbucketConfig}\n */\n AuthOAuth2ConnectorBitbucketConfig,\n\n /**\n * The AuthOAuth2ConnectorCollection model constructor.\n * @property {module:model/AuthOAuth2ConnectorCollection}\n */\n AuthOAuth2ConnectorCollection,\n\n /**\n * The AuthOAuth2ConnectorConfig model constructor.\n * @property {module:model/AuthOAuth2ConnectorConfig}\n */\n AuthOAuth2ConnectorConfig,\n\n /**\n * The AuthOAuth2ConnectorGithubConfig model constructor.\n * @property {module:model/AuthOAuth2ConnectorGithubConfig}\n */\n AuthOAuth2ConnectorGithubConfig,\n\n /**\n * The AuthOAuth2ConnectorGithubConfigOrg model constructor.\n * @property {module:model/AuthOAuth2ConnectorGithubConfigOrg}\n */\n AuthOAuth2ConnectorGithubConfigOrg,\n\n /**\n * The AuthOAuth2ConnectorGitlabConfig model constructor.\n * @property {module:model/AuthOAuth2ConnectorGitlabConfig}\n */\n AuthOAuth2ConnectorGitlabConfig,\n\n /**\n * The AuthOAuth2ConnectorLinkedinConfig model constructor.\n * @property {module:model/AuthOAuth2ConnectorLinkedinConfig}\n */\n AuthOAuth2ConnectorLinkedinConfig,\n\n /**\n * The AuthOAuth2ConnectorMicrosoftConfig model constructor.\n * @property {module:model/AuthOAuth2ConnectorMicrosoftConfig}\n */\n AuthOAuth2ConnectorMicrosoftConfig,\n\n /**\n * The AuthOAuth2ConnectorOAuthConfig model constructor.\n * @property {module:model/AuthOAuth2ConnectorOAuthConfig}\n */\n AuthOAuth2ConnectorOAuthConfig,\n\n /**\n * The AuthOAuth2ConnectorOIDCConfig model constructor.\n * @property {module:model/AuthOAuth2ConnectorOIDCConfig}\n */\n AuthOAuth2ConnectorOIDCConfig,\n\n /**\n * The AuthOAuth2ConnectorPydioConfig model constructor.\n * @property {module:model/AuthOAuth2ConnectorPydioConfig}\n */\n AuthOAuth2ConnectorPydioConfig,\n\n /**\n * The AuthOAuth2ConnectorPydioConfigConnector model constructor.\n * @property {module:model/AuthOAuth2ConnectorPydioConfigConnector}\n */\n AuthOAuth2ConnectorPydioConfigConnector,\n\n /**\n * The AuthOAuth2ConnectorSAMLConfig model constructor.\n * @property {module:model/AuthOAuth2ConnectorSAMLConfig}\n */\n AuthOAuth2ConnectorSAMLConfig,\n\n /**\n * The AuthOAuth2MappingRule model constructor.\n * @property {module:model/AuthOAuth2MappingRule}\n */\n AuthOAuth2MappingRule,\n\n /**\n * The AuthPatListResponse model constructor.\n * @property {module:model/AuthPatListResponse}\n */\n AuthPatListResponse,\n\n /**\n * The AuthPatType model constructor.\n * @property {module:model/AuthPatType}\n */\n AuthPatType,\n\n /**\n * The AuthPersonalAccessToken model constructor.\n * @property {module:model/AuthPersonalAccessToken}\n */\n AuthPersonalAccessToken,\n\n /**\n * The CertLicenseInfo model constructor.\n * @property {module:model/CertLicenseInfo}\n */\n CertLicenseInfo,\n\n /**\n * The CertLicenseStatsResponse model constructor.\n * @property {module:model/CertLicenseStatsResponse}\n */\n CertLicenseStatsResponse,\n\n /**\n * The CertPutLicenseInfoRequest model constructor.\n * @property {module:model/CertPutLicenseInfoRequest}\n */\n CertPutLicenseInfoRequest,\n\n /**\n * The CertPutLicenseInfoResponse model constructor.\n * @property {module:model/CertPutLicenseInfoResponse}\n */\n CertPutLicenseInfoResponse,\n\n /**\n * The EntActionTemplate model constructor.\n * @property {module:model/EntActionTemplate}\n */\n EntActionTemplate,\n\n /**\n * The EntConnector model constructor.\n * @property {module:model/EntConnector}\n */\n EntConnector,\n\n /**\n * The EntDeleteActionTemplateResponse model constructor.\n * @property {module:model/EntDeleteActionTemplateResponse}\n */\n EntDeleteActionTemplateResponse,\n\n /**\n * The EntDeleteJobTemplateResponse model constructor.\n * @property {module:model/EntDeleteJobTemplateResponse}\n */\n EntDeleteJobTemplateResponse,\n\n /**\n * The EntDeleteSelectorTemplateResponse model constructor.\n * @property {module:model/EntDeleteSelectorTemplateResponse}\n */\n EntDeleteSelectorTemplateResponse,\n\n /**\n * The EntDeleteVersioningPolicyResponse model constructor.\n * @property {module:model/EntDeleteVersioningPolicyResponse}\n */\n EntDeleteVersioningPolicyResponse,\n\n /**\n * The EntDeleteVirtualNodeResponse model constructor.\n * @property {module:model/EntDeleteVirtualNodeResponse}\n */\n EntDeleteVirtualNodeResponse,\n\n /**\n * The EntDocTemplatePiece model constructor.\n * @property {module:model/EntDocTemplatePiece}\n */\n EntDocTemplatePiece,\n\n /**\n * The EntDocTemplatesResponse model constructor.\n * @property {module:model/EntDocTemplatesResponse}\n */\n EntDocTemplatesResponse,\n\n /**\n * The EntExternalDirectoryCollection model constructor.\n * @property {module:model/EntExternalDirectoryCollection}\n */\n EntExternalDirectoryCollection,\n\n /**\n * The EntExternalDirectoryConfig model constructor.\n * @property {module:model/EntExternalDirectoryConfig}\n */\n EntExternalDirectoryConfig,\n\n /**\n * The EntExternalDirectoryResponse model constructor.\n * @property {module:model/EntExternalDirectoryResponse}\n */\n EntExternalDirectoryResponse,\n\n /**\n * The EntFrontLoginConnectorsResponse model constructor.\n * @property {module:model/EntFrontLoginConnectorsResponse}\n */\n EntFrontLoginConnectorsResponse,\n\n /**\n * The EntListAccessTokensRequest model constructor.\n * @property {module:model/EntListAccessTokensRequest}\n */\n EntListAccessTokensRequest,\n\n /**\n * The EntListActionTemplatesRequest model constructor.\n * @property {module:model/EntListActionTemplatesRequest}\n */\n EntListActionTemplatesRequest,\n\n /**\n * The EntListActionTemplatesResponse model constructor.\n * @property {module:model/EntListActionTemplatesResponse}\n */\n EntListActionTemplatesResponse,\n\n /**\n * The EntListJobTemplatesRequest model constructor.\n * @property {module:model/EntListJobTemplatesRequest}\n */\n EntListJobTemplatesRequest,\n\n /**\n * The EntListJobTemplatesResponse model constructor.\n * @property {module:model/EntListJobTemplatesResponse}\n */\n EntListJobTemplatesResponse,\n\n /**\n * The EntListSelectorTemplatesRequest model constructor.\n * @property {module:model/EntListSelectorTemplatesRequest}\n */\n EntListSelectorTemplatesRequest,\n\n /**\n * The EntListSelectorTemplatesResponse model constructor.\n * @property {module:model/EntListSelectorTemplatesResponse}\n */\n EntListSelectorTemplatesResponse,\n\n /**\n * The EntListSitesResponse model constructor.\n * @property {module:model/EntListSitesResponse}\n */\n EntListSitesResponse,\n\n /**\n * The EntOAuth2ClientCollection model constructor.\n * @property {module:model/EntOAuth2ClientCollection}\n */\n EntOAuth2ClientCollection,\n\n /**\n * The EntOAuth2ClientResponse model constructor.\n * @property {module:model/EntOAuth2ClientResponse}\n */\n EntOAuth2ClientResponse,\n\n /**\n * The EntOAuth2ConnectorCollection model constructor.\n * @property {module:model/EntOAuth2ConnectorCollection}\n */\n EntOAuth2ConnectorCollection,\n\n /**\n * The EntOAuth2ConnectorResponse model constructor.\n * @property {module:model/EntOAuth2ConnectorResponse}\n */\n EntOAuth2ConnectorResponse,\n\n /**\n * The EntPersonalAccessTokenRequest model constructor.\n * @property {module:model/EntPersonalAccessTokenRequest}\n */\n EntPersonalAccessTokenRequest,\n\n /**\n * The EntPersonalAccessTokenResponse model constructor.\n * @property {module:model/EntPersonalAccessTokenResponse}\n */\n EntPersonalAccessTokenResponse,\n\n /**\n * The EntPlaygroundRequest model constructor.\n * @property {module:model/EntPlaygroundRequest}\n */\n EntPlaygroundRequest,\n\n /**\n * The EntPlaygroundResponse model constructor.\n * @property {module:model/EntPlaygroundResponse}\n */\n EntPlaygroundResponse,\n\n /**\n * The EntPutActionTemplateRequest model constructor.\n * @property {module:model/EntPutActionTemplateRequest}\n */\n EntPutActionTemplateRequest,\n\n /**\n * The EntPutActionTemplateResponse model constructor.\n * @property {module:model/EntPutActionTemplateResponse}\n */\n EntPutActionTemplateResponse,\n\n /**\n * The EntPutJobTemplateRequest model constructor.\n * @property {module:model/EntPutJobTemplateRequest}\n */\n EntPutJobTemplateRequest,\n\n /**\n * The EntPutJobTemplateResponse model constructor.\n * @property {module:model/EntPutJobTemplateResponse}\n */\n EntPutJobTemplateResponse,\n\n /**\n * The EntPutSelectorTemplateRequest model constructor.\n * @property {module:model/EntPutSelectorTemplateRequest}\n */\n EntPutSelectorTemplateRequest,\n\n /**\n * The EntPutSelectorTemplateResponse model constructor.\n * @property {module:model/EntPutSelectorTemplateResponse}\n */\n EntPutSelectorTemplateResponse,\n\n /**\n * The EntSelectorTemplate model constructor.\n * @property {module:model/EntSelectorTemplate}\n */\n EntSelectorTemplate,\n\n /**\n * The IdmACL model constructor.\n * @property {module:model/IdmACL}\n */\n IdmACL,\n\n /**\n * The IdmACLAction model constructor.\n * @property {module:model/IdmACLAction}\n */\n IdmACLAction,\n\n /**\n * The IdmPolicy model constructor.\n * @property {module:model/IdmPolicy}\n */\n IdmPolicy,\n\n /**\n * The IdmPolicyCondition model constructor.\n * @property {module:model/IdmPolicyCondition}\n */\n IdmPolicyCondition,\n\n /**\n * The IdmPolicyEffect model constructor.\n * @property {module:model/IdmPolicyEffect}\n */\n IdmPolicyEffect,\n\n /**\n * The IdmPolicyGroup model constructor.\n * @property {module:model/IdmPolicyGroup}\n */\n IdmPolicyGroup,\n\n /**\n * The IdmPolicyResourceGroup model constructor.\n * @property {module:model/IdmPolicyResourceGroup}\n */\n IdmPolicyResourceGroup,\n\n /**\n * The IdmRole model constructor.\n * @property {module:model/IdmRole}\n */\n IdmRole,\n\n /**\n * The IdmUser model constructor.\n * @property {module:model/IdmUser}\n */\n IdmUser,\n\n /**\n * The IdmWorkspace model constructor.\n * @property {module:model/IdmWorkspace}\n */\n IdmWorkspace,\n\n /**\n * The IdmWorkspaceScope model constructor.\n * @property {module:model/IdmWorkspaceScope}\n */\n IdmWorkspaceScope,\n\n /**\n * The InstallProxyConfig model constructor.\n * @property {module:model/InstallProxyConfig}\n */\n InstallProxyConfig,\n\n /**\n * The InstallTLSCertificate model constructor.\n * @property {module:model/InstallTLSCertificate}\n */\n InstallTLSCertificate,\n\n /**\n * The InstallTLSLetsEncrypt model constructor.\n * @property {module:model/InstallTLSLetsEncrypt}\n */\n InstallTLSLetsEncrypt,\n\n /**\n * The InstallTLSSelfSigned model constructor.\n * @property {module:model/InstallTLSSelfSigned}\n */\n InstallTLSSelfSigned,\n\n /**\n * The IpbanBannedConnection model constructor.\n * @property {module:model/IpbanBannedConnection}\n */\n IpbanBannedConnection,\n\n /**\n * The IpbanConnectionAttempt model constructor.\n * @property {module:model/IpbanConnectionAttempt}\n */\n IpbanConnectionAttempt,\n\n /**\n * The IpbanIPsCollection model constructor.\n * @property {module:model/IpbanIPsCollection}\n */\n IpbanIPsCollection,\n\n /**\n * The IpbanListBansCollection model constructor.\n * @property {module:model/IpbanListBansCollection}\n */\n IpbanListBansCollection,\n\n /**\n * The IpbanUnbanRequest model constructor.\n * @property {module:model/IpbanUnbanRequest}\n */\n IpbanUnbanRequest,\n\n /**\n * The IpbanUnbanResponse model constructor.\n * @property {module:model/IpbanUnbanResponse}\n */\n IpbanUnbanResponse,\n\n /**\n * The JobsAction model constructor.\n * @property {module:model/JobsAction}\n */\n JobsAction,\n\n /**\n * The JobsActionLog model constructor.\n * @property {module:model/JobsActionLog}\n */\n JobsActionLog,\n\n /**\n * The JobsActionMessage model constructor.\n * @property {module:model/JobsActionMessage}\n */\n JobsActionMessage,\n\n /**\n * The JobsActionOutput model constructor.\n * @property {module:model/JobsActionOutput}\n */\n JobsActionOutput,\n\n /**\n * The JobsActionOutputFilter model constructor.\n * @property {module:model/JobsActionOutputFilter}\n */\n JobsActionOutputFilter,\n\n /**\n * The JobsContextMetaFilter model constructor.\n * @property {module:model/JobsContextMetaFilter}\n */\n JobsContextMetaFilter,\n\n /**\n * The JobsContextMetaFilterType model constructor.\n * @property {module:model/JobsContextMetaFilterType}\n */\n JobsContextMetaFilterType,\n\n /**\n * The JobsDataSourceSelector model constructor.\n * @property {module:model/JobsDataSourceSelector}\n */\n JobsDataSourceSelector,\n\n /**\n * The JobsDataSourceSelectorType model constructor.\n * @property {module:model/JobsDataSourceSelectorType}\n */\n JobsDataSourceSelectorType,\n\n /**\n * The JobsDeleteJobResponse model constructor.\n * @property {module:model/JobsDeleteJobResponse}\n */\n JobsDeleteJobResponse,\n\n /**\n * The JobsIdmSelector model constructor.\n * @property {module:model/JobsIdmSelector}\n */\n JobsIdmSelector,\n\n /**\n * The JobsIdmSelectorType model constructor.\n * @property {module:model/JobsIdmSelectorType}\n */\n JobsIdmSelectorType,\n\n /**\n * The JobsJob model constructor.\n * @property {module:model/JobsJob}\n */\n JobsJob,\n\n /**\n * The JobsJobParameter model constructor.\n * @property {module:model/JobsJobParameter}\n */\n JobsJobParameter,\n\n /**\n * The JobsNodesSelector model constructor.\n * @property {module:model/JobsNodesSelector}\n */\n JobsNodesSelector,\n\n /**\n * The JobsPutJobRequest model constructor.\n * @property {module:model/JobsPutJobRequest}\n */\n JobsPutJobRequest,\n\n /**\n * The JobsPutJobResponse model constructor.\n * @property {module:model/JobsPutJobResponse}\n */\n JobsPutJobResponse,\n\n /**\n * The JobsSchedule model constructor.\n * @property {module:model/JobsSchedule}\n */\n JobsSchedule,\n\n /**\n * The JobsTask model constructor.\n * @property {module:model/JobsTask}\n */\n JobsTask,\n\n /**\n * The JobsTaskStatus model constructor.\n * @property {module:model/JobsTaskStatus}\n */\n JobsTaskStatus,\n\n /**\n * The JobsTriggerFilter model constructor.\n * @property {module:model/JobsTriggerFilter}\n */\n JobsTriggerFilter,\n\n /**\n * The JobsUsersSelector model constructor.\n * @property {module:model/JobsUsersSelector}\n */\n JobsUsersSelector,\n\n /**\n * The ListLogRequestLogFormat model constructor.\n * @property {module:model/ListLogRequestLogFormat}\n */\n ListLogRequestLogFormat,\n\n /**\n * The LogListLogRequest model constructor.\n * @property {module:model/LogListLogRequest}\n */\n LogListLogRequest,\n\n /**\n * The LogLogMessage model constructor.\n * @property {module:model/LogLogMessage}\n */\n LogLogMessage,\n\n /**\n * The LogRelType model constructor.\n * @property {module:model/LogRelType}\n */\n LogRelType,\n\n /**\n * The LogTimeRangeCursor model constructor.\n * @property {module:model/LogTimeRangeCursor}\n */\n LogTimeRangeCursor,\n\n /**\n * The LogTimeRangeRequest model constructor.\n * @property {module:model/LogTimeRangeRequest}\n */\n LogTimeRangeRequest,\n\n /**\n * The LogTimeRangeResult model constructor.\n * @property {module:model/LogTimeRangeResult}\n */\n LogTimeRangeResult,\n\n /**\n * The NodeChangeEventEventType model constructor.\n * @property {module:model/NodeChangeEventEventType}\n */\n NodeChangeEventEventType,\n\n /**\n * The ObjectDataSource model constructor.\n * @property {module:model/ObjectDataSource}\n */\n ObjectDataSource,\n\n /**\n * The ObjectEncryptionMode model constructor.\n * @property {module:model/ObjectEncryptionMode}\n */\n ObjectEncryptionMode,\n\n /**\n * The ObjectStorageType model constructor.\n * @property {module:model/ObjectStorageType}\n */\n ObjectStorageType,\n\n /**\n * The ProtobufAny model constructor.\n * @property {module:model/ProtobufAny}\n */\n ProtobufAny,\n\n /**\n * The ReportsAuditedWorkspace model constructor.\n * @property {module:model/ReportsAuditedWorkspace}\n */\n ReportsAuditedWorkspace,\n\n /**\n * The ReportsSharedResource model constructor.\n * @property {module:model/ReportsSharedResource}\n */\n ReportsSharedResource,\n\n /**\n * The ReportsSharedResourceShareType model constructor.\n * @property {module:model/ReportsSharedResourceShareType}\n */\n ReportsSharedResourceShareType,\n\n /**\n * The ReportsSharedResourcesRequest model constructor.\n * @property {module:model/ReportsSharedResourcesRequest}\n */\n ReportsSharedResourcesRequest,\n\n /**\n * The ReportsSharedResourcesResponse model constructor.\n * @property {module:model/ReportsSharedResourcesResponse}\n */\n ReportsSharedResourcesResponse,\n\n /**\n * The RestDeleteResponse model constructor.\n * @property {module:model/RestDeleteResponse}\n */\n RestDeleteResponse,\n\n /**\n * The RestError model constructor.\n * @property {module:model/RestError}\n */\n RestError,\n\n /**\n * The RestLogMessageCollection model constructor.\n * @property {module:model/RestLogMessageCollection}\n */\n RestLogMessageCollection,\n\n /**\n * The RestRevokeResponse model constructor.\n * @property {module:model/RestRevokeResponse}\n */\n RestRevokeResponse,\n\n /**\n * The RestTimeRangeResultCollection model constructor.\n * @property {module:model/RestTimeRangeResultCollection}\n */\n RestTimeRangeResultCollection,\n\n /**\n * The ServiceOperationType model constructor.\n * @property {module:model/ServiceOperationType}\n */\n ServiceOperationType,\n\n /**\n * The ServiceQuery model constructor.\n * @property {module:model/ServiceQuery}\n */\n ServiceQuery,\n\n /**\n * The ServiceResourcePolicy model constructor.\n * @property {module:model/ServiceResourcePolicy}\n */\n ServiceResourcePolicy,\n\n /**\n * The ServiceResourcePolicyAction model constructor.\n * @property {module:model/ServiceResourcePolicyAction}\n */\n ServiceResourcePolicyAction,\n\n /**\n * The ServiceResourcePolicyPolicyEffect model constructor.\n * @property {module:model/ServiceResourcePolicyPolicyEffect}\n */\n ServiceResourcePolicyPolicyEffect,\n\n /**\n * The ServiceResourcePolicyQuery model constructor.\n * @property {module:model/ServiceResourcePolicyQuery}\n */\n ServiceResourcePolicyQuery,\n\n /**\n * The TreeChangeLog model constructor.\n * @property {module:model/TreeChangeLog}\n */\n TreeChangeLog,\n\n /**\n * The TreeNode model constructor.\n * @property {module:model/TreeNode}\n */\n TreeNode,\n\n /**\n * The TreeNodeChangeEvent model constructor.\n * @property {module:model/TreeNodeChangeEvent}\n */\n TreeNodeChangeEvent,\n\n /**\n * The TreeNodeType model constructor.\n * @property {module:model/TreeNodeType}\n */\n TreeNodeType,\n\n /**\n * The TreeVersioningKeepPeriod model constructor.\n * @property {module:model/TreeVersioningKeepPeriod}\n */\n TreeVersioningKeepPeriod,\n\n /**\n * The TreeVersioningNodeDeletedStrategy model constructor.\n * @property {module:model/TreeVersioningNodeDeletedStrategy}\n */\n TreeVersioningNodeDeletedStrategy,\n\n /**\n * The TreeVersioningPolicy model constructor.\n * @property {module:model/TreeVersioningPolicy}\n */\n TreeVersioningPolicy,\n\n /**\n * The TreeWorkspaceRelativePath model constructor.\n * @property {module:model/TreeWorkspaceRelativePath}\n */\n TreeWorkspaceRelativePath,\n\n /**\n * The AuditDataServiceApi service constructor.\n * @property {module:api/AuditDataServiceApi}\n */\n AuditDataServiceApi,\n\n /**\n * The EnterpriseConfigServiceApi service constructor.\n * @property {module:api/EnterpriseConfigServiceApi}\n */\n EnterpriseConfigServiceApi,\n\n /**\n * The EnterpriseFrontendServiceApi service constructor.\n * @property {module:api/EnterpriseFrontendServiceApi}\n */\n EnterpriseFrontendServiceApi,\n\n /**\n * The EnterpriseLogServiceApi service constructor.\n * @property {module:api/EnterpriseLogServiceApi}\n */\n EnterpriseLogServiceApi,\n\n /**\n * The EnterprisePolicyServiceApi service constructor.\n * @property {module:api/EnterprisePolicyServiceApi}\n */\n EnterprisePolicyServiceApi,\n\n /**\n * The EnterpriseTokenServiceApi service constructor.\n * @property {module:api/EnterpriseTokenServiceApi}\n */\n EnterpriseTokenServiceApi,\n\n /**\n * The LicenseServiceApi service constructor.\n * @property {module:api/LicenseServiceApi}\n */\n LicenseServiceApi,\n\n /**\n * The SchedulerServiceApi service constructor.\n * @property {module:api/SchedulerServiceApi}\n */\n SchedulerServiceApi\n};\n"],"file":"index.js"} \ No newline at end of file diff --git a/lib/model/ActivityObject.js b/lib/model/ActivityObject.js new file mode 100644 index 0000000..bcc54df --- /dev/null +++ b/lib/model/ActivityObject.js @@ -0,0 +1,436 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ActivityObjectType = _interopRequireDefault(require("./ActivityObjectType")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The ActivityObject model module. +* @module model/ActivityObject +* @version 2.0 +*/ +var ActivityObject = /*#__PURE__*/function () { + /** + * Constructs a new ActivityObject. + * @alias module:model/ActivityObject + * @class + */ + function ActivityObject() { + _classCallCheck(this, ActivityObject); + + _defineProperty(this, "jsonLdContext", undefined); + + _defineProperty(this, "type", undefined); + + _defineProperty(this, "id", undefined); + + _defineProperty(this, "name", undefined); + + _defineProperty(this, "summary", undefined); + + _defineProperty(this, "markdown", undefined); + + _defineProperty(this, "context", undefined); + + _defineProperty(this, "attachment", undefined); + + _defineProperty(this, "attributedTo", undefined); + + _defineProperty(this, "audience", undefined); + + _defineProperty(this, "content", undefined); + + _defineProperty(this, "startTime", undefined); + + _defineProperty(this, "endTime", undefined); + + _defineProperty(this, "published", undefined); + + _defineProperty(this, "updated", undefined); + + _defineProperty(this, "duration", undefined); + + _defineProperty(this, "url", undefined); + + _defineProperty(this, "mediaType", undefined); + + _defineProperty(this, "icon", undefined); + + _defineProperty(this, "image", undefined); + + _defineProperty(this, "preview", undefined); + + _defineProperty(this, "location", undefined); + + _defineProperty(this, "inReplyTo", undefined); + + _defineProperty(this, "replies", undefined); + + _defineProperty(this, "tag", undefined); + + _defineProperty(this, "generator", undefined); + + _defineProperty(this, "to", undefined); + + _defineProperty(this, "bto", undefined); + + _defineProperty(this, "cc", undefined); + + _defineProperty(this, "bcc", undefined); + + _defineProperty(this, "actor", undefined); + + _defineProperty(this, "object", undefined); + + _defineProperty(this, "target", undefined); + + _defineProperty(this, "result", undefined); + + _defineProperty(this, "origin", undefined); + + _defineProperty(this, "instrument", undefined); + + _defineProperty(this, "href", undefined); + + _defineProperty(this, "rel", undefined); + + _defineProperty(this, "hreflang", undefined); + + _defineProperty(this, "height", undefined); + + _defineProperty(this, "width", undefined); + + _defineProperty(this, "oneOf", undefined); + + _defineProperty(this, "anyOf", undefined); + + _defineProperty(this, "closed", undefined); + + _defineProperty(this, "subject", undefined); + + _defineProperty(this, "relationship", undefined); + + _defineProperty(this, "formerType", undefined); + + _defineProperty(this, "deleted", undefined); + + _defineProperty(this, "accuracy", undefined); + + _defineProperty(this, "altitude", undefined); + + _defineProperty(this, "latitude", undefined); + + _defineProperty(this, "longitude", undefined); + + _defineProperty(this, "radius", undefined); + + _defineProperty(this, "units", undefined); + + _defineProperty(this, "items", undefined); + + _defineProperty(this, "totalItems", undefined); + + _defineProperty(this, "current", undefined); + + _defineProperty(this, "first", undefined); + + _defineProperty(this, "last", undefined); + + _defineProperty(this, "partOf", undefined); + + _defineProperty(this, "next", undefined); + + _defineProperty(this, "prev", undefined); + } + /** + * Constructs a ActivityObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ActivityObject} obj Optional instance to populate. + * @return {module:model/ActivityObject} The populated ActivityObject instance. + */ + + + _createClass(ActivityObject, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ActivityObject(); + + if (data.hasOwnProperty('jsonLdContext')) { + obj['jsonLdContext'] = _ApiClient["default"].convertToType(data['jsonLdContext'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ActivityObjectType["default"].constructFromObject(data['type']); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('summary')) { + obj['summary'] = _ApiClient["default"].convertToType(data['summary'], 'String'); + } + + if (data.hasOwnProperty('markdown')) { + obj['markdown'] = _ApiClient["default"].convertToType(data['markdown'], 'String'); + } + + if (data.hasOwnProperty('context')) { + obj['context'] = ActivityObject.constructFromObject(data['context']); + } + + if (data.hasOwnProperty('attachment')) { + obj['attachment'] = ActivityObject.constructFromObject(data['attachment']); + } + + if (data.hasOwnProperty('attributedTo')) { + obj['attributedTo'] = ActivityObject.constructFromObject(data['attributedTo']); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = ActivityObject.constructFromObject(data['audience']); + } + + if (data.hasOwnProperty('content')) { + obj['content'] = ActivityObject.constructFromObject(data['content']); + } + + if (data.hasOwnProperty('startTime')) { + obj['startTime'] = _ApiClient["default"].convertToType(data['startTime'], 'Date'); + } + + if (data.hasOwnProperty('endTime')) { + obj['endTime'] = _ApiClient["default"].convertToType(data['endTime'], 'Date'); + } + + if (data.hasOwnProperty('published')) { + obj['published'] = _ApiClient["default"].convertToType(data['published'], 'Date'); + } + + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Date'); + } + + if (data.hasOwnProperty('duration')) { + obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Date'); + } + + if (data.hasOwnProperty('url')) { + obj['url'] = ActivityObject.constructFromObject(data['url']); + } + + if (data.hasOwnProperty('mediaType')) { + obj['mediaType'] = _ApiClient["default"].convertToType(data['mediaType'], 'String'); + } + + if (data.hasOwnProperty('icon')) { + obj['icon'] = ActivityObject.constructFromObject(data['icon']); + } + + if (data.hasOwnProperty('image')) { + obj['image'] = ActivityObject.constructFromObject(data['image']); + } + + if (data.hasOwnProperty('preview')) { + obj['preview'] = ActivityObject.constructFromObject(data['preview']); + } + + if (data.hasOwnProperty('location')) { + obj['location'] = ActivityObject.constructFromObject(data['location']); + } + + if (data.hasOwnProperty('inReplyTo')) { + obj['inReplyTo'] = ActivityObject.constructFromObject(data['inReplyTo']); + } + + if (data.hasOwnProperty('replies')) { + obj['replies'] = ActivityObject.constructFromObject(data['replies']); + } + + if (data.hasOwnProperty('tag')) { + obj['tag'] = ActivityObject.constructFromObject(data['tag']); + } + + if (data.hasOwnProperty('generator')) { + obj['generator'] = ActivityObject.constructFromObject(data['generator']); + } + + if (data.hasOwnProperty('to')) { + obj['to'] = ActivityObject.constructFromObject(data['to']); + } + + if (data.hasOwnProperty('bto')) { + obj['bto'] = ActivityObject.constructFromObject(data['bto']); + } + + if (data.hasOwnProperty('cc')) { + obj['cc'] = ActivityObject.constructFromObject(data['cc']); + } + + if (data.hasOwnProperty('bcc')) { + obj['bcc'] = ActivityObject.constructFromObject(data['bcc']); + } + + if (data.hasOwnProperty('actor')) { + obj['actor'] = ActivityObject.constructFromObject(data['actor']); + } + + if (data.hasOwnProperty('object')) { + obj['object'] = ActivityObject.constructFromObject(data['object']); + } + + if (data.hasOwnProperty('target')) { + obj['target'] = ActivityObject.constructFromObject(data['target']); + } + + if (data.hasOwnProperty('result')) { + obj['result'] = ActivityObject.constructFromObject(data['result']); + } + + if (data.hasOwnProperty('origin')) { + obj['origin'] = ActivityObject.constructFromObject(data['origin']); + } + + if (data.hasOwnProperty('instrument')) { + obj['instrument'] = ActivityObject.constructFromObject(data['instrument']); + } + + if (data.hasOwnProperty('href')) { + obj['href'] = _ApiClient["default"].convertToType(data['href'], 'String'); + } + + if (data.hasOwnProperty('rel')) { + obj['rel'] = _ApiClient["default"].convertToType(data['rel'], 'String'); + } + + if (data.hasOwnProperty('hreflang')) { + obj['hreflang'] = _ApiClient["default"].convertToType(data['hreflang'], 'String'); + } + + if (data.hasOwnProperty('height')) { + obj['height'] = _ApiClient["default"].convertToType(data['height'], 'Number'); + } + + if (data.hasOwnProperty('width')) { + obj['width'] = _ApiClient["default"].convertToType(data['width'], 'Number'); + } + + if (data.hasOwnProperty('oneOf')) { + obj['oneOf'] = ActivityObject.constructFromObject(data['oneOf']); + } + + if (data.hasOwnProperty('anyOf')) { + obj['anyOf'] = ActivityObject.constructFromObject(data['anyOf']); + } + + if (data.hasOwnProperty('closed')) { + obj['closed'] = _ApiClient["default"].convertToType(data['closed'], 'Date'); + } + + if (data.hasOwnProperty('subject')) { + obj['subject'] = ActivityObject.constructFromObject(data['subject']); + } + + if (data.hasOwnProperty('relationship')) { + obj['relationship'] = ActivityObject.constructFromObject(data['relationship']); + } + + if (data.hasOwnProperty('formerType')) { + obj['formerType'] = _ActivityObjectType["default"].constructFromObject(data['formerType']); + } + + if (data.hasOwnProperty('deleted')) { + obj['deleted'] = _ApiClient["default"].convertToType(data['deleted'], 'Date'); + } + + if (data.hasOwnProperty('accuracy')) { + obj['accuracy'] = _ApiClient["default"].convertToType(data['accuracy'], 'Number'); + } + + if (data.hasOwnProperty('altitude')) { + obj['altitude'] = _ApiClient["default"].convertToType(data['altitude'], 'Number'); + } + + if (data.hasOwnProperty('latitude')) { + obj['latitude'] = _ApiClient["default"].convertToType(data['latitude'], 'Number'); + } + + if (data.hasOwnProperty('longitude')) { + obj['longitude'] = _ApiClient["default"].convertToType(data['longitude'], 'Number'); + } + + if (data.hasOwnProperty('radius')) { + obj['radius'] = _ApiClient["default"].convertToType(data['radius'], 'Number'); + } + + if (data.hasOwnProperty('units')) { + obj['units'] = _ApiClient["default"].convertToType(data['units'], 'String'); + } + + if (data.hasOwnProperty('items')) { + obj['items'] = _ApiClient["default"].convertToType(data['items'], [ActivityObject]); + } + + if (data.hasOwnProperty('totalItems')) { + obj['totalItems'] = _ApiClient["default"].convertToType(data['totalItems'], 'Number'); + } + + if (data.hasOwnProperty('current')) { + obj['current'] = ActivityObject.constructFromObject(data['current']); + } + + if (data.hasOwnProperty('first')) { + obj['first'] = ActivityObject.constructFromObject(data['first']); + } + + if (data.hasOwnProperty('last')) { + obj['last'] = ActivityObject.constructFromObject(data['last']); + } + + if (data.hasOwnProperty('partOf')) { + obj['partOf'] = ActivityObject.constructFromObject(data['partOf']); + } + + if (data.hasOwnProperty('next')) { + obj['next'] = ActivityObject.constructFromObject(data['next']); + } + + if (data.hasOwnProperty('prev')) { + obj['prev'] = ActivityObject.constructFromObject(data['prev']); + } + } + + return obj; + } + /** + * @member {String} jsonLdContext + */ + + }]); + + return ActivityObject; +}(); + +exports["default"] = ActivityObject; +//# sourceMappingURL=ActivityObject.js.map diff --git a/lib/model/ActivityObject.js.map b/lib/model/ActivityObject.js.map new file mode 100644 index 0000000..b82ef3c --- /dev/null +++ b/lib/model/ActivityObject.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ActivityObject.js"],"names":["ActivityObject","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","ActivityObjectType","constructFromObject"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport ActivityObjectType from './ActivityObjectType';\n\n\n\n\n\n/**\n* The ActivityObject model module.\n* @module model/ActivityObject\n* @version 2.0\n*/\nexport default class ActivityObject {\n /**\n * Constructs a new ActivityObject.\n * @alias module:model/ActivityObject\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a ActivityObject from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ActivityObject} obj Optional instance to populate.\n * @return {module:model/ActivityObject} The populated ActivityObject instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new ActivityObject();\n\n \n \n \n\n if (data.hasOwnProperty('jsonLdContext')) {\n obj['jsonLdContext'] = ApiClient.convertToType(data['jsonLdContext'], 'String');\n }\n if (data.hasOwnProperty('type')) {\n obj['type'] = ActivityObjectType.constructFromObject(data['type']);\n }\n if (data.hasOwnProperty('id')) {\n obj['id'] = ApiClient.convertToType(data['id'], 'String');\n }\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n if (data.hasOwnProperty('summary')) {\n obj['summary'] = ApiClient.convertToType(data['summary'], 'String');\n }\n if (data.hasOwnProperty('markdown')) {\n obj['markdown'] = ApiClient.convertToType(data['markdown'], 'String');\n }\n if (data.hasOwnProperty('context')) {\n obj['context'] = ActivityObject.constructFromObject(data['context']);\n }\n if (data.hasOwnProperty('attachment')) {\n obj['attachment'] = ActivityObject.constructFromObject(data['attachment']);\n }\n if (data.hasOwnProperty('attributedTo')) {\n obj['attributedTo'] = ActivityObject.constructFromObject(data['attributedTo']);\n }\n if (data.hasOwnProperty('audience')) {\n obj['audience'] = ActivityObject.constructFromObject(data['audience']);\n }\n if (data.hasOwnProperty('content')) {\n obj['content'] = ActivityObject.constructFromObject(data['content']);\n }\n if (data.hasOwnProperty('startTime')) {\n obj['startTime'] = ApiClient.convertToType(data['startTime'], 'Date');\n }\n if (data.hasOwnProperty('endTime')) {\n obj['endTime'] = ApiClient.convertToType(data['endTime'], 'Date');\n }\n if (data.hasOwnProperty('published')) {\n obj['published'] = ApiClient.convertToType(data['published'], 'Date');\n }\n if (data.hasOwnProperty('updated')) {\n obj['updated'] = ApiClient.convertToType(data['updated'], 'Date');\n }\n if (data.hasOwnProperty('duration')) {\n obj['duration'] = ApiClient.convertToType(data['duration'], 'Date');\n }\n if (data.hasOwnProperty('url')) {\n obj['url'] = ActivityObject.constructFromObject(data['url']);\n }\n if (data.hasOwnProperty('mediaType')) {\n obj['mediaType'] = ApiClient.convertToType(data['mediaType'], 'String');\n }\n if (data.hasOwnProperty('icon')) {\n obj['icon'] = ActivityObject.constructFromObject(data['icon']);\n }\n if (data.hasOwnProperty('image')) {\n obj['image'] = ActivityObject.constructFromObject(data['image']);\n }\n if (data.hasOwnProperty('preview')) {\n obj['preview'] = ActivityObject.constructFromObject(data['preview']);\n }\n if (data.hasOwnProperty('location')) {\n obj['location'] = ActivityObject.constructFromObject(data['location']);\n }\n if (data.hasOwnProperty('inReplyTo')) {\n obj['inReplyTo'] = ActivityObject.constructFromObject(data['inReplyTo']);\n }\n if (data.hasOwnProperty('replies')) {\n obj['replies'] = ActivityObject.constructFromObject(data['replies']);\n }\n if (data.hasOwnProperty('tag')) {\n obj['tag'] = ActivityObject.constructFromObject(data['tag']);\n }\n if (data.hasOwnProperty('generator')) {\n obj['generator'] = ActivityObject.constructFromObject(data['generator']);\n }\n if (data.hasOwnProperty('to')) {\n obj['to'] = ActivityObject.constructFromObject(data['to']);\n }\n if (data.hasOwnProperty('bto')) {\n obj['bto'] = ActivityObject.constructFromObject(data['bto']);\n }\n if (data.hasOwnProperty('cc')) {\n obj['cc'] = ActivityObject.constructFromObject(data['cc']);\n }\n if (data.hasOwnProperty('bcc')) {\n obj['bcc'] = ActivityObject.constructFromObject(data['bcc']);\n }\n if (data.hasOwnProperty('actor')) {\n obj['actor'] = ActivityObject.constructFromObject(data['actor']);\n }\n if (data.hasOwnProperty('object')) {\n obj['object'] = ActivityObject.constructFromObject(data['object']);\n }\n if (data.hasOwnProperty('target')) {\n obj['target'] = ActivityObject.constructFromObject(data['target']);\n }\n if (data.hasOwnProperty('result')) {\n obj['result'] = ActivityObject.constructFromObject(data['result']);\n }\n if (data.hasOwnProperty('origin')) {\n obj['origin'] = ActivityObject.constructFromObject(data['origin']);\n }\n if (data.hasOwnProperty('instrument')) {\n obj['instrument'] = ActivityObject.constructFromObject(data['instrument']);\n }\n if (data.hasOwnProperty('href')) {\n obj['href'] = ApiClient.convertToType(data['href'], 'String');\n }\n if (data.hasOwnProperty('rel')) {\n obj['rel'] = ApiClient.convertToType(data['rel'], 'String');\n }\n if (data.hasOwnProperty('hreflang')) {\n obj['hreflang'] = ApiClient.convertToType(data['hreflang'], 'String');\n }\n if (data.hasOwnProperty('height')) {\n obj['height'] = ApiClient.convertToType(data['height'], 'Number');\n }\n if (data.hasOwnProperty('width')) {\n obj['width'] = ApiClient.convertToType(data['width'], 'Number');\n }\n if (data.hasOwnProperty('oneOf')) {\n obj['oneOf'] = ActivityObject.constructFromObject(data['oneOf']);\n }\n if (data.hasOwnProperty('anyOf')) {\n obj['anyOf'] = ActivityObject.constructFromObject(data['anyOf']);\n }\n if (data.hasOwnProperty('closed')) {\n obj['closed'] = ApiClient.convertToType(data['closed'], 'Date');\n }\n if (data.hasOwnProperty('subject')) {\n obj['subject'] = ActivityObject.constructFromObject(data['subject']);\n }\n if (data.hasOwnProperty('relationship')) {\n obj['relationship'] = ActivityObject.constructFromObject(data['relationship']);\n }\n if (data.hasOwnProperty('formerType')) {\n obj['formerType'] = ActivityObjectType.constructFromObject(data['formerType']);\n }\n if (data.hasOwnProperty('deleted')) {\n obj['deleted'] = ApiClient.convertToType(data['deleted'], 'Date');\n }\n if (data.hasOwnProperty('accuracy')) {\n obj['accuracy'] = ApiClient.convertToType(data['accuracy'], 'Number');\n }\n if (data.hasOwnProperty('altitude')) {\n obj['altitude'] = ApiClient.convertToType(data['altitude'], 'Number');\n }\n if (data.hasOwnProperty('latitude')) {\n obj['latitude'] = ApiClient.convertToType(data['latitude'], 'Number');\n }\n if (data.hasOwnProperty('longitude')) {\n obj['longitude'] = ApiClient.convertToType(data['longitude'], 'Number');\n }\n if (data.hasOwnProperty('radius')) {\n obj['radius'] = ApiClient.convertToType(data['radius'], 'Number');\n }\n if (data.hasOwnProperty('units')) {\n obj['units'] = ApiClient.convertToType(data['units'], 'String');\n }\n if (data.hasOwnProperty('items')) {\n obj['items'] = ApiClient.convertToType(data['items'], [ActivityObject]);\n }\n if (data.hasOwnProperty('totalItems')) {\n obj['totalItems'] = ApiClient.convertToType(data['totalItems'], 'Number');\n }\n if (data.hasOwnProperty('current')) {\n obj['current'] = ActivityObject.constructFromObject(data['current']);\n }\n if (data.hasOwnProperty('first')) {\n obj['first'] = ActivityObject.constructFromObject(data['first']);\n }\n if (data.hasOwnProperty('last')) {\n obj['last'] = ActivityObject.constructFromObject(data['last']);\n }\n if (data.hasOwnProperty('partOf')) {\n obj['partOf'] = ActivityObject.constructFromObject(data['partOf']);\n }\n if (data.hasOwnProperty('next')) {\n obj['next'] = ActivityObject.constructFromObject(data['next']);\n }\n if (data.hasOwnProperty('prev')) {\n obj['prev'] = ActivityObject.constructFromObject(data['prev']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} jsonLdContext\n */\n jsonLdContext = undefined;\n /**\n * @member {module:model/ActivityObjectType} type\n */\n type = undefined;\n /**\n * @member {String} id\n */\n id = undefined;\n /**\n * @member {String} name\n */\n name = undefined;\n /**\n * @member {String} summary\n */\n summary = undefined;\n /**\n * @member {String} markdown\n */\n markdown = undefined;\n /**\n * @member {module:model/ActivityObject} context\n */\n context = undefined;\n /**\n * @member {module:model/ActivityObject} attachment\n */\n attachment = undefined;\n /**\n * @member {module:model/ActivityObject} attributedTo\n */\n attributedTo = undefined;\n /**\n * @member {module:model/ActivityObject} audience\n */\n audience = undefined;\n /**\n * @member {module:model/ActivityObject} content\n */\n content = undefined;\n /**\n * @member {Date} startTime\n */\n startTime = undefined;\n /**\n * @member {Date} endTime\n */\n endTime = undefined;\n /**\n * @member {Date} published\n */\n published = undefined;\n /**\n * @member {Date} updated\n */\n updated = undefined;\n /**\n * @member {Date} duration\n */\n duration = undefined;\n /**\n * @member {module:model/ActivityObject} url\n */\n url = undefined;\n /**\n * @member {String} mediaType\n */\n mediaType = undefined;\n /**\n * @member {module:model/ActivityObject} icon\n */\n icon = undefined;\n /**\n * @member {module:model/ActivityObject} image\n */\n image = undefined;\n /**\n * @member {module:model/ActivityObject} preview\n */\n preview = undefined;\n /**\n * @member {module:model/ActivityObject} location\n */\n location = undefined;\n /**\n * @member {module:model/ActivityObject} inReplyTo\n */\n inReplyTo = undefined;\n /**\n * @member {module:model/ActivityObject} replies\n */\n replies = undefined;\n /**\n * @member {module:model/ActivityObject} tag\n */\n tag = undefined;\n /**\n * @member {module:model/ActivityObject} generator\n */\n generator = undefined;\n /**\n * @member {module:model/ActivityObject} to\n */\n to = undefined;\n /**\n * @member {module:model/ActivityObject} bto\n */\n bto = undefined;\n /**\n * @member {module:model/ActivityObject} cc\n */\n cc = undefined;\n /**\n * @member {module:model/ActivityObject} bcc\n */\n bcc = undefined;\n /**\n * @member {module:model/ActivityObject} actor\n */\n actor = undefined;\n /**\n * @member {module:model/ActivityObject} object\n */\n object = undefined;\n /**\n * @member {module:model/ActivityObject} target\n */\n target = undefined;\n /**\n * @member {module:model/ActivityObject} result\n */\n result = undefined;\n /**\n * @member {module:model/ActivityObject} origin\n */\n origin = undefined;\n /**\n * @member {module:model/ActivityObject} instrument\n */\n instrument = undefined;\n /**\n * @member {String} href\n */\n href = undefined;\n /**\n * @member {String} rel\n */\n rel = undefined;\n /**\n * @member {String} hreflang\n */\n hreflang = undefined;\n /**\n * @member {Number} height\n */\n height = undefined;\n /**\n * @member {Number} width\n */\n width = undefined;\n /**\n * @member {module:model/ActivityObject} oneOf\n */\n oneOf = undefined;\n /**\n * @member {module:model/ActivityObject} anyOf\n */\n anyOf = undefined;\n /**\n * @member {Date} closed\n */\n closed = undefined;\n /**\n * @member {module:model/ActivityObject} subject\n */\n subject = undefined;\n /**\n * @member {module:model/ActivityObject} relationship\n */\n relationship = undefined;\n /**\n * @member {module:model/ActivityObjectType} formerType\n */\n formerType = undefined;\n /**\n * @member {Date} deleted\n */\n deleted = undefined;\n /**\n * @member {Number} accuracy\n */\n accuracy = undefined;\n /**\n * @member {Number} altitude\n */\n altitude = undefined;\n /**\n * @member {Number} latitude\n */\n latitude = undefined;\n /**\n * @member {Number} longitude\n */\n longitude = undefined;\n /**\n * @member {Number} radius\n */\n radius = undefined;\n /**\n * @member {String} units\n */\n units = undefined;\n /**\n * @member {Array.} items\n */\n items = undefined;\n /**\n * @member {Number} totalItems\n */\n totalItems = undefined;\n /**\n * @member {module:model/ActivityObject} current\n */\n current = undefined;\n /**\n * @member {module:model/ActivityObject} first\n */\n first = undefined;\n /**\n * @member {module:model/ActivityObject} last\n */\n last = undefined;\n /**\n * @member {module:model/ActivityObject} partOf\n */\n partOf = undefined;\n /**\n * @member {module:model/ActivityObject} next\n */\n next = undefined;\n /**\n * @member {module:model/ActivityObject} prev\n */\n prev = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"ActivityObject.js"} \ No newline at end of file diff --git a/lib/model/ActivityObjectType.js b/lib/model/ActivityObjectType.js new file mode 100644 index 0000000..4dfb7be --- /dev/null +++ b/lib/model/ActivityObjectType.js @@ -0,0 +1,167 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class ActivityObjectType. +* @enum {} +* @readonly +*/ +var ActivityObjectType = /*#__PURE__*/function () { + function ActivityObjectType() { + _classCallCheck(this, ActivityObjectType); + + _defineProperty(this, "BaseObject", "BaseObject"); + + _defineProperty(this, "Activity", "Activity"); + + _defineProperty(this, "Link", "Link"); + + _defineProperty(this, "Mention", "Mention"); + + _defineProperty(this, "Collection", "Collection"); + + _defineProperty(this, "OrderedCollection", "OrderedCollection"); + + _defineProperty(this, "CollectionPage", "CollectionPage"); + + _defineProperty(this, "OrderedCollectionPage", "OrderedCollectionPage"); + + _defineProperty(this, "Application", "Application"); + + _defineProperty(this, "Group", "Group"); + + _defineProperty(this, "Organization", "Organization"); + + _defineProperty(this, "Person", "Person"); + + _defineProperty(this, "Service", "Service"); + + _defineProperty(this, "Article", "Article"); + + _defineProperty(this, "Audio", "Audio"); + + _defineProperty(this, "Document", "Document"); + + _defineProperty(this, "Event", "Event"); + + _defineProperty(this, "Image", "Image"); + + _defineProperty(this, "Note", "Note"); + + _defineProperty(this, "Page", "Page"); + + _defineProperty(this, "Place", "Place"); + + _defineProperty(this, "Profile", "Profile"); + + _defineProperty(this, "Relationship", "Relationship"); + + _defineProperty(this, "Tombstone", "Tombstone"); + + _defineProperty(this, "Video", "Video"); + + _defineProperty(this, "Accept", "Accept"); + + _defineProperty(this, "Add", "Add"); + + _defineProperty(this, "Announce", "Announce"); + + _defineProperty(this, "Arrive", "Arrive"); + + _defineProperty(this, "Block", "Block"); + + _defineProperty(this, "Create", "Create"); + + _defineProperty(this, "Delete", "Delete"); + + _defineProperty(this, "Dislike", "Dislike"); + + _defineProperty(this, "Flag", "Flag"); + + _defineProperty(this, "Follow", "Follow"); + + _defineProperty(this, "Ignore", "Ignore"); + + _defineProperty(this, "Invite", "Invite"); + + _defineProperty(this, "Join", "Join"); + + _defineProperty(this, "Leave", "Leave"); + + _defineProperty(this, "Like", "Like"); + + _defineProperty(this, "Listen", "Listen"); + + _defineProperty(this, "Move", "Move"); + + _defineProperty(this, "Offer", "Offer"); + + _defineProperty(this, "Question", "Question"); + + _defineProperty(this, "Reject", "Reject"); + + _defineProperty(this, "Read", "Read"); + + _defineProperty(this, "Remove", "Remove"); + + _defineProperty(this, "TentativeReject", "TentativeReject"); + + _defineProperty(this, "TentativeAccept", "TentativeAccept"); + + _defineProperty(this, "Travel", "Travel"); + + _defineProperty(this, "Undo", "Undo"); + + _defineProperty(this, "Update", "Update"); + + _defineProperty(this, "UpdateComment", "UpdateComment"); + + _defineProperty(this, "UpdateMeta", "UpdateMeta"); + + _defineProperty(this, "View", "View"); + + _defineProperty(this, "Workspace", "Workspace"); + + _defineProperty(this, "Digest", "Digest"); + + _defineProperty(this, "Folder", "Folder"); + + _defineProperty(this, "Cell", "Cell"); + + _defineProperty(this, "Share", "Share"); + } + + _createClass(ActivityObjectType, null, [{ + key: "constructFromObject", + value: + /** + * Returns a ActivityObjectType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ActivityObjectType} The enum ActivityObjectType value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return ActivityObjectType; +}(); + +exports["default"] = ActivityObjectType; +//# sourceMappingURL=ActivityObjectType.js.map diff --git a/lib/model/ActivityObjectType.js.map b/lib/model/ActivityObjectType.js.map new file mode 100644 index 0000000..8a17d8c --- /dev/null +++ b/lib/model/ActivityObjectType.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ActivityObjectType.js"],"names":["ActivityObjectType","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,kB;;;;wCAMA,Y;;sCAOF,U;;kCAOJ,M;;qCAOG,S;;wCAOG,Y;;+CAOO,mB;;4CAOH,gB;;mDAOO,uB;;yCAOV,a;;mCAON,O;;0CAOO,c;;oCAON,Q;;qCAOC,S;;qCAOA,S;;mCAOF,O;;sCAOG,U;;mCAOH,O;;mCAOA,O;;kCAOD,M;;kCAOA,M;;mCAOC,O;;qCAOE,S;;0CAOK,c;;uCAOH,W;;mCAOJ,O;;oCAOC,Q;;iCAOH,K;;sCAOK,U;;oCAOF,Q;;mCAOD,O;;oCAOC,Q;;oCAOA,Q;;qCAOC,S;;kCAOH,M;;oCAOE,Q;;oCAOA,Q;;oCAOA,Q;;kCAOF,M;;mCAOC,O;;kCAOD,M;;oCAOE,Q;;kCAOF,M;;mCAOC,O;;sCAOG,U;;oCAOF,Q;;kCAOF,M;;oCAOE,Q;;6CAOS,iB;;6CAOA,iB;;oCAOT,Q;;kCAOF,M;;oCAOE,Q;;2CAOO,e;;wCAOH,Y;;kCAON,M;;uCAOK,W;;oCAOH,Q;;oCAOA,Q;;kCAOF,M;;mCAOC,O;;;;;;AAIZ;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class ActivityObjectType.\n* @enum {}\n* @readonly\n*/\nexport default class ActivityObjectType {\n \n /**\n * value: \"BaseObject\"\n * @const\n */\n BaseObject = \"BaseObject\";\n\n \n /**\n * value: \"Activity\"\n * @const\n */\n Activity = \"Activity\";\n\n \n /**\n * value: \"Link\"\n * @const\n */\n Link = \"Link\";\n\n \n /**\n * value: \"Mention\"\n * @const\n */\n Mention = \"Mention\";\n\n \n /**\n * value: \"Collection\"\n * @const\n */\n Collection = \"Collection\";\n\n \n /**\n * value: \"OrderedCollection\"\n * @const\n */\n OrderedCollection = \"OrderedCollection\";\n\n \n /**\n * value: \"CollectionPage\"\n * @const\n */\n CollectionPage = \"CollectionPage\";\n\n \n /**\n * value: \"OrderedCollectionPage\"\n * @const\n */\n OrderedCollectionPage = \"OrderedCollectionPage\";\n\n \n /**\n * value: \"Application\"\n * @const\n */\n Application = \"Application\";\n\n \n /**\n * value: \"Group\"\n * @const\n */\n Group = \"Group\";\n\n \n /**\n * value: \"Organization\"\n * @const\n */\n Organization = \"Organization\";\n\n \n /**\n * value: \"Person\"\n * @const\n */\n Person = \"Person\";\n\n \n /**\n * value: \"Service\"\n * @const\n */\n Service = \"Service\";\n\n \n /**\n * value: \"Article\"\n * @const\n */\n Article = \"Article\";\n\n \n /**\n * value: \"Audio\"\n * @const\n */\n Audio = \"Audio\";\n\n \n /**\n * value: \"Document\"\n * @const\n */\n Document = \"Document\";\n\n \n /**\n * value: \"Event\"\n * @const\n */\n Event = \"Event\";\n\n \n /**\n * value: \"Image\"\n * @const\n */\n Image = \"Image\";\n\n \n /**\n * value: \"Note\"\n * @const\n */\n Note = \"Note\";\n\n \n /**\n * value: \"Page\"\n * @const\n */\n Page = \"Page\";\n\n \n /**\n * value: \"Place\"\n * @const\n */\n Place = \"Place\";\n\n \n /**\n * value: \"Profile\"\n * @const\n */\n Profile = \"Profile\";\n\n \n /**\n * value: \"Relationship\"\n * @const\n */\n Relationship = \"Relationship\";\n\n \n /**\n * value: \"Tombstone\"\n * @const\n */\n Tombstone = \"Tombstone\";\n\n \n /**\n * value: \"Video\"\n * @const\n */\n Video = \"Video\";\n\n \n /**\n * value: \"Accept\"\n * @const\n */\n Accept = \"Accept\";\n\n \n /**\n * value: \"Add\"\n * @const\n */\n Add = \"Add\";\n\n \n /**\n * value: \"Announce\"\n * @const\n */\n Announce = \"Announce\";\n\n \n /**\n * value: \"Arrive\"\n * @const\n */\n Arrive = \"Arrive\";\n\n \n /**\n * value: \"Block\"\n * @const\n */\n Block = \"Block\";\n\n \n /**\n * value: \"Create\"\n * @const\n */\n Create = \"Create\";\n\n \n /**\n * value: \"Delete\"\n * @const\n */\n Delete = \"Delete\";\n\n \n /**\n * value: \"Dislike\"\n * @const\n */\n Dislike = \"Dislike\";\n\n \n /**\n * value: \"Flag\"\n * @const\n */\n Flag = \"Flag\";\n\n \n /**\n * value: \"Follow\"\n * @const\n */\n Follow = \"Follow\";\n\n \n /**\n * value: \"Ignore\"\n * @const\n */\n Ignore = \"Ignore\";\n\n \n /**\n * value: \"Invite\"\n * @const\n */\n Invite = \"Invite\";\n\n \n /**\n * value: \"Join\"\n * @const\n */\n Join = \"Join\";\n\n \n /**\n * value: \"Leave\"\n * @const\n */\n Leave = \"Leave\";\n\n \n /**\n * value: \"Like\"\n * @const\n */\n Like = \"Like\";\n\n \n /**\n * value: \"Listen\"\n * @const\n */\n Listen = \"Listen\";\n\n \n /**\n * value: \"Move\"\n * @const\n */\n Move = \"Move\";\n\n \n /**\n * value: \"Offer\"\n * @const\n */\n Offer = \"Offer\";\n\n \n /**\n * value: \"Question\"\n * @const\n */\n Question = \"Question\";\n\n \n /**\n * value: \"Reject\"\n * @const\n */\n Reject = \"Reject\";\n\n \n /**\n * value: \"Read\"\n * @const\n */\n Read = \"Read\";\n\n \n /**\n * value: \"Remove\"\n * @const\n */\n Remove = \"Remove\";\n\n \n /**\n * value: \"TentativeReject\"\n * @const\n */\n TentativeReject = \"TentativeReject\";\n\n \n /**\n * value: \"TentativeAccept\"\n * @const\n */\n TentativeAccept = \"TentativeAccept\";\n\n \n /**\n * value: \"Travel\"\n * @const\n */\n Travel = \"Travel\";\n\n \n /**\n * value: \"Undo\"\n * @const\n */\n Undo = \"Undo\";\n\n \n /**\n * value: \"Update\"\n * @const\n */\n Update = \"Update\";\n\n \n /**\n * value: \"UpdateComment\"\n * @const\n */\n UpdateComment = \"UpdateComment\";\n\n \n /**\n * value: \"UpdateMeta\"\n * @const\n */\n UpdateMeta = \"UpdateMeta\";\n\n \n /**\n * value: \"View\"\n * @const\n */\n View = \"View\";\n\n \n /**\n * value: \"Workspace\"\n * @const\n */\n Workspace = \"Workspace\";\n\n \n /**\n * value: \"Digest\"\n * @const\n */\n Digest = \"Digest\";\n\n \n /**\n * value: \"Folder\"\n * @const\n */\n Folder = \"Folder\";\n\n \n /**\n * value: \"Cell\"\n * @const\n */\n Cell = \"Cell\";\n\n \n /**\n * value: \"Share\"\n * @const\n */\n Share = \"Share\";\n\n \n\n /**\n * Returns a ActivityObjectType enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/ActivityObjectType} The enum ActivityObjectType value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"ActivityObjectType.js"} \ No newline at end of file diff --git a/lib/model/AuthLdapMapping.js b/lib/model/AuthLdapMapping.js new file mode 100644 index 0000000..7ebb58c --- /dev/null +++ b/lib/model/AuthLdapMapping.js @@ -0,0 +1,86 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthLdapMapping model module. +* @module model/AuthLdapMapping +* @version 2.0 +*/ +var AuthLdapMapping = /*#__PURE__*/function () { + /** + * Constructs a new AuthLdapMapping. + * @alias module:model/AuthLdapMapping + * @class + */ + function AuthLdapMapping() { + _classCallCheck(this, AuthLdapMapping); + + _defineProperty(this, "LeftAttribute", undefined); + + _defineProperty(this, "RightAttribute", undefined); + + _defineProperty(this, "RuleString", undefined); + + _defineProperty(this, "RolePrefix", undefined); + } + /** + * Constructs a AuthLdapMapping from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthLdapMapping} obj Optional instance to populate. + * @return {module:model/AuthLdapMapping} The populated AuthLdapMapping instance. + */ + + + _createClass(AuthLdapMapping, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthLdapMapping(); + + if (data.hasOwnProperty('LeftAttribute')) { + obj['LeftAttribute'] = _ApiClient["default"].convertToType(data['LeftAttribute'], 'String'); + } + + if (data.hasOwnProperty('RightAttribute')) { + obj['RightAttribute'] = _ApiClient["default"].convertToType(data['RightAttribute'], 'String'); + } + + if (data.hasOwnProperty('RuleString')) { + obj['RuleString'] = _ApiClient["default"].convertToType(data['RuleString'], 'String'); + } + + if (data.hasOwnProperty('RolePrefix')) { + obj['RolePrefix'] = _ApiClient["default"].convertToType(data['RolePrefix'], 'String'); + } + } + + return obj; + } + /** + * @member {String} LeftAttribute + */ + + }]); + + return AuthLdapMapping; +}(); + +exports["default"] = AuthLdapMapping; +//# sourceMappingURL=AuthLdapMapping.js.map diff --git a/lib/model/AuthLdapMapping.js.map b/lib/model/AuthLdapMapping.js.map new file mode 100644 index 0000000..1cb4263 --- /dev/null +++ b/lib/model/AuthLdapMapping.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthLdapMapping.js"],"names":["AuthLdapMapping","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,e;AACjB;AACJ;AACA;AACA;AACA;AAEI,6BAAc;AAAA;;AAAA,2CA6CEC,SA7CF;;AAAA,4CAiDGA,SAjDH;;AAAA,wCAqDDA,SArDC;;AAAA,wCAyDDA,SAzDC;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,eAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,eAAD,CAA5B,EAA+C,QAA/C,CAAvB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,gBAApB,CAAJ,EAA2C;AACvCD,UAAAA,GAAG,CAAC,gBAAD,CAAH,GAAwBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,gBAAD,CAA5B,EAAgD,QAAhD,CAAxB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,QAA5C,CAApB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,QAA5C,CAApB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The AuthLdapMapping model module.\n* @module model/AuthLdapMapping\n* @version 2.0\n*/\nexport default class AuthLdapMapping {\n /**\n * Constructs a new AuthLdapMapping.\n * @alias module:model/AuthLdapMapping\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthLdapMapping from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthLdapMapping} obj Optional instance to populate.\n * @return {module:model/AuthLdapMapping} The populated AuthLdapMapping instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthLdapMapping();\n\n \n \n \n\n if (data.hasOwnProperty('LeftAttribute')) {\n obj['LeftAttribute'] = ApiClient.convertToType(data['LeftAttribute'], 'String');\n }\n if (data.hasOwnProperty('RightAttribute')) {\n obj['RightAttribute'] = ApiClient.convertToType(data['RightAttribute'], 'String');\n }\n if (data.hasOwnProperty('RuleString')) {\n obj['RuleString'] = ApiClient.convertToType(data['RuleString'], 'String');\n }\n if (data.hasOwnProperty('RolePrefix')) {\n obj['RolePrefix'] = ApiClient.convertToType(data['RolePrefix'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} LeftAttribute\n */\n LeftAttribute = undefined;\n /**\n * @member {String} RightAttribute\n */\n RightAttribute = undefined;\n /**\n * @member {String} RuleString\n */\n RuleString = undefined;\n /**\n * @member {String} RolePrefix\n */\n RolePrefix = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthLdapMapping.js"} \ No newline at end of file diff --git a/lib/model/AuthLdapMemberOfMapping.js b/lib/model/AuthLdapMemberOfMapping.js new file mode 100644 index 0000000..5cad774 --- /dev/null +++ b/lib/model/AuthLdapMemberOfMapping.js @@ -0,0 +1,114 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthLdapMapping = _interopRequireDefault(require("./AuthLdapMapping")); + +var _AuthLdapSearchFilter = _interopRequireDefault(require("./AuthLdapSearchFilter")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthLdapMemberOfMapping model module. +* @module model/AuthLdapMemberOfMapping +* @version 2.0 +*/ +var AuthLdapMemberOfMapping = /*#__PURE__*/function () { + /** + * Constructs a new AuthLdapMemberOfMapping. + * @alias module:model/AuthLdapMemberOfMapping + * @class + */ + function AuthLdapMemberOfMapping() { + _classCallCheck(this, AuthLdapMemberOfMapping); + + _defineProperty(this, "Mapping", undefined); + + _defineProperty(this, "GroupFilter", undefined); + + _defineProperty(this, "SupportNestedGroup", undefined); + + _defineProperty(this, "RealMemberOf", undefined); + + _defineProperty(this, "RealMemberOfAttribute", undefined); + + _defineProperty(this, "RealMemberOfValueFormat", undefined); + + _defineProperty(this, "PydioMemberOfAttribute", undefined); + + _defineProperty(this, "PydioMemberOfValueFormat", undefined); + } + /** + * Constructs a AuthLdapMemberOfMapping from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthLdapMemberOfMapping} obj Optional instance to populate. + * @return {module:model/AuthLdapMemberOfMapping} The populated AuthLdapMemberOfMapping instance. + */ + + + _createClass(AuthLdapMemberOfMapping, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthLdapMemberOfMapping(); + + if (data.hasOwnProperty('Mapping')) { + obj['Mapping'] = _AuthLdapMapping["default"].constructFromObject(data['Mapping']); + } + + if (data.hasOwnProperty('GroupFilter')) { + obj['GroupFilter'] = _AuthLdapSearchFilter["default"].constructFromObject(data['GroupFilter']); + } + + if (data.hasOwnProperty('SupportNestedGroup')) { + obj['SupportNestedGroup'] = _ApiClient["default"].convertToType(data['SupportNestedGroup'], 'Boolean'); + } + + if (data.hasOwnProperty('RealMemberOf')) { + obj['RealMemberOf'] = _ApiClient["default"].convertToType(data['RealMemberOf'], 'Boolean'); + } + + if (data.hasOwnProperty('RealMemberOfAttribute')) { + obj['RealMemberOfAttribute'] = _ApiClient["default"].convertToType(data['RealMemberOfAttribute'], 'String'); + } + + if (data.hasOwnProperty('RealMemberOfValueFormat')) { + obj['RealMemberOfValueFormat'] = _ApiClient["default"].convertToType(data['RealMemberOfValueFormat'], 'String'); + } + + if (data.hasOwnProperty('PydioMemberOfAttribute')) { + obj['PydioMemberOfAttribute'] = _ApiClient["default"].convertToType(data['PydioMemberOfAttribute'], 'String'); + } + + if (data.hasOwnProperty('PydioMemberOfValueFormat')) { + obj['PydioMemberOfValueFormat'] = _ApiClient["default"].convertToType(data['PydioMemberOfValueFormat'], 'String'); + } + } + + return obj; + } + /** + * @member {module:model/AuthLdapMapping} Mapping + */ + + }]); + + return AuthLdapMemberOfMapping; +}(); + +exports["default"] = AuthLdapMemberOfMapping; +//# sourceMappingURL=AuthLdapMemberOfMapping.js.map diff --git a/lib/model/AuthLdapMemberOfMapping.js.map b/lib/model/AuthLdapMemberOfMapping.js.map new file mode 100644 index 0000000..c6ff244 --- /dev/null +++ b/lib/model/AuthLdapMemberOfMapping.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthLdapMemberOfMapping.js"],"names":["AuthLdapMemberOfMapping","undefined","data","obj","hasOwnProperty","AuthLdapMapping","constructFromObject","AuthLdapSearchFilter","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,uB;AACjB;AACJ;AACA;AACA;AACA;AAEI,qCAAc;AAAA;;AAAA,qCAyDJC,SAzDI;;AAAA,yCA6DAA,SA7DA;;AAAA,gDAiEOA,SAjEP;;AAAA,0CAqECA,SArED;;AAAA,mDAyEUA,SAzEV;;AAAA,qDA6EYA,SA7EZ;;AAAA,oDAiFWA,SAjFX;;AAAA,sDAqFaA,SArFb;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,uBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,4BAAgBC,mBAAhB,CAAoCJ,IAAI,CAAC,SAAD,CAAxC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBI,iCAAqBD,mBAArB,CAAyCJ,IAAI,CAAC,aAAD,CAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,oBAApB,CAAJ,EAA+C;AAC3CD,UAAAA,GAAG,CAAC,oBAAD,CAAH,GAA4BK,sBAAUC,aAAV,CAAwBP,IAAI,CAAC,oBAAD,CAA5B,EAAoD,SAApD,CAA5B;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBK,sBAAUC,aAAV,CAAwBP,IAAI,CAAC,cAAD,CAA5B,EAA8C,SAA9C,CAAtB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,uBAApB,CAAJ,EAAkD;AAC9CD,UAAAA,GAAG,CAAC,uBAAD,CAAH,GAA+BK,sBAAUC,aAAV,CAAwBP,IAAI,CAAC,uBAAD,CAA5B,EAAuD,QAAvD,CAA/B;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,yBAApB,CAAJ,EAAoD;AAChDD,UAAAA,GAAG,CAAC,yBAAD,CAAH,GAAiCK,sBAAUC,aAAV,CAAwBP,IAAI,CAAC,yBAAD,CAA5B,EAAyD,QAAzD,CAAjC;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,wBAApB,CAAJ,EAAmD;AAC/CD,UAAAA,GAAG,CAAC,wBAAD,CAAH,GAAgCK,sBAAUC,aAAV,CAAwBP,IAAI,CAAC,wBAAD,CAA5B,EAAwD,QAAxD,CAAhC;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,0BAApB,CAAJ,EAAqD;AACjDD,UAAAA,GAAG,CAAC,0BAAD,CAAH,GAAkCK,sBAAUC,aAAV,CAAwBP,IAAI,CAAC,0BAAD,CAA5B,EAA0D,QAA1D,CAAlC;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport AuthLdapMapping from './AuthLdapMapping';\nimport AuthLdapSearchFilter from './AuthLdapSearchFilter';\n\n\n\n\n\n/**\n* The AuthLdapMemberOfMapping model module.\n* @module model/AuthLdapMemberOfMapping\n* @version 2.0\n*/\nexport default class AuthLdapMemberOfMapping {\n /**\n * Constructs a new AuthLdapMemberOfMapping.\n * @alias module:model/AuthLdapMemberOfMapping\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthLdapMemberOfMapping from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthLdapMemberOfMapping} obj Optional instance to populate.\n * @return {module:model/AuthLdapMemberOfMapping} The populated AuthLdapMemberOfMapping instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthLdapMemberOfMapping();\n\n \n \n \n\n if (data.hasOwnProperty('Mapping')) {\n obj['Mapping'] = AuthLdapMapping.constructFromObject(data['Mapping']);\n }\n if (data.hasOwnProperty('GroupFilter')) {\n obj['GroupFilter'] = AuthLdapSearchFilter.constructFromObject(data['GroupFilter']);\n }\n if (data.hasOwnProperty('SupportNestedGroup')) {\n obj['SupportNestedGroup'] = ApiClient.convertToType(data['SupportNestedGroup'], 'Boolean');\n }\n if (data.hasOwnProperty('RealMemberOf')) {\n obj['RealMemberOf'] = ApiClient.convertToType(data['RealMemberOf'], 'Boolean');\n }\n if (data.hasOwnProperty('RealMemberOfAttribute')) {\n obj['RealMemberOfAttribute'] = ApiClient.convertToType(data['RealMemberOfAttribute'], 'String');\n }\n if (data.hasOwnProperty('RealMemberOfValueFormat')) {\n obj['RealMemberOfValueFormat'] = ApiClient.convertToType(data['RealMemberOfValueFormat'], 'String');\n }\n if (data.hasOwnProperty('PydioMemberOfAttribute')) {\n obj['PydioMemberOfAttribute'] = ApiClient.convertToType(data['PydioMemberOfAttribute'], 'String');\n }\n if (data.hasOwnProperty('PydioMemberOfValueFormat')) {\n obj['PydioMemberOfValueFormat'] = ApiClient.convertToType(data['PydioMemberOfValueFormat'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/AuthLdapMapping} Mapping\n */\n Mapping = undefined;\n /**\n * @member {module:model/AuthLdapSearchFilter} GroupFilter\n */\n GroupFilter = undefined;\n /**\n * @member {Boolean} SupportNestedGroup\n */\n SupportNestedGroup = undefined;\n /**\n * @member {Boolean} RealMemberOf\n */\n RealMemberOf = undefined;\n /**\n * @member {String} RealMemberOfAttribute\n */\n RealMemberOfAttribute = undefined;\n /**\n * @member {String} RealMemberOfValueFormat\n */\n RealMemberOfValueFormat = undefined;\n /**\n * @member {String} PydioMemberOfAttribute\n */\n PydioMemberOfAttribute = undefined;\n /**\n * @member {String} PydioMemberOfValueFormat\n */\n PydioMemberOfValueFormat = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthLdapMemberOfMapping.js"} \ No newline at end of file diff --git a/lib/model/AuthLdapSearchFilter.js b/lib/model/AuthLdapSearchFilter.js new file mode 100644 index 0000000..642a903 --- /dev/null +++ b/lib/model/AuthLdapSearchFilter.js @@ -0,0 +1,92 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthLdapSearchFilter model module. +* @module model/AuthLdapSearchFilter +* @version 2.0 +*/ +var AuthLdapSearchFilter = /*#__PURE__*/function () { + /** + * Constructs a new AuthLdapSearchFilter. + * @alias module:model/AuthLdapSearchFilter + * @class + */ + function AuthLdapSearchFilter() { + _classCallCheck(this, AuthLdapSearchFilter); + + _defineProperty(this, "DNs", undefined); + + _defineProperty(this, "Filter", undefined); + + _defineProperty(this, "IDAttribute", undefined); + + _defineProperty(this, "DisplayAttribute", undefined); + + _defineProperty(this, "Scope", undefined); + } + /** + * Constructs a AuthLdapSearchFilter from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthLdapSearchFilter} obj Optional instance to populate. + * @return {module:model/AuthLdapSearchFilter} The populated AuthLdapSearchFilter instance. + */ + + + _createClass(AuthLdapSearchFilter, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthLdapSearchFilter(); + + if (data.hasOwnProperty('DNs')) { + obj['DNs'] = _ApiClient["default"].convertToType(data['DNs'], ['String']); + } + + if (data.hasOwnProperty('Filter')) { + obj['Filter'] = _ApiClient["default"].convertToType(data['Filter'], 'String'); + } + + if (data.hasOwnProperty('IDAttribute')) { + obj['IDAttribute'] = _ApiClient["default"].convertToType(data['IDAttribute'], 'String'); + } + + if (data.hasOwnProperty('DisplayAttribute')) { + obj['DisplayAttribute'] = _ApiClient["default"].convertToType(data['DisplayAttribute'], 'String'); + } + + if (data.hasOwnProperty('Scope')) { + obj['Scope'] = _ApiClient["default"].convertToType(data['Scope'], 'String'); + } + } + + return obj; + } + /** + * @member {Array.} DNs + */ + + }]); + + return AuthLdapSearchFilter; +}(); + +exports["default"] = AuthLdapSearchFilter; +//# sourceMappingURL=AuthLdapSearchFilter.js.map diff --git a/lib/model/AuthLdapSearchFilter.js.map b/lib/model/AuthLdapSearchFilter.js.map new file mode 100644 index 0000000..79028b4 --- /dev/null +++ b/lib/model/AuthLdapSearchFilter.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthLdapSearchFilter.js"],"names":["AuthLdapSearchFilter","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,oB;AACjB;AACJ;AACA;AACA;AACA;AAEI,kCAAc;AAAA;;AAAA,iCAgDRC,SAhDQ;;AAAA,oCAoDLA,SApDK;;AAAA,yCAwDAA,SAxDA;;AAAA,8CA4DKA,SA5DL;;AAAA,mCAgENA,SAhEM;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,oBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,KAApB,CAAJ,EAAgC;AAC5BD,UAAAA,GAAG,CAAC,KAAD,CAAH,GAAaE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,KAAD,CAA5B,EAAqC,CAAC,QAAD,CAArC,CAAb;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,kBAApB,CAAJ,EAA6C;AACzCD,UAAAA,GAAG,CAAC,kBAAD,CAAH,GAA0BE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,kBAAD,CAA5B,EAAkD,QAAlD,CAA1B;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The AuthLdapSearchFilter model module.\n* @module model/AuthLdapSearchFilter\n* @version 2.0\n*/\nexport default class AuthLdapSearchFilter {\n /**\n * Constructs a new AuthLdapSearchFilter.\n * @alias module:model/AuthLdapSearchFilter\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthLdapSearchFilter from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthLdapSearchFilter} obj Optional instance to populate.\n * @return {module:model/AuthLdapSearchFilter} The populated AuthLdapSearchFilter instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthLdapSearchFilter();\n\n \n \n \n\n if (data.hasOwnProperty('DNs')) {\n obj['DNs'] = ApiClient.convertToType(data['DNs'], ['String']);\n }\n if (data.hasOwnProperty('Filter')) {\n obj['Filter'] = ApiClient.convertToType(data['Filter'], 'String');\n }\n if (data.hasOwnProperty('IDAttribute')) {\n obj['IDAttribute'] = ApiClient.convertToType(data['IDAttribute'], 'String');\n }\n if (data.hasOwnProperty('DisplayAttribute')) {\n obj['DisplayAttribute'] = ApiClient.convertToType(data['DisplayAttribute'], 'String');\n }\n if (data.hasOwnProperty('Scope')) {\n obj['Scope'] = ApiClient.convertToType(data['Scope'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} DNs\n */\n DNs = undefined;\n /**\n * @member {String} Filter\n */\n Filter = undefined;\n /**\n * @member {String} IDAttribute\n */\n IDAttribute = undefined;\n /**\n * @member {String} DisplayAttribute\n */\n DisplayAttribute = undefined;\n /**\n * @member {String} Scope\n */\n Scope = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthLdapSearchFilter.js"} \ No newline at end of file diff --git a/lib/model/AuthLdapServerConfig.js b/lib/model/AuthLdapServerConfig.js new file mode 100644 index 0000000..83c17b6 --- /dev/null +++ b/lib/model/AuthLdapServerConfig.js @@ -0,0 +1,164 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthLdapMapping = _interopRequireDefault(require("./AuthLdapMapping")); + +var _AuthLdapMemberOfMapping = _interopRequireDefault(require("./AuthLdapMemberOfMapping")); + +var _AuthLdapSearchFilter = _interopRequireDefault(require("./AuthLdapSearchFilter")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthLdapServerConfig model module. +* @module model/AuthLdapServerConfig +* @version 2.0 +*/ +var AuthLdapServerConfig = /*#__PURE__*/function () { + /** + * Constructs a new AuthLdapServerConfig. + * @alias module:model/AuthLdapServerConfig + * @class + */ + function AuthLdapServerConfig() { + _classCallCheck(this, AuthLdapServerConfig); + + _defineProperty(this, "ConfigId", undefined); + + _defineProperty(this, "DomainName", undefined); + + _defineProperty(this, "Host", undefined); + + _defineProperty(this, "Connection", undefined); + + _defineProperty(this, "BindDN", undefined); + + _defineProperty(this, "BindPW", undefined); + + _defineProperty(this, "SkipVerifyCertificate", undefined); + + _defineProperty(this, "RootCA", undefined); + + _defineProperty(this, "RootCAData", undefined); + + _defineProperty(this, "PageSize", undefined); + + _defineProperty(this, "User", undefined); + + _defineProperty(this, "MappingRules", undefined); + + _defineProperty(this, "MemberOfMapping", undefined); + + _defineProperty(this, "RolePrefix", undefined); + + _defineProperty(this, "Schedule", undefined); + + _defineProperty(this, "SchedulerDetails", undefined); + } + /** + * Constructs a AuthLdapServerConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthLdapServerConfig} obj Optional instance to populate. + * @return {module:model/AuthLdapServerConfig} The populated AuthLdapServerConfig instance. + */ + + + _createClass(AuthLdapServerConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthLdapServerConfig(); + + if (data.hasOwnProperty('ConfigId')) { + obj['ConfigId'] = _ApiClient["default"].convertToType(data['ConfigId'], 'String'); + } + + if (data.hasOwnProperty('DomainName')) { + obj['DomainName'] = _ApiClient["default"].convertToType(data['DomainName'], 'String'); + } + + if (data.hasOwnProperty('Host')) { + obj['Host'] = _ApiClient["default"].convertToType(data['Host'], 'String'); + } + + if (data.hasOwnProperty('Connection')) { + obj['Connection'] = _ApiClient["default"].convertToType(data['Connection'], 'String'); + } + + if (data.hasOwnProperty('BindDN')) { + obj['BindDN'] = _ApiClient["default"].convertToType(data['BindDN'], 'String'); + } + + if (data.hasOwnProperty('BindPW')) { + obj['BindPW'] = _ApiClient["default"].convertToType(data['BindPW'], 'String'); + } + + if (data.hasOwnProperty('SkipVerifyCertificate')) { + obj['SkipVerifyCertificate'] = _ApiClient["default"].convertToType(data['SkipVerifyCertificate'], 'Boolean'); + } + + if (data.hasOwnProperty('RootCA')) { + obj['RootCA'] = _ApiClient["default"].convertToType(data['RootCA'], 'String'); + } + + if (data.hasOwnProperty('RootCAData')) { + obj['RootCAData'] = _ApiClient["default"].convertToType(data['RootCAData'], 'String'); + } + + if (data.hasOwnProperty('PageSize')) { + obj['PageSize'] = _ApiClient["default"].convertToType(data['PageSize'], 'Number'); + } + + if (data.hasOwnProperty('User')) { + obj['User'] = _AuthLdapSearchFilter["default"].constructFromObject(data['User']); + } + + if (data.hasOwnProperty('MappingRules')) { + obj['MappingRules'] = _ApiClient["default"].convertToType(data['MappingRules'], [_AuthLdapMapping["default"]]); + } + + if (data.hasOwnProperty('MemberOfMapping')) { + obj['MemberOfMapping'] = _AuthLdapMemberOfMapping["default"].constructFromObject(data['MemberOfMapping']); + } + + if (data.hasOwnProperty('RolePrefix')) { + obj['RolePrefix'] = _ApiClient["default"].convertToType(data['RolePrefix'], 'String'); + } + + if (data.hasOwnProperty('Schedule')) { + obj['Schedule'] = _ApiClient["default"].convertToType(data['Schedule'], 'String'); + } + + if (data.hasOwnProperty('SchedulerDetails')) { + obj['SchedulerDetails'] = _ApiClient["default"].convertToType(data['SchedulerDetails'], 'String'); + } + } + + return obj; + } + /** + * @member {String} ConfigId + */ + + }]); + + return AuthLdapServerConfig; +}(); + +exports["default"] = AuthLdapServerConfig; +//# sourceMappingURL=AuthLdapServerConfig.js.map diff --git a/lib/model/AuthLdapServerConfig.js.map b/lib/model/AuthLdapServerConfig.js.map new file mode 100644 index 0000000..14c5d50 --- /dev/null +++ b/lib/model/AuthLdapServerConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthLdapServerConfig.js"],"names":["AuthLdapServerConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","AuthLdapSearchFilter","constructFromObject","AuthLdapMapping","AuthLdapMemberOfMapping"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,oB;AACjB;AACJ;AACA;AACA;AACA;AAEI,kCAAc;AAAA;;AAAA,sCAiFHC,SAjFG;;AAAA,wCAqFDA,SArFC;;AAAA,kCAyFPA,SAzFO;;AAAA,wCA6FDA,SA7FC;;AAAA,oCAiGLA,SAjGK;;AAAA,oCAqGLA,SArGK;;AAAA,mDAyGUA,SAzGV;;AAAA,oCA6GLA,SA7GK;;AAAA,wCAiHDA,SAjHC;;AAAA,sCAqHHA,SArHG;;AAAA,kCAyHPA,SAzHO;;AAAA,0CA6HCA,SA7HD;;AAAA,6CAiIIA,SAjIJ;;AAAA,wCAqIDA,SArIC;;AAAA,sCAyIHA,SAzIG;;AAAA,8CA6IKA,SA7IL;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,oBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,QAA5C,CAApB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,QAA5C,CAApB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,uBAApB,CAAJ,EAAkD;AAC9CD,UAAAA,GAAG,CAAC,uBAAD,CAAH,GAA+BE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,uBAAD,CAA5B,EAAuD,SAAvD,CAA/B;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,QAA5C,CAApB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcI,iCAAqBC,mBAArB,CAAyCN,IAAI,CAAC,MAAD,CAA7C,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,cAAD,CAA5B,EAA8C,CAACO,2BAAD,CAA9C,CAAtB;AACH;;AACD,YAAIP,IAAI,CAACE,cAAL,CAAoB,iBAApB,CAAJ,EAA4C;AACxCD,UAAAA,GAAG,CAAC,iBAAD,CAAH,GAAyBO,oCAAwBF,mBAAxB,CAA4CN,IAAI,CAAC,iBAAD,CAAhD,CAAzB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,QAA5C,CAApB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,kBAApB,CAAJ,EAA6C;AACzCD,UAAAA,GAAG,CAAC,kBAAD,CAAH,GAA0BE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,kBAAD,CAA5B,EAAkD,QAAlD,CAA1B;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport AuthLdapMapping from './AuthLdapMapping';\nimport AuthLdapMemberOfMapping from './AuthLdapMemberOfMapping';\nimport AuthLdapSearchFilter from './AuthLdapSearchFilter';\n\n\n\n\n\n/**\n* The AuthLdapServerConfig model module.\n* @module model/AuthLdapServerConfig\n* @version 2.0\n*/\nexport default class AuthLdapServerConfig {\n /**\n * Constructs a new AuthLdapServerConfig.\n * @alias module:model/AuthLdapServerConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthLdapServerConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthLdapServerConfig} obj Optional instance to populate.\n * @return {module:model/AuthLdapServerConfig} The populated AuthLdapServerConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthLdapServerConfig();\n\n \n \n \n\n if (data.hasOwnProperty('ConfigId')) {\n obj['ConfigId'] = ApiClient.convertToType(data['ConfigId'], 'String');\n }\n if (data.hasOwnProperty('DomainName')) {\n obj['DomainName'] = ApiClient.convertToType(data['DomainName'], 'String');\n }\n if (data.hasOwnProperty('Host')) {\n obj['Host'] = ApiClient.convertToType(data['Host'], 'String');\n }\n if (data.hasOwnProperty('Connection')) {\n obj['Connection'] = ApiClient.convertToType(data['Connection'], 'String');\n }\n if (data.hasOwnProperty('BindDN')) {\n obj['BindDN'] = ApiClient.convertToType(data['BindDN'], 'String');\n }\n if (data.hasOwnProperty('BindPW')) {\n obj['BindPW'] = ApiClient.convertToType(data['BindPW'], 'String');\n }\n if (data.hasOwnProperty('SkipVerifyCertificate')) {\n obj['SkipVerifyCertificate'] = ApiClient.convertToType(data['SkipVerifyCertificate'], 'Boolean');\n }\n if (data.hasOwnProperty('RootCA')) {\n obj['RootCA'] = ApiClient.convertToType(data['RootCA'], 'String');\n }\n if (data.hasOwnProperty('RootCAData')) {\n obj['RootCAData'] = ApiClient.convertToType(data['RootCAData'], 'String');\n }\n if (data.hasOwnProperty('PageSize')) {\n obj['PageSize'] = ApiClient.convertToType(data['PageSize'], 'Number');\n }\n if (data.hasOwnProperty('User')) {\n obj['User'] = AuthLdapSearchFilter.constructFromObject(data['User']);\n }\n if (data.hasOwnProperty('MappingRules')) {\n obj['MappingRules'] = ApiClient.convertToType(data['MappingRules'], [AuthLdapMapping]);\n }\n if (data.hasOwnProperty('MemberOfMapping')) {\n obj['MemberOfMapping'] = AuthLdapMemberOfMapping.constructFromObject(data['MemberOfMapping']);\n }\n if (data.hasOwnProperty('RolePrefix')) {\n obj['RolePrefix'] = ApiClient.convertToType(data['RolePrefix'], 'String');\n }\n if (data.hasOwnProperty('Schedule')) {\n obj['Schedule'] = ApiClient.convertToType(data['Schedule'], 'String');\n }\n if (data.hasOwnProperty('SchedulerDetails')) {\n obj['SchedulerDetails'] = ApiClient.convertToType(data['SchedulerDetails'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} ConfigId\n */\n ConfigId = undefined;\n /**\n * @member {String} DomainName\n */\n DomainName = undefined;\n /**\n * @member {String} Host\n */\n Host = undefined;\n /**\n * @member {String} Connection\n */\n Connection = undefined;\n /**\n * @member {String} BindDN\n */\n BindDN = undefined;\n /**\n * @member {String} BindPW\n */\n BindPW = undefined;\n /**\n * @member {Boolean} SkipVerifyCertificate\n */\n SkipVerifyCertificate = undefined;\n /**\n * @member {String} RootCA\n */\n RootCA = undefined;\n /**\n * @member {String} RootCAData\n */\n RootCAData = undefined;\n /**\n * @member {Number} PageSize\n */\n PageSize = undefined;\n /**\n * @member {module:model/AuthLdapSearchFilter} User\n */\n User = undefined;\n /**\n * @member {Array.} MappingRules\n */\n MappingRules = undefined;\n /**\n * @member {module:model/AuthLdapMemberOfMapping} MemberOfMapping\n */\n MemberOfMapping = undefined;\n /**\n * @member {String} RolePrefix\n */\n RolePrefix = undefined;\n /**\n * @member {String} Schedule\n */\n Schedule = undefined;\n /**\n * @member {String} SchedulerDetails\n */\n SchedulerDetails = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthLdapServerConfig.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ClientConfig.js b/lib/model/AuthOAuth2ClientConfig.js new file mode 100644 index 0000000..24c5537 --- /dev/null +++ b/lib/model/AuthOAuth2ClientConfig.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ClientConfig model module. +* @module model/AuthOAuth2ClientConfig +* @version 2.0 +*/ +var AuthOAuth2ClientConfig = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ClientConfig. + * @alias module:model/AuthOAuth2ClientConfig + * @class + */ + function AuthOAuth2ClientConfig() { + _classCallCheck(this, AuthOAuth2ClientConfig); + + _defineProperty(this, "ClientID", undefined); + + _defineProperty(this, "Name", undefined); + + _defineProperty(this, "Secret", undefined); + + _defineProperty(this, "RedirectURIs", undefined); + + _defineProperty(this, "GrantTypes", undefined); + + _defineProperty(this, "ResponseTypes", undefined); + + _defineProperty(this, "Scope", undefined); + + _defineProperty(this, "Audience", undefined); + } + /** + * Constructs a AuthOAuth2ClientConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ClientConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ClientConfig} The populated AuthOAuth2ClientConfig instance. + */ + + + _createClass(AuthOAuth2ClientConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ClientConfig(); + + if (data.hasOwnProperty('ClientID')) { + obj['ClientID'] = _ApiClient["default"].convertToType(data['ClientID'], 'String'); + } + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('Secret')) { + obj['Secret'] = _ApiClient["default"].convertToType(data['Secret'], 'String'); + } + + if (data.hasOwnProperty('RedirectURIs')) { + obj['RedirectURIs'] = _ApiClient["default"].convertToType(data['RedirectURIs'], ['String']); + } + + if (data.hasOwnProperty('GrantTypes')) { + obj['GrantTypes'] = _ApiClient["default"].convertToType(data['GrantTypes'], ['String']); + } + + if (data.hasOwnProperty('ResponseTypes')) { + obj['ResponseTypes'] = _ApiClient["default"].convertToType(data['ResponseTypes'], ['String']); + } + + if (data.hasOwnProperty('Scope')) { + obj['Scope'] = _ApiClient["default"].convertToType(data['Scope'], 'String'); + } + + if (data.hasOwnProperty('Audience')) { + obj['Audience'] = _ApiClient["default"].convertToType(data['Audience'], ['String']); + } + } + + return obj; + } + /** + * @member {String} ClientID + */ + + }]); + + return AuthOAuth2ClientConfig; +}(); + +exports["default"] = AuthOAuth2ClientConfig; +//# sourceMappingURL=AuthOAuth2ClientConfig.js.map diff --git a/lib/model/AuthOAuth2ClientConfig.js.map b/lib/model/AuthOAuth2ClientConfig.js.map new file mode 100644 index 0000000..3223eab --- /dev/null +++ b/lib/model/AuthOAuth2ClientConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ClientConfig.js"],"names":["AuthOAuth2ClientConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,sB;AACjB;AACJ;AACA;AACA;AACA;AAEI,oCAAc;AAAA;;AAAA,sCAyDHC,SAzDG;;AAAA,kCA6DPA,SA7DO;;AAAA,oCAiELA,SAjEK;;AAAA,0CAqECA,SArED;;AAAA,wCAyEDA,SAzEC;;AAAA,2CA6EEA,SA7EF;;AAAA,mCAiFNA,SAjFM;;AAAA,sCAqFHA,SArFG;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,sBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,cAAD,CAA5B,EAA8C,CAAC,QAAD,CAA9C,CAAtB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,CAAC,QAAD,CAA5C,CAApB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,eAAD,CAA5B,EAA+C,CAAC,QAAD,CAA/C,CAAvB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,CAAC,QAAD,CAA1C,CAAlB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The AuthOAuth2ClientConfig model module.\n* @module model/AuthOAuth2ClientConfig\n* @version 2.0\n*/\nexport default class AuthOAuth2ClientConfig {\n /**\n * Constructs a new AuthOAuth2ClientConfig.\n * @alias module:model/AuthOAuth2ClientConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ClientConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ClientConfig} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ClientConfig} The populated AuthOAuth2ClientConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ClientConfig();\n\n \n \n \n\n if (data.hasOwnProperty('ClientID')) {\n obj['ClientID'] = ApiClient.convertToType(data['ClientID'], 'String');\n }\n if (data.hasOwnProperty('Name')) {\n obj['Name'] = ApiClient.convertToType(data['Name'], 'String');\n }\n if (data.hasOwnProperty('Secret')) {\n obj['Secret'] = ApiClient.convertToType(data['Secret'], 'String');\n }\n if (data.hasOwnProperty('RedirectURIs')) {\n obj['RedirectURIs'] = ApiClient.convertToType(data['RedirectURIs'], ['String']);\n }\n if (data.hasOwnProperty('GrantTypes')) {\n obj['GrantTypes'] = ApiClient.convertToType(data['GrantTypes'], ['String']);\n }\n if (data.hasOwnProperty('ResponseTypes')) {\n obj['ResponseTypes'] = ApiClient.convertToType(data['ResponseTypes'], ['String']);\n }\n if (data.hasOwnProperty('Scope')) {\n obj['Scope'] = ApiClient.convertToType(data['Scope'], 'String');\n }\n if (data.hasOwnProperty('Audience')) {\n obj['Audience'] = ApiClient.convertToType(data['Audience'], ['String']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} ClientID\n */\n ClientID = undefined;\n /**\n * @member {String} Name\n */\n Name = undefined;\n /**\n * @member {String} Secret\n */\n Secret = undefined;\n /**\n * @member {Array.} RedirectURIs\n */\n RedirectURIs = undefined;\n /**\n * @member {Array.} GrantTypes\n */\n GrantTypes = undefined;\n /**\n * @member {Array.} ResponseTypes\n */\n ResponseTypes = undefined;\n /**\n * @member {String} Scope\n */\n Scope = undefined;\n /**\n * @member {Array.} Audience\n */\n Audience = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ClientConfig.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ConnectorBitbucketConfig.js b/lib/model/AuthOAuth2ConnectorBitbucketConfig.js new file mode 100644 index 0000000..7817e1b --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorBitbucketConfig.js @@ -0,0 +1,86 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ConnectorBitbucketConfig model module. +* @module model/AuthOAuth2ConnectorBitbucketConfig +* @version 2.0 +*/ +var AuthOAuth2ConnectorBitbucketConfig = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ConnectorBitbucketConfig. + * @alias module:model/AuthOAuth2ConnectorBitbucketConfig + * @class + */ + function AuthOAuth2ConnectorBitbucketConfig() { + _classCallCheck(this, AuthOAuth2ConnectorBitbucketConfig); + + _defineProperty(this, "clientID", undefined); + + _defineProperty(this, "clientSecret", undefined); + + _defineProperty(this, "redirectURI", undefined); + + _defineProperty(this, "teams", undefined); + } + /** + * Constructs a AuthOAuth2ConnectorBitbucketConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorBitbucketConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorBitbucketConfig} The populated AuthOAuth2ConnectorBitbucketConfig instance. + */ + + + _createClass(AuthOAuth2ConnectorBitbucketConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorBitbucketConfig(); + + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = _ApiClient["default"].convertToType(data['clientID'], 'String'); + } + + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = _ApiClient["default"].convertToType(data['clientSecret'], 'String'); + } + + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = _ApiClient["default"].convertToType(data['redirectURI'], 'String'); + } + + if (data.hasOwnProperty('teams')) { + obj['teams'] = _ApiClient["default"].convertToType(data['teams'], ['String']); + } + } + + return obj; + } + /** + * @member {String} clientID + */ + + }]); + + return AuthOAuth2ConnectorBitbucketConfig; +}(); + +exports["default"] = AuthOAuth2ConnectorBitbucketConfig; +//# sourceMappingURL=AuthOAuth2ConnectorBitbucketConfig.js.map diff --git a/lib/model/AuthOAuth2ConnectorBitbucketConfig.js.map b/lib/model/AuthOAuth2ConnectorBitbucketConfig.js.map new file mode 100644 index 0000000..46b754c --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorBitbucketConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ConnectorBitbucketConfig.js"],"names":["AuthOAuth2ConnectorBitbucketConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,kC;AACjB;AACJ;AACA;AACA;AACA;AAEI,gDAAc;AAAA;;AAAA,sCA6CHC,SA7CG;;AAAA,0CAiDCA,SAjDD;;AAAA,yCAqDAA,SArDA;;AAAA,mCAyDNA,SAzDM;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,kCAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,cAAD,CAA5B,EAA8C,QAA9C,CAAtB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,CAAC,QAAD,CAAvC,CAAf;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The AuthOAuth2ConnectorBitbucketConfig model module.\n* @module model/AuthOAuth2ConnectorBitbucketConfig\n* @version 2.0\n*/\nexport default class AuthOAuth2ConnectorBitbucketConfig {\n /**\n * Constructs a new AuthOAuth2ConnectorBitbucketConfig.\n * @alias module:model/AuthOAuth2ConnectorBitbucketConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ConnectorBitbucketConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ConnectorBitbucketConfig} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ConnectorBitbucketConfig} The populated AuthOAuth2ConnectorBitbucketConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ConnectorBitbucketConfig();\n\n \n \n \n\n if (data.hasOwnProperty('clientID')) {\n obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String');\n }\n if (data.hasOwnProperty('clientSecret')) {\n obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String');\n }\n if (data.hasOwnProperty('redirectURI')) {\n obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String');\n }\n if (data.hasOwnProperty('teams')) {\n obj['teams'] = ApiClient.convertToType(data['teams'], ['String']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} clientID\n */\n clientID = undefined;\n /**\n * @member {String} clientSecret\n */\n clientSecret = undefined;\n /**\n * @member {String} redirectURI\n */\n redirectURI = undefined;\n /**\n * @member {Array.} teams\n */\n teams = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ConnectorBitbucketConfig.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ConnectorCollection.js b/lib/model/AuthOAuth2ConnectorCollection.js new file mode 100644 index 0000000..87811e0 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorCollection.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthOAuth2ConnectorConfig = _interopRequireDefault(require("./AuthOAuth2ConnectorConfig")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ConnectorCollection model module. +* @module model/AuthOAuth2ConnectorCollection +* @version 2.0 +*/ +var AuthOAuth2ConnectorCollection = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ConnectorCollection. + * @alias module:model/AuthOAuth2ConnectorCollection + * @class + */ + function AuthOAuth2ConnectorCollection() { + _classCallCheck(this, AuthOAuth2ConnectorCollection); + + _defineProperty(this, "connectors", undefined); + } + /** + * Constructs a AuthOAuth2ConnectorCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorCollection} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorCollection} The populated AuthOAuth2ConnectorCollection instance. + */ + + + _createClass(AuthOAuth2ConnectorCollection, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorCollection(); + + if (data.hasOwnProperty('connectors')) { + obj['connectors'] = _ApiClient["default"].convertToType(data['connectors'], [_AuthOAuth2ConnectorConfig["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} connectors + */ + + }]); + + return AuthOAuth2ConnectorCollection; +}(); + +exports["default"] = AuthOAuth2ConnectorCollection; +//# sourceMappingURL=AuthOAuth2ConnectorCollection.js.map diff --git a/lib/model/AuthOAuth2ConnectorCollection.js.map b/lib/model/AuthOAuth2ConnectorCollection.js.map new file mode 100644 index 0000000..35e7720 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorCollection.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ConnectorCollection.js"],"names":["AuthOAuth2ConnectorCollection","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","AuthOAuth2ConnectorConfig"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,6B;AACjB;AACJ;AACA;AACA;AACA;AAEI,2CAAc;AAAA;;AAAA,wCAoCDC,SApCC;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,6BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,CAACK,qCAAD,CAA5C,CAApB;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport AuthOAuth2ConnectorConfig from './AuthOAuth2ConnectorConfig';\n\n\n\n\n\n/**\n* The AuthOAuth2ConnectorCollection model module.\n* @module model/AuthOAuth2ConnectorCollection\n* @version 2.0\n*/\nexport default class AuthOAuth2ConnectorCollection {\n /**\n * Constructs a new AuthOAuth2ConnectorCollection.\n * @alias module:model/AuthOAuth2ConnectorCollection\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ConnectorCollection from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ConnectorCollection} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ConnectorCollection} The populated AuthOAuth2ConnectorCollection instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ConnectorCollection();\n\n \n \n \n\n if (data.hasOwnProperty('connectors')) {\n obj['connectors'] = ApiClient.convertToType(data['connectors'], [AuthOAuth2ConnectorConfig]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} connectors\n */\n connectors = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ConnectorCollection.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ConnectorConfig.js b/lib/model/AuthOAuth2ConnectorConfig.js new file mode 100644 index 0000000..c8313e5 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorConfig.js @@ -0,0 +1,174 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthLdapServerConfig = _interopRequireDefault(require("./AuthLdapServerConfig")); + +var _AuthOAuth2ConnectorBitbucketConfig = _interopRequireDefault(require("./AuthOAuth2ConnectorBitbucketConfig")); + +var _AuthOAuth2ConnectorGithubConfig = _interopRequireDefault(require("./AuthOAuth2ConnectorGithubConfig")); + +var _AuthOAuth2ConnectorGitlabConfig = _interopRequireDefault(require("./AuthOAuth2ConnectorGitlabConfig")); + +var _AuthOAuth2ConnectorLinkedinConfig = _interopRequireDefault(require("./AuthOAuth2ConnectorLinkedinConfig")); + +var _AuthOAuth2ConnectorMicrosoftConfig = _interopRequireDefault(require("./AuthOAuth2ConnectorMicrosoftConfig")); + +var _AuthOAuth2ConnectorOAuthConfig = _interopRequireDefault(require("./AuthOAuth2ConnectorOAuthConfig")); + +var _AuthOAuth2ConnectorOIDCConfig = _interopRequireDefault(require("./AuthOAuth2ConnectorOIDCConfig")); + +var _AuthOAuth2ConnectorPydioConfig = _interopRequireDefault(require("./AuthOAuth2ConnectorPydioConfig")); + +var _AuthOAuth2ConnectorSAMLConfig = _interopRequireDefault(require("./AuthOAuth2ConnectorSAMLConfig")); + +var _AuthOAuth2MappingRule = _interopRequireDefault(require("./AuthOAuth2MappingRule")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ConnectorConfig model module. +* @module model/AuthOAuth2ConnectorConfig +* @version 2.0 +*/ +var AuthOAuth2ConnectorConfig = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ConnectorConfig. + * @alias module:model/AuthOAuth2ConnectorConfig + * @class + */ + function AuthOAuth2ConnectorConfig() { + _classCallCheck(this, AuthOAuth2ConnectorConfig); + + _defineProperty(this, "id", undefined); + + _defineProperty(this, "type", undefined); + + _defineProperty(this, "name", undefined); + + _defineProperty(this, "mappingRules", undefined); + + _defineProperty(this, "configpydio", undefined); + + _defineProperty(this, "configoidc", undefined); + + _defineProperty(this, "configsaml", undefined); + + _defineProperty(this, "configbitbucket", undefined); + + _defineProperty(this, "configgithub", undefined); + + _defineProperty(this, "configgitlab", undefined); + + _defineProperty(this, "configlinkedin", undefined); + + _defineProperty(this, "configmicrosoft", undefined); + + _defineProperty(this, "configldap", undefined); + + _defineProperty(this, "configoauth", undefined); + + _defineProperty(this, "sites", undefined); + } + /** + * Constructs a AuthOAuth2ConnectorConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorConfig} The populated AuthOAuth2ConnectorConfig instance. + */ + + + _createClass(AuthOAuth2ConnectorConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorConfig(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('mappingRules')) { + obj['mappingRules'] = _ApiClient["default"].convertToType(data['mappingRules'], [_AuthOAuth2MappingRule["default"]]); + } + + if (data.hasOwnProperty('configpydio')) { + obj['configpydio'] = _AuthOAuth2ConnectorPydioConfig["default"].constructFromObject(data['configpydio']); + } + + if (data.hasOwnProperty('configoidc')) { + obj['configoidc'] = _AuthOAuth2ConnectorOIDCConfig["default"].constructFromObject(data['configoidc']); + } + + if (data.hasOwnProperty('configsaml')) { + obj['configsaml'] = _AuthOAuth2ConnectorSAMLConfig["default"].constructFromObject(data['configsaml']); + } + + if (data.hasOwnProperty('configbitbucket')) { + obj['configbitbucket'] = _AuthOAuth2ConnectorBitbucketConfig["default"].constructFromObject(data['configbitbucket']); + } + + if (data.hasOwnProperty('configgithub')) { + obj['configgithub'] = _AuthOAuth2ConnectorGithubConfig["default"].constructFromObject(data['configgithub']); + } + + if (data.hasOwnProperty('configgitlab')) { + obj['configgitlab'] = _AuthOAuth2ConnectorGitlabConfig["default"].constructFromObject(data['configgitlab']); + } + + if (data.hasOwnProperty('configlinkedin')) { + obj['configlinkedin'] = _AuthOAuth2ConnectorLinkedinConfig["default"].constructFromObject(data['configlinkedin']); + } + + if (data.hasOwnProperty('configmicrosoft')) { + obj['configmicrosoft'] = _AuthOAuth2ConnectorMicrosoftConfig["default"].constructFromObject(data['configmicrosoft']); + } + + if (data.hasOwnProperty('configldap')) { + obj['configldap'] = _AuthLdapServerConfig["default"].constructFromObject(data['configldap']); + } + + if (data.hasOwnProperty('configoauth')) { + obj['configoauth'] = _AuthOAuth2ConnectorOAuthConfig["default"].constructFromObject(data['configoauth']); + } + + if (data.hasOwnProperty('sites')) { + obj['sites'] = _ApiClient["default"].convertToType(data['sites'], ['String']); + } + } + + return obj; + } + /** + * @member {String} id + */ + + }]); + + return AuthOAuth2ConnectorConfig; +}(); + +exports["default"] = AuthOAuth2ConnectorConfig; +//# sourceMappingURL=AuthOAuth2ConnectorConfig.js.map diff --git a/lib/model/AuthOAuth2ConnectorConfig.js.map b/lib/model/AuthOAuth2ConnectorConfig.js.map new file mode 100644 index 0000000..70c65fc --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ConnectorConfig.js"],"names":["AuthOAuth2ConnectorConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","AuthOAuth2MappingRule","AuthOAuth2ConnectorPydioConfig","constructFromObject","AuthOAuth2ConnectorOIDCConfig","AuthOAuth2ConnectorSAMLConfig","AuthOAuth2ConnectorBitbucketConfig","AuthOAuth2ConnectorGithubConfig","AuthOAuth2ConnectorGitlabConfig","AuthOAuth2ConnectorLinkedinConfig","AuthOAuth2ConnectorMicrosoftConfig","AuthLdapServerConfig","AuthOAuth2ConnectorOAuthConfig"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport AuthLdapServerConfig from './AuthLdapServerConfig';\nimport AuthOAuth2ConnectorBitbucketConfig from './AuthOAuth2ConnectorBitbucketConfig';\nimport AuthOAuth2ConnectorGithubConfig from './AuthOAuth2ConnectorGithubConfig';\nimport AuthOAuth2ConnectorGitlabConfig from './AuthOAuth2ConnectorGitlabConfig';\nimport AuthOAuth2ConnectorLinkedinConfig from './AuthOAuth2ConnectorLinkedinConfig';\nimport AuthOAuth2ConnectorMicrosoftConfig from './AuthOAuth2ConnectorMicrosoftConfig';\nimport AuthOAuth2ConnectorOAuthConfig from './AuthOAuth2ConnectorOAuthConfig';\nimport AuthOAuth2ConnectorOIDCConfig from './AuthOAuth2ConnectorOIDCConfig';\nimport AuthOAuth2ConnectorPydioConfig from './AuthOAuth2ConnectorPydioConfig';\nimport AuthOAuth2ConnectorSAMLConfig from './AuthOAuth2ConnectorSAMLConfig';\nimport AuthOAuth2MappingRule from './AuthOAuth2MappingRule';\n\n\n\n\n\n/**\n* The AuthOAuth2ConnectorConfig model module.\n* @module model/AuthOAuth2ConnectorConfig\n* @version 2.0\n*/\nexport default class AuthOAuth2ConnectorConfig {\n /**\n * Constructs a new AuthOAuth2ConnectorConfig.\n * @alias module:model/AuthOAuth2ConnectorConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ConnectorConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ConnectorConfig} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ConnectorConfig} The populated AuthOAuth2ConnectorConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ConnectorConfig();\n\n \n \n \n\n if (data.hasOwnProperty('id')) {\n obj['id'] = ApiClient.convertToType(data['id'], 'String');\n }\n if (data.hasOwnProperty('type')) {\n obj['type'] = ApiClient.convertToType(data['type'], 'String');\n }\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n if (data.hasOwnProperty('mappingRules')) {\n obj['mappingRules'] = ApiClient.convertToType(data['mappingRules'], [AuthOAuth2MappingRule]);\n }\n if (data.hasOwnProperty('configpydio')) {\n obj['configpydio'] = AuthOAuth2ConnectorPydioConfig.constructFromObject(data['configpydio']);\n }\n if (data.hasOwnProperty('configoidc')) {\n obj['configoidc'] = AuthOAuth2ConnectorOIDCConfig.constructFromObject(data['configoidc']);\n }\n if (data.hasOwnProperty('configsaml')) {\n obj['configsaml'] = AuthOAuth2ConnectorSAMLConfig.constructFromObject(data['configsaml']);\n }\n if (data.hasOwnProperty('configbitbucket')) {\n obj['configbitbucket'] = AuthOAuth2ConnectorBitbucketConfig.constructFromObject(data['configbitbucket']);\n }\n if (data.hasOwnProperty('configgithub')) {\n obj['configgithub'] = AuthOAuth2ConnectorGithubConfig.constructFromObject(data['configgithub']);\n }\n if (data.hasOwnProperty('configgitlab')) {\n obj['configgitlab'] = AuthOAuth2ConnectorGitlabConfig.constructFromObject(data['configgitlab']);\n }\n if (data.hasOwnProperty('configlinkedin')) {\n obj['configlinkedin'] = AuthOAuth2ConnectorLinkedinConfig.constructFromObject(data['configlinkedin']);\n }\n if (data.hasOwnProperty('configmicrosoft')) {\n obj['configmicrosoft'] = AuthOAuth2ConnectorMicrosoftConfig.constructFromObject(data['configmicrosoft']);\n }\n if (data.hasOwnProperty('configldap')) {\n obj['configldap'] = AuthLdapServerConfig.constructFromObject(data['configldap']);\n }\n if (data.hasOwnProperty('configoauth')) {\n obj['configoauth'] = AuthOAuth2ConnectorOAuthConfig.constructFromObject(data['configoauth']);\n }\n if (data.hasOwnProperty('sites')) {\n obj['sites'] = ApiClient.convertToType(data['sites'], ['String']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} id\n */\n id = undefined;\n /**\n * @member {String} type\n */\n type = undefined;\n /**\n * @member {String} name\n */\n name = undefined;\n /**\n * @member {Array.} mappingRules\n */\n mappingRules = undefined;\n /**\n * @member {module:model/AuthOAuth2ConnectorPydioConfig} configpydio\n */\n configpydio = undefined;\n /**\n * @member {module:model/AuthOAuth2ConnectorOIDCConfig} configoidc\n */\n configoidc = undefined;\n /**\n * @member {module:model/AuthOAuth2ConnectorSAMLConfig} configsaml\n */\n configsaml = undefined;\n /**\n * @member {module:model/AuthOAuth2ConnectorBitbucketConfig} configbitbucket\n */\n configbitbucket = undefined;\n /**\n * @member {module:model/AuthOAuth2ConnectorGithubConfig} configgithub\n */\n configgithub = undefined;\n /**\n * @member {module:model/AuthOAuth2ConnectorGitlabConfig} configgitlab\n */\n configgitlab = undefined;\n /**\n * @member {module:model/AuthOAuth2ConnectorLinkedinConfig} configlinkedin\n */\n configlinkedin = undefined;\n /**\n * @member {module:model/AuthOAuth2ConnectorMicrosoftConfig} configmicrosoft\n */\n configmicrosoft = undefined;\n /**\n * @member {module:model/AuthLdapServerConfig} configldap\n */\n configldap = undefined;\n /**\n * @member {module:model/AuthOAuth2ConnectorOAuthConfig} configoauth\n */\n configoauth = undefined;\n /**\n * @member {Array.} sites\n */\n sites = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ConnectorConfig.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ConnectorGithubConfig.js b/lib/model/AuthOAuth2ConnectorGithubConfig.js new file mode 100644 index 0000000..c709862 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorGithubConfig.js @@ -0,0 +1,118 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthOAuth2ConnectorGithubConfigOrg = _interopRequireDefault(require("./AuthOAuth2ConnectorGithubConfigOrg")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ConnectorGithubConfig model module. +* @module model/AuthOAuth2ConnectorGithubConfig +* @version 2.0 +*/ +var AuthOAuth2ConnectorGithubConfig = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ConnectorGithubConfig. + * @alias module:model/AuthOAuth2ConnectorGithubConfig + * @class + */ + function AuthOAuth2ConnectorGithubConfig() { + _classCallCheck(this, AuthOAuth2ConnectorGithubConfig); + + _defineProperty(this, "clientID", undefined); + + _defineProperty(this, "clientSecret", undefined); + + _defineProperty(this, "redirectURI", undefined); + + _defineProperty(this, "orgs", undefined); + + _defineProperty(this, "loadAllGroups", undefined); + + _defineProperty(this, "teamNameField", undefined); + + _defineProperty(this, "useLoginAsID", undefined); + + _defineProperty(this, "hostName", undefined); + + _defineProperty(this, "rootCA", undefined); + } + /** + * Constructs a AuthOAuth2ConnectorGithubConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorGithubConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorGithubConfig} The populated AuthOAuth2ConnectorGithubConfig instance. + */ + + + _createClass(AuthOAuth2ConnectorGithubConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorGithubConfig(); + + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = _ApiClient["default"].convertToType(data['clientID'], 'String'); + } + + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = _ApiClient["default"].convertToType(data['clientSecret'], 'String'); + } + + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = _ApiClient["default"].convertToType(data['redirectURI'], 'String'); + } + + if (data.hasOwnProperty('orgs')) { + obj['orgs'] = _ApiClient["default"].convertToType(data['orgs'], [_AuthOAuth2ConnectorGithubConfigOrg["default"]]); + } + + if (data.hasOwnProperty('loadAllGroups')) { + obj['loadAllGroups'] = _ApiClient["default"].convertToType(data['loadAllGroups'], 'Boolean'); + } + + if (data.hasOwnProperty('teamNameField')) { + obj['teamNameField'] = _ApiClient["default"].convertToType(data['teamNameField'], 'String'); + } + + if (data.hasOwnProperty('useLoginAsID')) { + obj['useLoginAsID'] = _ApiClient["default"].convertToType(data['useLoginAsID'], 'Boolean'); + } + + if (data.hasOwnProperty('hostName')) { + obj['hostName'] = _ApiClient["default"].convertToType(data['hostName'], 'String'); + } + + if (data.hasOwnProperty('rootCA')) { + obj['rootCA'] = _ApiClient["default"].convertToType(data['rootCA'], 'String'); + } + } + + return obj; + } + /** + * @member {String} clientID + */ + + }]); + + return AuthOAuth2ConnectorGithubConfig; +}(); + +exports["default"] = AuthOAuth2ConnectorGithubConfig; +//# sourceMappingURL=AuthOAuth2ConnectorGithubConfig.js.map diff --git a/lib/model/AuthOAuth2ConnectorGithubConfig.js.map b/lib/model/AuthOAuth2ConnectorGithubConfig.js.map new file mode 100644 index 0000000..1b8808f --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorGithubConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ConnectorGithubConfig.js"],"names":["AuthOAuth2ConnectorGithubConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","AuthOAuth2ConnectorGithubConfigOrg"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,+B;AACjB;AACJ;AACA;AACA;AACA;AAEI,6CAAc;AAAA;;AAAA,sCA4DHC,SA5DG;;AAAA,0CAgECA,SAhED;;AAAA,yCAoEAA,SApEA;;AAAA,kCAwEPA,SAxEO;;AAAA,2CA4EEA,SA5EF;;AAAA,2CAgFEA,SAhFF;;AAAA,0CAoFCA,SApFD;;AAAA,sCAwFHA,SAxFG;;AAAA,oCA4FLA,SA5FK;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,+BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,cAAD,CAA5B,EAA8C,QAA9C,CAAtB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,CAACK,8CAAD,CAAtC,CAAd;AACH;;AACD,YAAIL,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,eAAD,CAA5B,EAA+C,SAA/C,CAAvB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,eAAD,CAA5B,EAA+C,QAA/C,CAAvB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,cAAD,CAA5B,EAA8C,SAA9C,CAAtB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport AuthOAuth2ConnectorGithubConfigOrg from './AuthOAuth2ConnectorGithubConfigOrg';\n\n\n\n\n\n/**\n* The AuthOAuth2ConnectorGithubConfig model module.\n* @module model/AuthOAuth2ConnectorGithubConfig\n* @version 2.0\n*/\nexport default class AuthOAuth2ConnectorGithubConfig {\n /**\n * Constructs a new AuthOAuth2ConnectorGithubConfig.\n * @alias module:model/AuthOAuth2ConnectorGithubConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ConnectorGithubConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ConnectorGithubConfig} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ConnectorGithubConfig} The populated AuthOAuth2ConnectorGithubConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ConnectorGithubConfig();\n\n \n \n \n\n if (data.hasOwnProperty('clientID')) {\n obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String');\n }\n if (data.hasOwnProperty('clientSecret')) {\n obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String');\n }\n if (data.hasOwnProperty('redirectURI')) {\n obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String');\n }\n if (data.hasOwnProperty('orgs')) {\n obj['orgs'] = ApiClient.convertToType(data['orgs'], [AuthOAuth2ConnectorGithubConfigOrg]);\n }\n if (data.hasOwnProperty('loadAllGroups')) {\n obj['loadAllGroups'] = ApiClient.convertToType(data['loadAllGroups'], 'Boolean');\n }\n if (data.hasOwnProperty('teamNameField')) {\n obj['teamNameField'] = ApiClient.convertToType(data['teamNameField'], 'String');\n }\n if (data.hasOwnProperty('useLoginAsID')) {\n obj['useLoginAsID'] = ApiClient.convertToType(data['useLoginAsID'], 'Boolean');\n }\n if (data.hasOwnProperty('hostName')) {\n obj['hostName'] = ApiClient.convertToType(data['hostName'], 'String');\n }\n if (data.hasOwnProperty('rootCA')) {\n obj['rootCA'] = ApiClient.convertToType(data['rootCA'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} clientID\n */\n clientID = undefined;\n /**\n * @member {String} clientSecret\n */\n clientSecret = undefined;\n /**\n * @member {String} redirectURI\n */\n redirectURI = undefined;\n /**\n * @member {Array.} orgs\n */\n orgs = undefined;\n /**\n * @member {Boolean} loadAllGroups\n */\n loadAllGroups = undefined;\n /**\n * @member {String} teamNameField\n */\n teamNameField = undefined;\n /**\n * @member {Boolean} useLoginAsID\n */\n useLoginAsID = undefined;\n /**\n * @member {String} hostName\n */\n hostName = undefined;\n /**\n * @member {String} rootCA\n */\n rootCA = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ConnectorGithubConfig.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ConnectorGithubConfigOrg.js b/lib/model/AuthOAuth2ConnectorGithubConfigOrg.js new file mode 100644 index 0000000..fe434c8 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorGithubConfigOrg.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ConnectorGithubConfigOrg model module. +* @module model/AuthOAuth2ConnectorGithubConfigOrg +* @version 2.0 +*/ +var AuthOAuth2ConnectorGithubConfigOrg = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ConnectorGithubConfigOrg. + * @alias module:model/AuthOAuth2ConnectorGithubConfigOrg + * @class + */ + function AuthOAuth2ConnectorGithubConfigOrg() { + _classCallCheck(this, AuthOAuth2ConnectorGithubConfigOrg); + + _defineProperty(this, "name", undefined); + + _defineProperty(this, "teams", undefined); + } + /** + * Constructs a AuthOAuth2ConnectorGithubConfigOrg from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorGithubConfigOrg} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorGithubConfigOrg} The populated AuthOAuth2ConnectorGithubConfigOrg instance. + */ + + + _createClass(AuthOAuth2ConnectorGithubConfigOrg, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorGithubConfigOrg(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('teams')) { + obj['teams'] = _ApiClient["default"].convertToType(data['teams'], ['String']); + } + } + + return obj; + } + /** + * @member {String} name + */ + + }]); + + return AuthOAuth2ConnectorGithubConfigOrg; +}(); + +exports["default"] = AuthOAuth2ConnectorGithubConfigOrg; +//# sourceMappingURL=AuthOAuth2ConnectorGithubConfigOrg.js.map diff --git a/lib/model/AuthOAuth2ConnectorGithubConfigOrg.js.map b/lib/model/AuthOAuth2ConnectorGithubConfigOrg.js.map new file mode 100644 index 0000000..9c33e4b --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorGithubConfigOrg.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ConnectorGithubConfigOrg.js"],"names":["AuthOAuth2ConnectorGithubConfigOrg","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,kC;AACjB;AACJ;AACA;AACA;AACA;AAEI,gDAAc;AAAA;;AAAA,kCAuCPC,SAvCO;;AAAA,mCA2CNA,SA3CM;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,kCAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,CAAC,QAAD,CAAvC,CAAf;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The AuthOAuth2ConnectorGithubConfigOrg model module.\n* @module model/AuthOAuth2ConnectorGithubConfigOrg\n* @version 2.0\n*/\nexport default class AuthOAuth2ConnectorGithubConfigOrg {\n /**\n * Constructs a new AuthOAuth2ConnectorGithubConfigOrg.\n * @alias module:model/AuthOAuth2ConnectorGithubConfigOrg\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ConnectorGithubConfigOrg from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ConnectorGithubConfigOrg} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ConnectorGithubConfigOrg} The populated AuthOAuth2ConnectorGithubConfigOrg instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ConnectorGithubConfigOrg();\n\n \n \n \n\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n if (data.hasOwnProperty('teams')) {\n obj['teams'] = ApiClient.convertToType(data['teams'], ['String']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} name\n */\n name = undefined;\n /**\n * @member {Array.} teams\n */\n teams = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ConnectorGithubConfigOrg.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ConnectorGitlabConfig.js b/lib/model/AuthOAuth2ConnectorGitlabConfig.js new file mode 100644 index 0000000..64be64c --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorGitlabConfig.js @@ -0,0 +1,98 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ConnectorGitlabConfig model module. +* @module model/AuthOAuth2ConnectorGitlabConfig +* @version 2.0 +*/ +var AuthOAuth2ConnectorGitlabConfig = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ConnectorGitlabConfig. + * @alias module:model/AuthOAuth2ConnectorGitlabConfig + * @class + */ + function AuthOAuth2ConnectorGitlabConfig() { + _classCallCheck(this, AuthOAuth2ConnectorGitlabConfig); + + _defineProperty(this, "baseURL", undefined); + + _defineProperty(this, "clientID", undefined); + + _defineProperty(this, "clientSecret", undefined); + + _defineProperty(this, "redirectURI", undefined); + + _defineProperty(this, "groups", undefined); + + _defineProperty(this, "userLoginAsID", undefined); + } + /** + * Constructs a AuthOAuth2ConnectorGitlabConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorGitlabConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorGitlabConfig} The populated AuthOAuth2ConnectorGitlabConfig instance. + */ + + + _createClass(AuthOAuth2ConnectorGitlabConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorGitlabConfig(); + + if (data.hasOwnProperty('baseURL')) { + obj['baseURL'] = _ApiClient["default"].convertToType(data['baseURL'], 'String'); + } + + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = _ApiClient["default"].convertToType(data['clientID'], 'String'); + } + + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = _ApiClient["default"].convertToType(data['clientSecret'], 'String'); + } + + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = _ApiClient["default"].convertToType(data['redirectURI'], 'String'); + } + + if (data.hasOwnProperty('groups')) { + obj['groups'] = _ApiClient["default"].convertToType(data['groups'], ['String']); + } + + if (data.hasOwnProperty('userLoginAsID')) { + obj['userLoginAsID'] = _ApiClient["default"].convertToType(data['userLoginAsID'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {String} baseURL + */ + + }]); + + return AuthOAuth2ConnectorGitlabConfig; +}(); + +exports["default"] = AuthOAuth2ConnectorGitlabConfig; +//# sourceMappingURL=AuthOAuth2ConnectorGitlabConfig.js.map diff --git a/lib/model/AuthOAuth2ConnectorGitlabConfig.js.map b/lib/model/AuthOAuth2ConnectorGitlabConfig.js.map new file mode 100644 index 0000000..39d0513 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorGitlabConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ConnectorGitlabConfig.js"],"names":["AuthOAuth2ConnectorGitlabConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,+B;AACjB;AACJ;AACA;AACA;AACA;AAEI,6CAAc;AAAA;;AAAA,qCAmDJC,SAnDI;;AAAA,sCAuDHA,SAvDG;;AAAA,0CA2DCA,SA3DD;;AAAA,yCA+DAA,SA/DA;;AAAA,oCAmELA,SAnEK;;AAAA,2CAuEEA,SAvEF;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,+BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,QAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,cAAD,CAA5B,EAA8C,QAA9C,CAAtB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,CAAC,QAAD,CAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,eAAD,CAA5B,EAA+C,SAA/C,CAAvB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The AuthOAuth2ConnectorGitlabConfig model module.\n* @module model/AuthOAuth2ConnectorGitlabConfig\n* @version 2.0\n*/\nexport default class AuthOAuth2ConnectorGitlabConfig {\n /**\n * Constructs a new AuthOAuth2ConnectorGitlabConfig.\n * @alias module:model/AuthOAuth2ConnectorGitlabConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ConnectorGitlabConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ConnectorGitlabConfig} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ConnectorGitlabConfig} The populated AuthOAuth2ConnectorGitlabConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ConnectorGitlabConfig();\n\n \n \n \n\n if (data.hasOwnProperty('baseURL')) {\n obj['baseURL'] = ApiClient.convertToType(data['baseURL'], 'String');\n }\n if (data.hasOwnProperty('clientID')) {\n obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String');\n }\n if (data.hasOwnProperty('clientSecret')) {\n obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String');\n }\n if (data.hasOwnProperty('redirectURI')) {\n obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String');\n }\n if (data.hasOwnProperty('groups')) {\n obj['groups'] = ApiClient.convertToType(data['groups'], ['String']);\n }\n if (data.hasOwnProperty('userLoginAsID')) {\n obj['userLoginAsID'] = ApiClient.convertToType(data['userLoginAsID'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} baseURL\n */\n baseURL = undefined;\n /**\n * @member {String} clientID\n */\n clientID = undefined;\n /**\n * @member {String} clientSecret\n */\n clientSecret = undefined;\n /**\n * @member {String} redirectURI\n */\n redirectURI = undefined;\n /**\n * @member {Array.} groups\n */\n groups = undefined;\n /**\n * @member {Boolean} userLoginAsID\n */\n userLoginAsID = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ConnectorGitlabConfig.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ConnectorLinkedinConfig.js b/lib/model/AuthOAuth2ConnectorLinkedinConfig.js new file mode 100644 index 0000000..387a937 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorLinkedinConfig.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ConnectorLinkedinConfig model module. +* @module model/AuthOAuth2ConnectorLinkedinConfig +* @version 2.0 +*/ +var AuthOAuth2ConnectorLinkedinConfig = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ConnectorLinkedinConfig. + * @alias module:model/AuthOAuth2ConnectorLinkedinConfig + * @class + */ + function AuthOAuth2ConnectorLinkedinConfig() { + _classCallCheck(this, AuthOAuth2ConnectorLinkedinConfig); + + _defineProperty(this, "clientID", undefined); + + _defineProperty(this, "clientSecret", undefined); + + _defineProperty(this, "redirectURI", undefined); + } + /** + * Constructs a AuthOAuth2ConnectorLinkedinConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorLinkedinConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorLinkedinConfig} The populated AuthOAuth2ConnectorLinkedinConfig instance. + */ + + + _createClass(AuthOAuth2ConnectorLinkedinConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorLinkedinConfig(); + + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = _ApiClient["default"].convertToType(data['clientID'], 'String'); + } + + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = _ApiClient["default"].convertToType(data['clientSecret'], 'String'); + } + + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = _ApiClient["default"].convertToType(data['redirectURI'], 'String'); + } + } + + return obj; + } + /** + * @member {String} clientID + */ + + }]); + + return AuthOAuth2ConnectorLinkedinConfig; +}(); + +exports["default"] = AuthOAuth2ConnectorLinkedinConfig; +//# sourceMappingURL=AuthOAuth2ConnectorLinkedinConfig.js.map diff --git a/lib/model/AuthOAuth2ConnectorLinkedinConfig.js.map b/lib/model/AuthOAuth2ConnectorLinkedinConfig.js.map new file mode 100644 index 0000000..281caca --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorLinkedinConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ConnectorLinkedinConfig.js"],"names":["AuthOAuth2ConnectorLinkedinConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,iC;AACjB;AACJ;AACA;AACA;AACA;AAEI,+CAAc;AAAA;;AAAA,sCA0CHC,SA1CG;;AAAA,0CA8CCA,SA9CD;;AAAA,yCAkDAA,SAlDA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,iCAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,cAAD,CAA5B,EAA8C,QAA9C,CAAtB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The AuthOAuth2ConnectorLinkedinConfig model module.\n* @module model/AuthOAuth2ConnectorLinkedinConfig\n* @version 2.0\n*/\nexport default class AuthOAuth2ConnectorLinkedinConfig {\n /**\n * Constructs a new AuthOAuth2ConnectorLinkedinConfig.\n * @alias module:model/AuthOAuth2ConnectorLinkedinConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ConnectorLinkedinConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ConnectorLinkedinConfig} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ConnectorLinkedinConfig} The populated AuthOAuth2ConnectorLinkedinConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ConnectorLinkedinConfig();\n\n \n \n \n\n if (data.hasOwnProperty('clientID')) {\n obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String');\n }\n if (data.hasOwnProperty('clientSecret')) {\n obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String');\n }\n if (data.hasOwnProperty('redirectURI')) {\n obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} clientID\n */\n clientID = undefined;\n /**\n * @member {String} clientSecret\n */\n clientSecret = undefined;\n /**\n * @member {String} redirectURI\n */\n redirectURI = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ConnectorLinkedinConfig.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ConnectorMicrosoftConfig.js b/lib/model/AuthOAuth2ConnectorMicrosoftConfig.js new file mode 100644 index 0000000..9ad5d28 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorMicrosoftConfig.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ConnectorMicrosoftConfig model module. +* @module model/AuthOAuth2ConnectorMicrosoftConfig +* @version 2.0 +*/ +var AuthOAuth2ConnectorMicrosoftConfig = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ConnectorMicrosoftConfig. + * @alias module:model/AuthOAuth2ConnectorMicrosoftConfig + * @class + */ + function AuthOAuth2ConnectorMicrosoftConfig() { + _classCallCheck(this, AuthOAuth2ConnectorMicrosoftConfig); + + _defineProperty(this, "clientID", undefined); + + _defineProperty(this, "clientSecret", undefined); + + _defineProperty(this, "redirectURI", undefined); + + _defineProperty(this, "tenant", undefined); + + _defineProperty(this, "groups", undefined); + + _defineProperty(this, "onlySecurityGroups", undefined); + + _defineProperty(this, "groupNameFormat", undefined); + + _defineProperty(this, "useGroupsAsWhitelist", undefined); + } + /** + * Constructs a AuthOAuth2ConnectorMicrosoftConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorMicrosoftConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorMicrosoftConfig} The populated AuthOAuth2ConnectorMicrosoftConfig instance. + */ + + + _createClass(AuthOAuth2ConnectorMicrosoftConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorMicrosoftConfig(); + + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = _ApiClient["default"].convertToType(data['clientID'], 'String'); + } + + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = _ApiClient["default"].convertToType(data['clientSecret'], 'String'); + } + + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = _ApiClient["default"].convertToType(data['redirectURI'], 'String'); + } + + if (data.hasOwnProperty('tenant')) { + obj['tenant'] = _ApiClient["default"].convertToType(data['tenant'], 'String'); + } + + if (data.hasOwnProperty('groups')) { + obj['groups'] = _ApiClient["default"].convertToType(data['groups'], ['String']); + } + + if (data.hasOwnProperty('onlySecurityGroups')) { + obj['onlySecurityGroups'] = _ApiClient["default"].convertToType(data['onlySecurityGroups'], 'Boolean'); + } + + if (data.hasOwnProperty('groupNameFormat')) { + obj['groupNameFormat'] = _ApiClient["default"].convertToType(data['groupNameFormat'], 'String'); + } + + if (data.hasOwnProperty('useGroupsAsWhitelist')) { + obj['useGroupsAsWhitelist'] = _ApiClient["default"].convertToType(data['useGroupsAsWhitelist'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {String} clientID + */ + + }]); + + return AuthOAuth2ConnectorMicrosoftConfig; +}(); + +exports["default"] = AuthOAuth2ConnectorMicrosoftConfig; +//# sourceMappingURL=AuthOAuth2ConnectorMicrosoftConfig.js.map diff --git a/lib/model/AuthOAuth2ConnectorMicrosoftConfig.js.map b/lib/model/AuthOAuth2ConnectorMicrosoftConfig.js.map new file mode 100644 index 0000000..691446d --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorMicrosoftConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ConnectorMicrosoftConfig.js"],"names":["AuthOAuth2ConnectorMicrosoftConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,kC;AACjB;AACJ;AACA;AACA;AACA;AAEI,gDAAc;AAAA;;AAAA,sCAyDHC,SAzDG;;AAAA,0CA6DCA,SA7DD;;AAAA,yCAiEAA,SAjEA;;AAAA,oCAqELA,SArEK;;AAAA,oCAyELA,SAzEK;;AAAA,gDA6EOA,SA7EP;;AAAA,6CAiFIA,SAjFJ;;AAAA,kDAqFSA,SArFT;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,kCAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,cAAD,CAA5B,EAA8C,QAA9C,CAAtB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,CAAC,QAAD,CAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,oBAApB,CAAJ,EAA+C;AAC3CD,UAAAA,GAAG,CAAC,oBAAD,CAAH,GAA4BE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,oBAAD,CAA5B,EAAoD,SAApD,CAA5B;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,iBAApB,CAAJ,EAA4C;AACxCD,UAAAA,GAAG,CAAC,iBAAD,CAAH,GAAyBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,iBAAD,CAA5B,EAAiD,QAAjD,CAAzB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,sBAApB,CAAJ,EAAiD;AAC7CD,UAAAA,GAAG,CAAC,sBAAD,CAAH,GAA8BE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,sBAAD,CAA5B,EAAsD,SAAtD,CAA9B;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The AuthOAuth2ConnectorMicrosoftConfig model module.\n* @module model/AuthOAuth2ConnectorMicrosoftConfig\n* @version 2.0\n*/\nexport default class AuthOAuth2ConnectorMicrosoftConfig {\n /**\n * Constructs a new AuthOAuth2ConnectorMicrosoftConfig.\n * @alias module:model/AuthOAuth2ConnectorMicrosoftConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ConnectorMicrosoftConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ConnectorMicrosoftConfig} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ConnectorMicrosoftConfig} The populated AuthOAuth2ConnectorMicrosoftConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ConnectorMicrosoftConfig();\n\n \n \n \n\n if (data.hasOwnProperty('clientID')) {\n obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String');\n }\n if (data.hasOwnProperty('clientSecret')) {\n obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String');\n }\n if (data.hasOwnProperty('redirectURI')) {\n obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String');\n }\n if (data.hasOwnProperty('tenant')) {\n obj['tenant'] = ApiClient.convertToType(data['tenant'], 'String');\n }\n if (data.hasOwnProperty('groups')) {\n obj['groups'] = ApiClient.convertToType(data['groups'], ['String']);\n }\n if (data.hasOwnProperty('onlySecurityGroups')) {\n obj['onlySecurityGroups'] = ApiClient.convertToType(data['onlySecurityGroups'], 'Boolean');\n }\n if (data.hasOwnProperty('groupNameFormat')) {\n obj['groupNameFormat'] = ApiClient.convertToType(data['groupNameFormat'], 'String');\n }\n if (data.hasOwnProperty('useGroupsAsWhitelist')) {\n obj['useGroupsAsWhitelist'] = ApiClient.convertToType(data['useGroupsAsWhitelist'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} clientID\n */\n clientID = undefined;\n /**\n * @member {String} clientSecret\n */\n clientSecret = undefined;\n /**\n * @member {String} redirectURI\n */\n redirectURI = undefined;\n /**\n * @member {String} tenant\n */\n tenant = undefined;\n /**\n * @member {Array.} groups\n */\n groups = undefined;\n /**\n * @member {Boolean} onlySecurityGroups\n */\n onlySecurityGroups = undefined;\n /**\n * @member {String} groupNameFormat\n */\n groupNameFormat = undefined;\n /**\n * @member {Boolean} useGroupsAsWhitelist\n */\n useGroupsAsWhitelist = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ConnectorMicrosoftConfig.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ConnectorOAuthConfig.js b/lib/model/AuthOAuth2ConnectorOAuthConfig.js new file mode 100644 index 0000000..19f9af1 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorOAuthConfig.js @@ -0,0 +1,122 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ConnectorOAuthConfig model module. +* @module model/AuthOAuth2ConnectorOAuthConfig +* @version 2.0 +*/ +var AuthOAuth2ConnectorOAuthConfig = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ConnectorOAuthConfig. + * @alias module:model/AuthOAuth2ConnectorOAuthConfig + * @class + */ + function AuthOAuth2ConnectorOAuthConfig() { + _classCallCheck(this, AuthOAuth2ConnectorOAuthConfig); + + _defineProperty(this, "baseURL", undefined); + + _defineProperty(this, "authorizeURL", undefined); + + _defineProperty(this, "tokenURL", undefined); + + _defineProperty(this, "userInfoURL", undefined); + + _defineProperty(this, "clientID", undefined); + + _defineProperty(this, "clientSecret", undefined); + + _defineProperty(this, "redirectURI", undefined); + + _defineProperty(this, "groups", undefined); + + _defineProperty(this, "useLoginAsID", undefined); + + _defineProperty(this, "useBrokenAuthHeaderProvider", undefined); + } + /** + * Constructs a AuthOAuth2ConnectorOAuthConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorOAuthConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorOAuthConfig} The populated AuthOAuth2ConnectorOAuthConfig instance. + */ + + + _createClass(AuthOAuth2ConnectorOAuthConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorOAuthConfig(); + + if (data.hasOwnProperty('baseURL')) { + obj['baseURL'] = _ApiClient["default"].convertToType(data['baseURL'], 'String'); + } + + if (data.hasOwnProperty('authorizeURL')) { + obj['authorizeURL'] = _ApiClient["default"].convertToType(data['authorizeURL'], 'String'); + } + + if (data.hasOwnProperty('tokenURL')) { + obj['tokenURL'] = _ApiClient["default"].convertToType(data['tokenURL'], 'String'); + } + + if (data.hasOwnProperty('userInfoURL')) { + obj['userInfoURL'] = _ApiClient["default"].convertToType(data['userInfoURL'], 'String'); + } + + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = _ApiClient["default"].convertToType(data['clientID'], 'String'); + } + + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = _ApiClient["default"].convertToType(data['clientSecret'], 'String'); + } + + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = _ApiClient["default"].convertToType(data['redirectURI'], 'String'); + } + + if (data.hasOwnProperty('groups')) { + obj['groups'] = _ApiClient["default"].convertToType(data['groups'], ['String']); + } + + if (data.hasOwnProperty('useLoginAsID')) { + obj['useLoginAsID'] = _ApiClient["default"].convertToType(data['useLoginAsID'], 'Boolean'); + } + + if (data.hasOwnProperty('useBrokenAuthHeaderProvider')) { + obj['useBrokenAuthHeaderProvider'] = _ApiClient["default"].convertToType(data['useBrokenAuthHeaderProvider'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {String} baseURL + */ + + }]); + + return AuthOAuth2ConnectorOAuthConfig; +}(); + +exports["default"] = AuthOAuth2ConnectorOAuthConfig; +//# sourceMappingURL=AuthOAuth2ConnectorOAuthConfig.js.map diff --git a/lib/model/AuthOAuth2ConnectorOAuthConfig.js.map b/lib/model/AuthOAuth2ConnectorOAuthConfig.js.map new file mode 100644 index 0000000..95cebaf --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorOAuthConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ConnectorOAuthConfig.js"],"names":["AuthOAuth2ConnectorOAuthConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The AuthOAuth2ConnectorOAuthConfig model module.\n* @module model/AuthOAuth2ConnectorOAuthConfig\n* @version 2.0\n*/\nexport default class AuthOAuth2ConnectorOAuthConfig {\n /**\n * Constructs a new AuthOAuth2ConnectorOAuthConfig.\n * @alias module:model/AuthOAuth2ConnectorOAuthConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ConnectorOAuthConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ConnectorOAuthConfig} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ConnectorOAuthConfig} The populated AuthOAuth2ConnectorOAuthConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ConnectorOAuthConfig();\n\n \n \n \n\n if (data.hasOwnProperty('baseURL')) {\n obj['baseURL'] = ApiClient.convertToType(data['baseURL'], 'String');\n }\n if (data.hasOwnProperty('authorizeURL')) {\n obj['authorizeURL'] = ApiClient.convertToType(data['authorizeURL'], 'String');\n }\n if (data.hasOwnProperty('tokenURL')) {\n obj['tokenURL'] = ApiClient.convertToType(data['tokenURL'], 'String');\n }\n if (data.hasOwnProperty('userInfoURL')) {\n obj['userInfoURL'] = ApiClient.convertToType(data['userInfoURL'], 'String');\n }\n if (data.hasOwnProperty('clientID')) {\n obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String');\n }\n if (data.hasOwnProperty('clientSecret')) {\n obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String');\n }\n if (data.hasOwnProperty('redirectURI')) {\n obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String');\n }\n if (data.hasOwnProperty('groups')) {\n obj['groups'] = ApiClient.convertToType(data['groups'], ['String']);\n }\n if (data.hasOwnProperty('useLoginAsID')) {\n obj['useLoginAsID'] = ApiClient.convertToType(data['useLoginAsID'], 'Boolean');\n }\n if (data.hasOwnProperty('useBrokenAuthHeaderProvider')) {\n obj['useBrokenAuthHeaderProvider'] = ApiClient.convertToType(data['useBrokenAuthHeaderProvider'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} baseURL\n */\n baseURL = undefined;\n /**\n * @member {String} authorizeURL\n */\n authorizeURL = undefined;\n /**\n * @member {String} tokenURL\n */\n tokenURL = undefined;\n /**\n * @member {String} userInfoURL\n */\n userInfoURL = undefined;\n /**\n * @member {String} clientID\n */\n clientID = undefined;\n /**\n * @member {String} clientSecret\n */\n clientSecret = undefined;\n /**\n * @member {String} redirectURI\n */\n redirectURI = undefined;\n /**\n * @member {Array.} groups\n */\n groups = undefined;\n /**\n * @member {Boolean} useLoginAsID\n */\n useLoginAsID = undefined;\n /**\n * @member {Boolean} useBrokenAuthHeaderProvider\n */\n useBrokenAuthHeaderProvider = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ConnectorOAuthConfig.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ConnectorOIDCConfig.js b/lib/model/AuthOAuth2ConnectorOIDCConfig.js new file mode 100644 index 0000000..6c90d20 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorOIDCConfig.js @@ -0,0 +1,128 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ConnectorOIDCConfig model module. +* @module model/AuthOAuth2ConnectorOIDCConfig +* @version 2.0 +*/ +var AuthOAuth2ConnectorOIDCConfig = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ConnectorOIDCConfig. + * @alias module:model/AuthOAuth2ConnectorOIDCConfig + * @class + */ + function AuthOAuth2ConnectorOIDCConfig() { + _classCallCheck(this, AuthOAuth2ConnectorOIDCConfig); + + _defineProperty(this, "issuer", undefined); + + _defineProperty(this, "clientID", undefined); + + _defineProperty(this, "clientSecret", undefined); + + _defineProperty(this, "redirectURI", undefined); + + _defineProperty(this, "basicAuthUnsupported", undefined); + + _defineProperty(this, "hostedDomains", undefined); + + _defineProperty(this, "scopes", undefined); + + _defineProperty(this, "insecureSkipEmailVerified", undefined); + + _defineProperty(this, "getUserInfo", undefined); + + _defineProperty(this, "userIDKey", undefined); + + _defineProperty(this, "userNameKey", undefined); + } + /** + * Constructs a AuthOAuth2ConnectorOIDCConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorOIDCConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorOIDCConfig} The populated AuthOAuth2ConnectorOIDCConfig instance. + */ + + + _createClass(AuthOAuth2ConnectorOIDCConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorOIDCConfig(); + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = _ApiClient["default"].convertToType(data['clientID'], 'String'); + } + + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = _ApiClient["default"].convertToType(data['clientSecret'], 'String'); + } + + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = _ApiClient["default"].convertToType(data['redirectURI'], 'String'); + } + + if (data.hasOwnProperty('basicAuthUnsupported')) { + obj['basicAuthUnsupported'] = _ApiClient["default"].convertToType(data['basicAuthUnsupported'], 'Boolean'); + } + + if (data.hasOwnProperty('hostedDomains')) { + obj['hostedDomains'] = _ApiClient["default"].convertToType(data['hostedDomains'], ['String']); + } + + if (data.hasOwnProperty('scopes')) { + obj['scopes'] = _ApiClient["default"].convertToType(data['scopes'], ['String']); + } + + if (data.hasOwnProperty('insecureSkipEmailVerified')) { + obj['insecureSkipEmailVerified'] = _ApiClient["default"].convertToType(data['insecureSkipEmailVerified'], 'Boolean'); + } + + if (data.hasOwnProperty('getUserInfo')) { + obj['getUserInfo'] = _ApiClient["default"].convertToType(data['getUserInfo'], 'Boolean'); + } + + if (data.hasOwnProperty('userIDKey')) { + obj['userIDKey'] = _ApiClient["default"].convertToType(data['userIDKey'], 'String'); + } + + if (data.hasOwnProperty('userNameKey')) { + obj['userNameKey'] = _ApiClient["default"].convertToType(data['userNameKey'], 'String'); + } + } + + return obj; + } + /** + * @member {String} issuer + */ + + }]); + + return AuthOAuth2ConnectorOIDCConfig; +}(); + +exports["default"] = AuthOAuth2ConnectorOIDCConfig; +//# sourceMappingURL=AuthOAuth2ConnectorOIDCConfig.js.map diff --git a/lib/model/AuthOAuth2ConnectorOIDCConfig.js.map b/lib/model/AuthOAuth2ConnectorOIDCConfig.js.map new file mode 100644 index 0000000..cf7e6d6 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorOIDCConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ConnectorOIDCConfig.js"],"names":["AuthOAuth2ConnectorOIDCConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The AuthOAuth2ConnectorOIDCConfig model module.\n* @module model/AuthOAuth2ConnectorOIDCConfig\n* @version 2.0\n*/\nexport default class AuthOAuth2ConnectorOIDCConfig {\n /**\n * Constructs a new AuthOAuth2ConnectorOIDCConfig.\n * @alias module:model/AuthOAuth2ConnectorOIDCConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ConnectorOIDCConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ConnectorOIDCConfig} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ConnectorOIDCConfig} The populated AuthOAuth2ConnectorOIDCConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ConnectorOIDCConfig();\n\n \n \n \n\n if (data.hasOwnProperty('issuer')) {\n obj['issuer'] = ApiClient.convertToType(data['issuer'], 'String');\n }\n if (data.hasOwnProperty('clientID')) {\n obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String');\n }\n if (data.hasOwnProperty('clientSecret')) {\n obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String');\n }\n if (data.hasOwnProperty('redirectURI')) {\n obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String');\n }\n if (data.hasOwnProperty('basicAuthUnsupported')) {\n obj['basicAuthUnsupported'] = ApiClient.convertToType(data['basicAuthUnsupported'], 'Boolean');\n }\n if (data.hasOwnProperty('hostedDomains')) {\n obj['hostedDomains'] = ApiClient.convertToType(data['hostedDomains'], ['String']);\n }\n if (data.hasOwnProperty('scopes')) {\n obj['scopes'] = ApiClient.convertToType(data['scopes'], ['String']);\n }\n if (data.hasOwnProperty('insecureSkipEmailVerified')) {\n obj['insecureSkipEmailVerified'] = ApiClient.convertToType(data['insecureSkipEmailVerified'], 'Boolean');\n }\n if (data.hasOwnProperty('getUserInfo')) {\n obj['getUserInfo'] = ApiClient.convertToType(data['getUserInfo'], 'Boolean');\n }\n if (data.hasOwnProperty('userIDKey')) {\n obj['userIDKey'] = ApiClient.convertToType(data['userIDKey'], 'String');\n }\n if (data.hasOwnProperty('userNameKey')) {\n obj['userNameKey'] = ApiClient.convertToType(data['userNameKey'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} issuer\n */\n issuer = undefined;\n /**\n * @member {String} clientID\n */\n clientID = undefined;\n /**\n * @member {String} clientSecret\n */\n clientSecret = undefined;\n /**\n * @member {String} redirectURI\n */\n redirectURI = undefined;\n /**\n * @member {Boolean} basicAuthUnsupported\n */\n basicAuthUnsupported = undefined;\n /**\n * @member {Array.} hostedDomains\n */\n hostedDomains = undefined;\n /**\n * @member {Array.} scopes\n */\n scopes = undefined;\n /**\n * @member {Boolean} insecureSkipEmailVerified\n */\n insecureSkipEmailVerified = undefined;\n /**\n * @member {Boolean} getUserInfo\n */\n getUserInfo = undefined;\n /**\n * @member {String} userIDKey\n */\n userIDKey = undefined;\n /**\n * @member {String} userNameKey\n */\n userNameKey = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ConnectorOIDCConfig.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ConnectorPydioConfig.js b/lib/model/AuthOAuth2ConnectorPydioConfig.js new file mode 100644 index 0000000..bdfa843 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorPydioConfig.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthOAuth2ConnectorPydioConfigConnector = _interopRequireDefault(require("./AuthOAuth2ConnectorPydioConfigConnector")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ConnectorPydioConfig model module. +* @module model/AuthOAuth2ConnectorPydioConfig +* @version 2.0 +*/ +var AuthOAuth2ConnectorPydioConfig = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ConnectorPydioConfig. + * @alias module:model/AuthOAuth2ConnectorPydioConfig + * @class + */ + function AuthOAuth2ConnectorPydioConfig() { + _classCallCheck(this, AuthOAuth2ConnectorPydioConfig); + + _defineProperty(this, "pydioconnectors", undefined); + } + /** + * Constructs a AuthOAuth2ConnectorPydioConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorPydioConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorPydioConfig} The populated AuthOAuth2ConnectorPydioConfig instance. + */ + + + _createClass(AuthOAuth2ConnectorPydioConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorPydioConfig(); + + if (data.hasOwnProperty('pydioconnectors')) { + obj['pydioconnectors'] = _ApiClient["default"].convertToType(data['pydioconnectors'], [_AuthOAuth2ConnectorPydioConfigConnector["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} pydioconnectors + */ + + }]); + + return AuthOAuth2ConnectorPydioConfig; +}(); + +exports["default"] = AuthOAuth2ConnectorPydioConfig; +//# sourceMappingURL=AuthOAuth2ConnectorPydioConfig.js.map diff --git a/lib/model/AuthOAuth2ConnectorPydioConfig.js.map b/lib/model/AuthOAuth2ConnectorPydioConfig.js.map new file mode 100644 index 0000000..a108bc1 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorPydioConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ConnectorPydioConfig.js"],"names":["AuthOAuth2ConnectorPydioConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","AuthOAuth2ConnectorPydioConfigConnector"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,8B;AACjB;AACJ;AACA;AACA;AACA;AAEI,4CAAc;AAAA;;AAAA,6CAoCIC,SApCJ;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,8BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,iBAApB,CAAJ,EAA4C;AACxCD,UAAAA,GAAG,CAAC,iBAAD,CAAH,GAAyBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,iBAAD,CAA5B,EAAiD,CAACK,mDAAD,CAAjD,CAAzB;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport AuthOAuth2ConnectorPydioConfigConnector from './AuthOAuth2ConnectorPydioConfigConnector';\n\n\n\n\n\n/**\n* The AuthOAuth2ConnectorPydioConfig model module.\n* @module model/AuthOAuth2ConnectorPydioConfig\n* @version 2.0\n*/\nexport default class AuthOAuth2ConnectorPydioConfig {\n /**\n * Constructs a new AuthOAuth2ConnectorPydioConfig.\n * @alias module:model/AuthOAuth2ConnectorPydioConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ConnectorPydioConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ConnectorPydioConfig} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ConnectorPydioConfig} The populated AuthOAuth2ConnectorPydioConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ConnectorPydioConfig();\n\n \n \n \n\n if (data.hasOwnProperty('pydioconnectors')) {\n obj['pydioconnectors'] = ApiClient.convertToType(data['pydioconnectors'], [AuthOAuth2ConnectorPydioConfigConnector]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} pydioconnectors\n */\n pydioconnectors = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ConnectorPydioConfig.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ConnectorPydioConfigConnector.js b/lib/model/AuthOAuth2ConnectorPydioConfigConnector.js new file mode 100644 index 0000000..d6d6888 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorPydioConfigConnector.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ConnectorPydioConfigConnector model module. +* @module model/AuthOAuth2ConnectorPydioConfigConnector +* @version 2.0 +*/ +var AuthOAuth2ConnectorPydioConfigConnector = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ConnectorPydioConfigConnector. + * @alias module:model/AuthOAuth2ConnectorPydioConfigConnector + * @class + */ + function AuthOAuth2ConnectorPydioConfigConnector() { + _classCallCheck(this, AuthOAuth2ConnectorPydioConfigConnector); + + _defineProperty(this, "id", undefined); + + _defineProperty(this, "name", undefined); + + _defineProperty(this, "type", undefined); + } + /** + * Constructs a AuthOAuth2ConnectorPydioConfigConnector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorPydioConfigConnector} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorPydioConfigConnector} The populated AuthOAuth2ConnectorPydioConfigConnector instance. + */ + + + _createClass(AuthOAuth2ConnectorPydioConfigConnector, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorPydioConfigConnector(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + } + + return obj; + } + /** + * @member {Number} id + */ + + }]); + + return AuthOAuth2ConnectorPydioConfigConnector; +}(); + +exports["default"] = AuthOAuth2ConnectorPydioConfigConnector; +//# sourceMappingURL=AuthOAuth2ConnectorPydioConfigConnector.js.map diff --git a/lib/model/AuthOAuth2ConnectorPydioConfigConnector.js.map b/lib/model/AuthOAuth2ConnectorPydioConfigConnector.js.map new file mode 100644 index 0000000..6287a80 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorPydioConfigConnector.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ConnectorPydioConfigConnector.js"],"names":["AuthOAuth2ConnectorPydioConfigConnector","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,uC;AACjB;AACJ;AACA;AACA;AACA;AAEI,qDAAc;AAAA;;AAAA,gCA0CTC,SA1CS;;AAAA,kCA8CPA,SA9CO;;AAAA,kCAkDPA,SAlDO;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,uCAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,IAApB,CAAJ,EAA+B;AAC3BD,UAAAA,GAAG,CAAC,IAAD,CAAH,GAAYE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,IAAD,CAA5B,EAAoC,QAApC,CAAZ;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The AuthOAuth2ConnectorPydioConfigConnector model module.\n* @module model/AuthOAuth2ConnectorPydioConfigConnector\n* @version 2.0\n*/\nexport default class AuthOAuth2ConnectorPydioConfigConnector {\n /**\n * Constructs a new AuthOAuth2ConnectorPydioConfigConnector.\n * @alias module:model/AuthOAuth2ConnectorPydioConfigConnector\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ConnectorPydioConfigConnector from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ConnectorPydioConfigConnector} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ConnectorPydioConfigConnector} The populated AuthOAuth2ConnectorPydioConfigConnector instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ConnectorPydioConfigConnector();\n\n \n \n \n\n if (data.hasOwnProperty('id')) {\n obj['id'] = ApiClient.convertToType(data['id'], 'Number');\n }\n if (data.hasOwnProperty('name')) {\n obj['name'] = ApiClient.convertToType(data['name'], 'String');\n }\n if (data.hasOwnProperty('type')) {\n obj['type'] = ApiClient.convertToType(data['type'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {Number} id\n */\n id = undefined;\n /**\n * @member {String} name\n */\n name = undefined;\n /**\n * @member {String} type\n */\n type = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ConnectorPydioConfigConnector.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2ConnectorSAMLConfig.js b/lib/model/AuthOAuth2ConnectorSAMLConfig.js new file mode 100644 index 0000000..04f3758 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorSAMLConfig.js @@ -0,0 +1,134 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2ConnectorSAMLConfig model module. +* @module model/AuthOAuth2ConnectorSAMLConfig +* @version 2.0 +*/ +var AuthOAuth2ConnectorSAMLConfig = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2ConnectorSAMLConfig. + * @alias module:model/AuthOAuth2ConnectorSAMLConfig + * @class + */ + function AuthOAuth2ConnectorSAMLConfig() { + _classCallCheck(this, AuthOAuth2ConnectorSAMLConfig); + + _defineProperty(this, "ssoURL", undefined); + + _defineProperty(this, "ca", undefined); + + _defineProperty(this, "redirectURI", undefined); + + _defineProperty(this, "usernameAttr", undefined); + + _defineProperty(this, "emailAttr", undefined); + + _defineProperty(this, "groupsAttr", undefined); + + _defineProperty(this, "caData", undefined); + + _defineProperty(this, "insecureSkipSignatureValidation", undefined); + + _defineProperty(this, "entityIssuer", undefined); + + _defineProperty(this, "ssoIssuer", undefined); + + _defineProperty(this, "groupsDelim", undefined); + + _defineProperty(this, "nameIDPolicyFormat", undefined); + } + /** + * Constructs a AuthOAuth2ConnectorSAMLConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorSAMLConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorSAMLConfig} The populated AuthOAuth2ConnectorSAMLConfig instance. + */ + + + _createClass(AuthOAuth2ConnectorSAMLConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorSAMLConfig(); + + if (data.hasOwnProperty('ssoURL')) { + obj['ssoURL'] = _ApiClient["default"].convertToType(data['ssoURL'], 'String'); + } + + if (data.hasOwnProperty('ca')) { + obj['ca'] = _ApiClient["default"].convertToType(data['ca'], 'String'); + } + + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = _ApiClient["default"].convertToType(data['redirectURI'], 'String'); + } + + if (data.hasOwnProperty('usernameAttr')) { + obj['usernameAttr'] = _ApiClient["default"].convertToType(data['usernameAttr'], 'String'); + } + + if (data.hasOwnProperty('emailAttr')) { + obj['emailAttr'] = _ApiClient["default"].convertToType(data['emailAttr'], 'String'); + } + + if (data.hasOwnProperty('groupsAttr')) { + obj['groupsAttr'] = _ApiClient["default"].convertToType(data['groupsAttr'], 'String'); + } + + if (data.hasOwnProperty('caData')) { + obj['caData'] = _ApiClient["default"].convertToType(data['caData'], 'String'); + } + + if (data.hasOwnProperty('insecureSkipSignatureValidation')) { + obj['insecureSkipSignatureValidation'] = _ApiClient["default"].convertToType(data['insecureSkipSignatureValidation'], 'Boolean'); + } + + if (data.hasOwnProperty('entityIssuer')) { + obj['entityIssuer'] = _ApiClient["default"].convertToType(data['entityIssuer'], 'String'); + } + + if (data.hasOwnProperty('ssoIssuer')) { + obj['ssoIssuer'] = _ApiClient["default"].convertToType(data['ssoIssuer'], 'String'); + } + + if (data.hasOwnProperty('groupsDelim')) { + obj['groupsDelim'] = _ApiClient["default"].convertToType(data['groupsDelim'], 'String'); + } + + if (data.hasOwnProperty('nameIDPolicyFormat')) { + obj['nameIDPolicyFormat'] = _ApiClient["default"].convertToType(data['nameIDPolicyFormat'], 'String'); + } + } + + return obj; + } + /** + * @member {String} ssoURL + */ + + }]); + + return AuthOAuth2ConnectorSAMLConfig; +}(); + +exports["default"] = AuthOAuth2ConnectorSAMLConfig; +//# sourceMappingURL=AuthOAuth2ConnectorSAMLConfig.js.map diff --git a/lib/model/AuthOAuth2ConnectorSAMLConfig.js.map b/lib/model/AuthOAuth2ConnectorSAMLConfig.js.map new file mode 100644 index 0000000..0a287e9 --- /dev/null +++ b/lib/model/AuthOAuth2ConnectorSAMLConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2ConnectorSAMLConfig.js"],"names":["AuthOAuth2ConnectorSAMLConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The AuthOAuth2ConnectorSAMLConfig model module.\n* @module model/AuthOAuth2ConnectorSAMLConfig\n* @version 2.0\n*/\nexport default class AuthOAuth2ConnectorSAMLConfig {\n /**\n * Constructs a new AuthOAuth2ConnectorSAMLConfig.\n * @alias module:model/AuthOAuth2ConnectorSAMLConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2ConnectorSAMLConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2ConnectorSAMLConfig} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2ConnectorSAMLConfig} The populated AuthOAuth2ConnectorSAMLConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2ConnectorSAMLConfig();\n\n \n \n \n\n if (data.hasOwnProperty('ssoURL')) {\n obj['ssoURL'] = ApiClient.convertToType(data['ssoURL'], 'String');\n }\n if (data.hasOwnProperty('ca')) {\n obj['ca'] = ApiClient.convertToType(data['ca'], 'String');\n }\n if (data.hasOwnProperty('redirectURI')) {\n obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String');\n }\n if (data.hasOwnProperty('usernameAttr')) {\n obj['usernameAttr'] = ApiClient.convertToType(data['usernameAttr'], 'String');\n }\n if (data.hasOwnProperty('emailAttr')) {\n obj['emailAttr'] = ApiClient.convertToType(data['emailAttr'], 'String');\n }\n if (data.hasOwnProperty('groupsAttr')) {\n obj['groupsAttr'] = ApiClient.convertToType(data['groupsAttr'], 'String');\n }\n if (data.hasOwnProperty('caData')) {\n obj['caData'] = ApiClient.convertToType(data['caData'], 'String');\n }\n if (data.hasOwnProperty('insecureSkipSignatureValidation')) {\n obj['insecureSkipSignatureValidation'] = ApiClient.convertToType(data['insecureSkipSignatureValidation'], 'Boolean');\n }\n if (data.hasOwnProperty('entityIssuer')) {\n obj['entityIssuer'] = ApiClient.convertToType(data['entityIssuer'], 'String');\n }\n if (data.hasOwnProperty('ssoIssuer')) {\n obj['ssoIssuer'] = ApiClient.convertToType(data['ssoIssuer'], 'String');\n }\n if (data.hasOwnProperty('groupsDelim')) {\n obj['groupsDelim'] = ApiClient.convertToType(data['groupsDelim'], 'String');\n }\n if (data.hasOwnProperty('nameIDPolicyFormat')) {\n obj['nameIDPolicyFormat'] = ApiClient.convertToType(data['nameIDPolicyFormat'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} ssoURL\n */\n ssoURL = undefined;\n /**\n * @member {String} ca\n */\n ca = undefined;\n /**\n * @member {String} redirectURI\n */\n redirectURI = undefined;\n /**\n * @member {String} usernameAttr\n */\n usernameAttr = undefined;\n /**\n * @member {String} emailAttr\n */\n emailAttr = undefined;\n /**\n * @member {String} groupsAttr\n */\n groupsAttr = undefined;\n /**\n * @member {String} caData\n */\n caData = undefined;\n /**\n * @member {Boolean} insecureSkipSignatureValidation\n */\n insecureSkipSignatureValidation = undefined;\n /**\n * @member {String} entityIssuer\n */\n entityIssuer = undefined;\n /**\n * @member {String} ssoIssuer\n */\n ssoIssuer = undefined;\n /**\n * @member {String} groupsDelim\n */\n groupsDelim = undefined;\n /**\n * @member {String} nameIDPolicyFormat\n */\n nameIDPolicyFormat = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2ConnectorSAMLConfig.js"} \ No newline at end of file diff --git a/lib/model/AuthOAuth2MappingRule.js b/lib/model/AuthOAuth2MappingRule.js new file mode 100644 index 0000000..8552261 --- /dev/null +++ b/lib/model/AuthOAuth2MappingRule.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthOAuth2MappingRule model module. +* @module model/AuthOAuth2MappingRule +* @version 2.0 +*/ +var AuthOAuth2MappingRule = /*#__PURE__*/function () { + /** + * Constructs a new AuthOAuth2MappingRule. + * @alias module:model/AuthOAuth2MappingRule + * @class + */ + function AuthOAuth2MappingRule() { + _classCallCheck(this, AuthOAuth2MappingRule); + + _defineProperty(this, "LeftAttribute", undefined); + + _defineProperty(this, "RuleString", undefined); + + _defineProperty(this, "RightAttribute", undefined); + } + /** + * Constructs a AuthOAuth2MappingRule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2MappingRule} obj Optional instance to populate. + * @return {module:model/AuthOAuth2MappingRule} The populated AuthOAuth2MappingRule instance. + */ + + + _createClass(AuthOAuth2MappingRule, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2MappingRule(); + + if (data.hasOwnProperty('LeftAttribute')) { + obj['LeftAttribute'] = _ApiClient["default"].convertToType(data['LeftAttribute'], 'String'); + } + + if (data.hasOwnProperty('RuleString')) { + obj['RuleString'] = _ApiClient["default"].convertToType(data['RuleString'], 'String'); + } + + if (data.hasOwnProperty('RightAttribute')) { + obj['RightAttribute'] = _ApiClient["default"].convertToType(data['RightAttribute'], 'String'); + } + } + + return obj; + } + /** + * @member {String} LeftAttribute + */ + + }]); + + return AuthOAuth2MappingRule; +}(); + +exports["default"] = AuthOAuth2MappingRule; +//# sourceMappingURL=AuthOAuth2MappingRule.js.map diff --git a/lib/model/AuthOAuth2MappingRule.js.map b/lib/model/AuthOAuth2MappingRule.js.map new file mode 100644 index 0000000..cd22c03 --- /dev/null +++ b/lib/model/AuthOAuth2MappingRule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthOAuth2MappingRule.js"],"names":["AuthOAuth2MappingRule","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,qB;AACjB;AACJ;AACA;AACA;AACA;AAEI,mCAAc;AAAA;;AAAA,2CA0CEC,SA1CF;;AAAA,wCA8CDA,SA9CC;;AAAA,4CAkDGA,SAlDH;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,qBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,eAAD,CAA5B,EAA+C,QAA/C,CAAvB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,QAA5C,CAApB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,gBAApB,CAAJ,EAA2C;AACvCD,UAAAA,GAAG,CAAC,gBAAD,CAAH,GAAwBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,gBAAD,CAA5B,EAAgD,QAAhD,CAAxB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The AuthOAuth2MappingRule model module.\n* @module model/AuthOAuth2MappingRule\n* @version 2.0\n*/\nexport default class AuthOAuth2MappingRule {\n /**\n * Constructs a new AuthOAuth2MappingRule.\n * @alias module:model/AuthOAuth2MappingRule\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthOAuth2MappingRule from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthOAuth2MappingRule} obj Optional instance to populate.\n * @return {module:model/AuthOAuth2MappingRule} The populated AuthOAuth2MappingRule instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthOAuth2MappingRule();\n\n \n \n \n\n if (data.hasOwnProperty('LeftAttribute')) {\n obj['LeftAttribute'] = ApiClient.convertToType(data['LeftAttribute'], 'String');\n }\n if (data.hasOwnProperty('RuleString')) {\n obj['RuleString'] = ApiClient.convertToType(data['RuleString'], 'String');\n }\n if (data.hasOwnProperty('RightAttribute')) {\n obj['RightAttribute'] = ApiClient.convertToType(data['RightAttribute'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} LeftAttribute\n */\n LeftAttribute = undefined;\n /**\n * @member {String} RuleString\n */\n RuleString = undefined;\n /**\n * @member {String} RightAttribute\n */\n RightAttribute = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthOAuth2MappingRule.js"} \ No newline at end of file diff --git a/lib/model/AuthPatListResponse.js b/lib/model/AuthPatListResponse.js new file mode 100644 index 0000000..bdd6180 --- /dev/null +++ b/lib/model/AuthPatListResponse.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthPersonalAccessToken = _interopRequireDefault(require("./AuthPersonalAccessToken")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthPatListResponse model module. +* @module model/AuthPatListResponse +* @version 2.0 +*/ +var AuthPatListResponse = /*#__PURE__*/function () { + /** + * Constructs a new AuthPatListResponse. + * @alias module:model/AuthPatListResponse + * @class + */ + function AuthPatListResponse() { + _classCallCheck(this, AuthPatListResponse); + + _defineProperty(this, "Tokens", undefined); + } + /** + * Constructs a AuthPatListResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthPatListResponse} obj Optional instance to populate. + * @return {module:model/AuthPatListResponse} The populated AuthPatListResponse instance. + */ + + + _createClass(AuthPatListResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthPatListResponse(); + + if (data.hasOwnProperty('Tokens')) { + obj['Tokens'] = _ApiClient["default"].convertToType(data['Tokens'], [_AuthPersonalAccessToken["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} Tokens + */ + + }]); + + return AuthPatListResponse; +}(); + +exports["default"] = AuthPatListResponse; +//# sourceMappingURL=AuthPatListResponse.js.map diff --git a/lib/model/AuthPatListResponse.js.map b/lib/model/AuthPatListResponse.js.map new file mode 100644 index 0000000..b927dc4 --- /dev/null +++ b/lib/model/AuthPatListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthPatListResponse.js"],"names":["AuthPatListResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","AuthPersonalAccessToken"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,mB;AACjB;AACJ;AACA;AACA;AACA;AAEI,iCAAc;AAAA;;AAAA,oCAoCLC,SApCK;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,mBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,CAACK,mCAAD,CAAxC,CAAhB;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport AuthPersonalAccessToken from './AuthPersonalAccessToken';\n\n\n\n\n\n/**\n* The AuthPatListResponse model module.\n* @module model/AuthPatListResponse\n* @version 2.0\n*/\nexport default class AuthPatListResponse {\n /**\n * Constructs a new AuthPatListResponse.\n * @alias module:model/AuthPatListResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthPatListResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthPatListResponse} obj Optional instance to populate.\n * @return {module:model/AuthPatListResponse} The populated AuthPatListResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthPatListResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Tokens')) {\n obj['Tokens'] = ApiClient.convertToType(data['Tokens'], [AuthPersonalAccessToken]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Tokens\n */\n Tokens = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthPatListResponse.js"} \ No newline at end of file diff --git a/lib/model/AuthPatType.js b/lib/model/AuthPatType.js new file mode 100644 index 0000000..961bfba --- /dev/null +++ b/lib/model/AuthPatType.js @@ -0,0 +1,53 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class AuthPatType. +* @enum {} +* @readonly +*/ +var AuthPatType = /*#__PURE__*/function () { + function AuthPatType() { + _classCallCheck(this, AuthPatType); + + _defineProperty(this, "ANY", "ANY"); + + _defineProperty(this, "PERSONAL", "PERSONAL"); + + _defineProperty(this, "DOCUMENT", "DOCUMENT"); + } + + _createClass(AuthPatType, null, [{ + key: "constructFromObject", + value: + /** + * Returns a AuthPatType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/AuthPatType} The enum AuthPatType value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return AuthPatType; +}(); + +exports["default"] = AuthPatType; +//# sourceMappingURL=AuthPatType.js.map diff --git a/lib/model/AuthPatType.js.map b/lib/model/AuthPatType.js.map new file mode 100644 index 0000000..2da04a2 --- /dev/null +++ b/lib/model/AuthPatType.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthPatType.js"],"names":["AuthPatType","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,W;;;;iCAMP,K;;sCAOK,U;;sCAOA,U;;;;;;AAIf;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class AuthPatType.\n* @enum {}\n* @readonly\n*/\nexport default class AuthPatType {\n \n /**\n * value: \"ANY\"\n * @const\n */\n ANY = \"ANY\";\n\n \n /**\n * value: \"PERSONAL\"\n * @const\n */\n PERSONAL = \"PERSONAL\";\n\n \n /**\n * value: \"DOCUMENT\"\n * @const\n */\n DOCUMENT = \"DOCUMENT\";\n\n \n\n /**\n * Returns a AuthPatType enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/AuthPatType} The enum AuthPatType value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"AuthPatType.js"} \ No newline at end of file diff --git a/lib/model/AuthPersonalAccessToken.js b/lib/model/AuthPersonalAccessToken.js new file mode 100644 index 0000000..ea46cfa --- /dev/null +++ b/lib/model/AuthPersonalAccessToken.js @@ -0,0 +1,130 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthPatType = _interopRequireDefault(require("./AuthPatType")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The AuthPersonalAccessToken model module. +* @module model/AuthPersonalAccessToken +* @version 2.0 +*/ +var AuthPersonalAccessToken = /*#__PURE__*/function () { + /** + * Constructs a new AuthPersonalAccessToken. + * @alias module:model/AuthPersonalAccessToken + * @class + */ + function AuthPersonalAccessToken() { + _classCallCheck(this, AuthPersonalAccessToken); + + _defineProperty(this, "Uuid", undefined); + + _defineProperty(this, "Type", undefined); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "UserUuid", undefined); + + _defineProperty(this, "UserLogin", undefined); + + _defineProperty(this, "Scopes", undefined); + + _defineProperty(this, "AutoRefreshWindow", undefined); + + _defineProperty(this, "ExpiresAt", undefined); + + _defineProperty(this, "CreatedBy", undefined); + + _defineProperty(this, "CreatedAt", undefined); + + _defineProperty(this, "UpdatedAt", undefined); + } + /** + * Constructs a AuthPersonalAccessToken from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthPersonalAccessToken} obj Optional instance to populate. + * @return {module:model/AuthPersonalAccessToken} The populated AuthPersonalAccessToken instance. + */ + + + _createClass(AuthPersonalAccessToken, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthPersonalAccessToken(); + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = _ApiClient["default"].convertToType(data['Uuid'], 'String'); + } + + if (data.hasOwnProperty('Type')) { + obj['Type'] = _AuthPatType["default"].constructFromObject(data['Type']); + } + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('UserUuid')) { + obj['UserUuid'] = _ApiClient["default"].convertToType(data['UserUuid'], 'String'); + } + + if (data.hasOwnProperty('UserLogin')) { + obj['UserLogin'] = _ApiClient["default"].convertToType(data['UserLogin'], 'String'); + } + + if (data.hasOwnProperty('Scopes')) { + obj['Scopes'] = _ApiClient["default"].convertToType(data['Scopes'], ['String']); + } + + if (data.hasOwnProperty('AutoRefreshWindow')) { + obj['AutoRefreshWindow'] = _ApiClient["default"].convertToType(data['AutoRefreshWindow'], 'Number'); + } + + if (data.hasOwnProperty('ExpiresAt')) { + obj['ExpiresAt'] = _ApiClient["default"].convertToType(data['ExpiresAt'], 'String'); + } + + if (data.hasOwnProperty('CreatedBy')) { + obj['CreatedBy'] = _ApiClient["default"].convertToType(data['CreatedBy'], 'String'); + } + + if (data.hasOwnProperty('CreatedAt')) { + obj['CreatedAt'] = _ApiClient["default"].convertToType(data['CreatedAt'], 'String'); + } + + if (data.hasOwnProperty('UpdatedAt')) { + obj['UpdatedAt'] = _ApiClient["default"].convertToType(data['UpdatedAt'], 'String'); + } + } + + return obj; + } + /** + * @member {String} Uuid + */ + + }]); + + return AuthPersonalAccessToken; +}(); + +exports["default"] = AuthPersonalAccessToken; +//# sourceMappingURL=AuthPersonalAccessToken.js.map diff --git a/lib/model/AuthPersonalAccessToken.js.map b/lib/model/AuthPersonalAccessToken.js.map new file mode 100644 index 0000000..a8e1d51 --- /dev/null +++ b/lib/model/AuthPersonalAccessToken.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/AuthPersonalAccessToken.js"],"names":["AuthPersonalAccessToken","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","AuthPatType","constructFromObject"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport AuthPatType from './AuthPatType';\n\n\n\n\n\n/**\n* The AuthPersonalAccessToken model module.\n* @module model/AuthPersonalAccessToken\n* @version 2.0\n*/\nexport default class AuthPersonalAccessToken {\n /**\n * Constructs a new AuthPersonalAccessToken.\n * @alias module:model/AuthPersonalAccessToken\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a AuthPersonalAccessToken from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/AuthPersonalAccessToken} obj Optional instance to populate.\n * @return {module:model/AuthPersonalAccessToken} The populated AuthPersonalAccessToken instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new AuthPersonalAccessToken();\n\n \n \n \n\n if (data.hasOwnProperty('Uuid')) {\n obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String');\n }\n if (data.hasOwnProperty('Type')) {\n obj['Type'] = AuthPatType.constructFromObject(data['Type']);\n }\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('UserUuid')) {\n obj['UserUuid'] = ApiClient.convertToType(data['UserUuid'], 'String');\n }\n if (data.hasOwnProperty('UserLogin')) {\n obj['UserLogin'] = ApiClient.convertToType(data['UserLogin'], 'String');\n }\n if (data.hasOwnProperty('Scopes')) {\n obj['Scopes'] = ApiClient.convertToType(data['Scopes'], ['String']);\n }\n if (data.hasOwnProperty('AutoRefreshWindow')) {\n obj['AutoRefreshWindow'] = ApiClient.convertToType(data['AutoRefreshWindow'], 'Number');\n }\n if (data.hasOwnProperty('ExpiresAt')) {\n obj['ExpiresAt'] = ApiClient.convertToType(data['ExpiresAt'], 'String');\n }\n if (data.hasOwnProperty('CreatedBy')) {\n obj['CreatedBy'] = ApiClient.convertToType(data['CreatedBy'], 'String');\n }\n if (data.hasOwnProperty('CreatedAt')) {\n obj['CreatedAt'] = ApiClient.convertToType(data['CreatedAt'], 'String');\n }\n if (data.hasOwnProperty('UpdatedAt')) {\n obj['UpdatedAt'] = ApiClient.convertToType(data['UpdatedAt'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Uuid\n */\n Uuid = undefined;\n /**\n * @member {module:model/AuthPatType} Type\n */\n Type = undefined;\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {String} UserUuid\n */\n UserUuid = undefined;\n /**\n * @member {String} UserLogin\n */\n UserLogin = undefined;\n /**\n * @member {Array.} Scopes\n */\n Scopes = undefined;\n /**\n * @member {Number} AutoRefreshWindow\n */\n AutoRefreshWindow = undefined;\n /**\n * @member {String} ExpiresAt\n */\n ExpiresAt = undefined;\n /**\n * @member {String} CreatedBy\n */\n CreatedBy = undefined;\n /**\n * @member {String} CreatedAt\n */\n CreatedAt = undefined;\n /**\n * @member {String} UpdatedAt\n */\n UpdatedAt = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"AuthPersonalAccessToken.js"} \ No newline at end of file diff --git a/lib/model/CertLicenseInfo.js b/lib/model/CertLicenseInfo.js new file mode 100644 index 0000000..0a1fd76 --- /dev/null +++ b/lib/model/CertLicenseInfo.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The CertLicenseInfo model module. +* @module model/CertLicenseInfo +* @version 2.0 +*/ +var CertLicenseInfo = /*#__PURE__*/function () { + /** + * Constructs a new CertLicenseInfo. + * @alias module:model/CertLicenseInfo + * @class + */ + function CertLicenseInfo() { + _classCallCheck(this, CertLicenseInfo); + + _defineProperty(this, "Id", undefined); + + _defineProperty(this, "AccountName", undefined); + + _defineProperty(this, "ServerDomain", undefined); + + _defineProperty(this, "IssueTime", undefined); + + _defineProperty(this, "ExpireTime", undefined); + + _defineProperty(this, "MaxUsers", undefined); + + _defineProperty(this, "MaxPeers", undefined); + + _defineProperty(this, "Features", undefined); + } + /** + * Constructs a CertLicenseInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertLicenseInfo} obj Optional instance to populate. + * @return {module:model/CertLicenseInfo} The populated CertLicenseInfo instance. + */ + + + _createClass(CertLicenseInfo, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertLicenseInfo(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = _ApiClient["default"].convertToType(data['Id'], 'String'); + } + + if (data.hasOwnProperty('AccountName')) { + obj['AccountName'] = _ApiClient["default"].convertToType(data['AccountName'], 'String'); + } + + if (data.hasOwnProperty('ServerDomain')) { + obj['ServerDomain'] = _ApiClient["default"].convertToType(data['ServerDomain'], 'String'); + } + + if (data.hasOwnProperty('IssueTime')) { + obj['IssueTime'] = _ApiClient["default"].convertToType(data['IssueTime'], 'Number'); + } + + if (data.hasOwnProperty('ExpireTime')) { + obj['ExpireTime'] = _ApiClient["default"].convertToType(data['ExpireTime'], 'Number'); + } + + if (data.hasOwnProperty('MaxUsers')) { + obj['MaxUsers'] = _ApiClient["default"].convertToType(data['MaxUsers'], 'String'); + } + + if (data.hasOwnProperty('MaxPeers')) { + obj['MaxPeers'] = _ApiClient["default"].convertToType(data['MaxPeers'], 'String'); + } + + if (data.hasOwnProperty('Features')) { + obj['Features'] = _ApiClient["default"].convertToType(data['Features'], { + 'String': 'String' + }); + } + } + + return obj; + } + /** + * @member {String} Id + */ + + }]); + + return CertLicenseInfo; +}(); + +exports["default"] = CertLicenseInfo; +//# sourceMappingURL=CertLicenseInfo.js.map diff --git a/lib/model/CertLicenseInfo.js.map b/lib/model/CertLicenseInfo.js.map new file mode 100644 index 0000000..e7a0bae --- /dev/null +++ b/lib/model/CertLicenseInfo.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/CertLicenseInfo.js"],"names":["CertLicenseInfo","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,e;AACjB;AACJ;AACA;AACA;AACA;AAEI,6BAAc;AAAA;;AAAA,gCAyDTC,SAzDS;;AAAA,yCA6DAA,SA7DA;;AAAA,0CAiECA,SAjED;;AAAA,uCAqEFA,SArEE;;AAAA,wCAyEDA,SAzEC;;AAAA,sCA6EHA,SA7EG;;AAAA,sCAiFHA,SAjFG;;AAAA,sCAqFHA,SArFG;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,eAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,IAApB,CAAJ,EAA+B;AAC3BD,UAAAA,GAAG,CAAC,IAAD,CAAH,GAAYE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,IAAD,CAA5B,EAAoC,QAApC,CAAZ;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,cAAD,CAA5B,EAA8C,QAA9C,CAAtB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,QAA3C,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,QAA5C,CAApB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C;AAAC,sBAAU;AAAX,WAA1C,CAAlB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The CertLicenseInfo model module.\n* @module model/CertLicenseInfo\n* @version 2.0\n*/\nexport default class CertLicenseInfo {\n /**\n * Constructs a new CertLicenseInfo.\n * @alias module:model/CertLicenseInfo\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a CertLicenseInfo from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/CertLicenseInfo} obj Optional instance to populate.\n * @return {module:model/CertLicenseInfo} The populated CertLicenseInfo instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new CertLicenseInfo();\n\n \n \n \n\n if (data.hasOwnProperty('Id')) {\n obj['Id'] = ApiClient.convertToType(data['Id'], 'String');\n }\n if (data.hasOwnProperty('AccountName')) {\n obj['AccountName'] = ApiClient.convertToType(data['AccountName'], 'String');\n }\n if (data.hasOwnProperty('ServerDomain')) {\n obj['ServerDomain'] = ApiClient.convertToType(data['ServerDomain'], 'String');\n }\n if (data.hasOwnProperty('IssueTime')) {\n obj['IssueTime'] = ApiClient.convertToType(data['IssueTime'], 'Number');\n }\n if (data.hasOwnProperty('ExpireTime')) {\n obj['ExpireTime'] = ApiClient.convertToType(data['ExpireTime'], 'Number');\n }\n if (data.hasOwnProperty('MaxUsers')) {\n obj['MaxUsers'] = ApiClient.convertToType(data['MaxUsers'], 'String');\n }\n if (data.hasOwnProperty('MaxPeers')) {\n obj['MaxPeers'] = ApiClient.convertToType(data['MaxPeers'], 'String');\n }\n if (data.hasOwnProperty('Features')) {\n obj['Features'] = ApiClient.convertToType(data['Features'], {'String': 'String'});\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Id\n */\n Id = undefined;\n /**\n * @member {String} AccountName\n */\n AccountName = undefined;\n /**\n * @member {String} ServerDomain\n */\n ServerDomain = undefined;\n /**\n * @member {Number} IssueTime\n */\n IssueTime = undefined;\n /**\n * @member {Number} ExpireTime\n */\n ExpireTime = undefined;\n /**\n * @member {String} MaxUsers\n */\n MaxUsers = undefined;\n /**\n * @member {String} MaxPeers\n */\n MaxPeers = undefined;\n /**\n * @member {Object.} Features\n */\n Features = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"CertLicenseInfo.js"} \ No newline at end of file diff --git a/lib/model/CertLicenseStatsResponse.js b/lib/model/CertLicenseStatsResponse.js new file mode 100644 index 0000000..d0e9218 --- /dev/null +++ b/lib/model/CertLicenseStatsResponse.js @@ -0,0 +1,82 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _CertLicenseInfo = _interopRequireDefault(require("./CertLicenseInfo")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The CertLicenseStatsResponse model module. +* @module model/CertLicenseStatsResponse +* @version 2.0 +*/ +var CertLicenseStatsResponse = /*#__PURE__*/function () { + /** + * Constructs a new CertLicenseStatsResponse. + * @alias module:model/CertLicenseStatsResponse + * @class + */ + function CertLicenseStatsResponse() { + _classCallCheck(this, CertLicenseStatsResponse); + + _defineProperty(this, "License", undefined); + + _defineProperty(this, "ActiveUsers", undefined); + + _defineProperty(this, "ActivePeers", undefined); + } + /** + * Constructs a CertLicenseStatsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertLicenseStatsResponse} obj Optional instance to populate. + * @return {module:model/CertLicenseStatsResponse} The populated CertLicenseStatsResponse instance. + */ + + + _createClass(CertLicenseStatsResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertLicenseStatsResponse(); + + if (data.hasOwnProperty('License')) { + obj['License'] = _CertLicenseInfo["default"].constructFromObject(data['License']); + } + + if (data.hasOwnProperty('ActiveUsers')) { + obj['ActiveUsers'] = _ApiClient["default"].convertToType(data['ActiveUsers'], 'String'); + } + + if (data.hasOwnProperty('ActivePeers')) { + obj['ActivePeers'] = _ApiClient["default"].convertToType(data['ActivePeers'], 'String'); + } + } + + return obj; + } + /** + * @member {module:model/CertLicenseInfo} License + */ + + }]); + + return CertLicenseStatsResponse; +}(); + +exports["default"] = CertLicenseStatsResponse; +//# sourceMappingURL=CertLicenseStatsResponse.js.map diff --git a/lib/model/CertLicenseStatsResponse.js.map b/lib/model/CertLicenseStatsResponse.js.map new file mode 100644 index 0000000..f1242f5 --- /dev/null +++ b/lib/model/CertLicenseStatsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/CertLicenseStatsResponse.js"],"names":["CertLicenseStatsResponse","undefined","data","obj","hasOwnProperty","CertLicenseInfo","constructFromObject","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,wB;AACjB;AACJ;AACA;AACA;AACA;AAEI,sCAAc;AAAA;;AAAA,qCA0CJC,SA1CI;;AAAA,yCA8CAA,SA9CA;;AAAA,yCAkDAA,SAlDA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,wBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,4BAAgBC,mBAAhB,CAAoCJ,IAAI,CAAC,SAAD,CAAxC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport CertLicenseInfo from './CertLicenseInfo';\n\n\n\n\n\n/**\n* The CertLicenseStatsResponse model module.\n* @module model/CertLicenseStatsResponse\n* @version 2.0\n*/\nexport default class CertLicenseStatsResponse {\n /**\n * Constructs a new CertLicenseStatsResponse.\n * @alias module:model/CertLicenseStatsResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a CertLicenseStatsResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/CertLicenseStatsResponse} obj Optional instance to populate.\n * @return {module:model/CertLicenseStatsResponse} The populated CertLicenseStatsResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new CertLicenseStatsResponse();\n\n \n \n \n\n if (data.hasOwnProperty('License')) {\n obj['License'] = CertLicenseInfo.constructFromObject(data['License']);\n }\n if (data.hasOwnProperty('ActiveUsers')) {\n obj['ActiveUsers'] = ApiClient.convertToType(data['ActiveUsers'], 'String');\n }\n if (data.hasOwnProperty('ActivePeers')) {\n obj['ActivePeers'] = ApiClient.convertToType(data['ActivePeers'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/CertLicenseInfo} License\n */\n License = undefined;\n /**\n * @member {String} ActiveUsers\n */\n ActiveUsers = undefined;\n /**\n * @member {String} ActivePeers\n */\n ActivePeers = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"CertLicenseStatsResponse.js"} \ No newline at end of file diff --git a/lib/model/CertPutLicenseInfoRequest.js b/lib/model/CertPutLicenseInfoRequest.js new file mode 100644 index 0000000..17d76d9 --- /dev/null +++ b/lib/model/CertPutLicenseInfoRequest.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The CertPutLicenseInfoRequest model module. +* @module model/CertPutLicenseInfoRequest +* @version 2.0 +*/ +var CertPutLicenseInfoRequest = /*#__PURE__*/function () { + /** + * Constructs a new CertPutLicenseInfoRequest. + * @alias module:model/CertPutLicenseInfoRequest + * @class + */ + function CertPutLicenseInfoRequest() { + _classCallCheck(this, CertPutLicenseInfoRequest); + + _defineProperty(this, "LicenseString", undefined); + } + /** + * Constructs a CertPutLicenseInfoRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertPutLicenseInfoRequest} obj Optional instance to populate. + * @return {module:model/CertPutLicenseInfoRequest} The populated CertPutLicenseInfoRequest instance. + */ + + + _createClass(CertPutLicenseInfoRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertPutLicenseInfoRequest(); + + if (data.hasOwnProperty('LicenseString')) { + obj['LicenseString'] = _ApiClient["default"].convertToType(data['LicenseString'], 'String'); + } + } + + return obj; + } + /** + * @member {String} LicenseString + */ + + }]); + + return CertPutLicenseInfoRequest; +}(); + +exports["default"] = CertPutLicenseInfoRequest; +//# sourceMappingURL=CertPutLicenseInfoRequest.js.map diff --git a/lib/model/CertPutLicenseInfoRequest.js.map b/lib/model/CertPutLicenseInfoRequest.js.map new file mode 100644 index 0000000..868cc43 --- /dev/null +++ b/lib/model/CertPutLicenseInfoRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/CertPutLicenseInfoRequest.js"],"names":["CertPutLicenseInfoRequest","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,yB;AACjB;AACJ;AACA;AACA;AACA;AAEI,uCAAc;AAAA;;AAAA,2CAoCEC,SApCF;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,yBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,eAAD,CAA5B,EAA+C,QAA/C,CAAvB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The CertPutLicenseInfoRequest model module.\n* @module model/CertPutLicenseInfoRequest\n* @version 2.0\n*/\nexport default class CertPutLicenseInfoRequest {\n /**\n * Constructs a new CertPutLicenseInfoRequest.\n * @alias module:model/CertPutLicenseInfoRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a CertPutLicenseInfoRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/CertPutLicenseInfoRequest} obj Optional instance to populate.\n * @return {module:model/CertPutLicenseInfoRequest} The populated CertPutLicenseInfoRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new CertPutLicenseInfoRequest();\n\n \n \n \n\n if (data.hasOwnProperty('LicenseString')) {\n obj['LicenseString'] = ApiClient.convertToType(data['LicenseString'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} LicenseString\n */\n LicenseString = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"CertPutLicenseInfoRequest.js"} \ No newline at end of file diff --git a/lib/model/CertPutLicenseInfoResponse.js b/lib/model/CertPutLicenseInfoResponse.js new file mode 100644 index 0000000..d29c2ea --- /dev/null +++ b/lib/model/CertPutLicenseInfoResponse.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The CertPutLicenseInfoResponse model module. +* @module model/CertPutLicenseInfoResponse +* @version 2.0 +*/ +var CertPutLicenseInfoResponse = /*#__PURE__*/function () { + /** + * Constructs a new CertPutLicenseInfoResponse. + * @alias module:model/CertPutLicenseInfoResponse + * @class + */ + function CertPutLicenseInfoResponse() { + _classCallCheck(this, CertPutLicenseInfoResponse); + + _defineProperty(this, "Success", undefined); + + _defineProperty(this, "ErrorInvalid", undefined); + + _defineProperty(this, "ErrorWrite", undefined); + } + /** + * Constructs a CertPutLicenseInfoResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertPutLicenseInfoResponse} obj Optional instance to populate. + * @return {module:model/CertPutLicenseInfoResponse} The populated CertPutLicenseInfoResponse instance. + */ + + + _createClass(CertPutLicenseInfoResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertPutLicenseInfoResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + + if (data.hasOwnProperty('ErrorInvalid')) { + obj['ErrorInvalid'] = _ApiClient["default"].convertToType(data['ErrorInvalid'], 'Boolean'); + } + + if (data.hasOwnProperty('ErrorWrite')) { + obj['ErrorWrite'] = _ApiClient["default"].convertToType(data['ErrorWrite'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return CertPutLicenseInfoResponse; +}(); + +exports["default"] = CertPutLicenseInfoResponse; +//# sourceMappingURL=CertPutLicenseInfoResponse.js.map diff --git a/lib/model/CertPutLicenseInfoResponse.js.map b/lib/model/CertPutLicenseInfoResponse.js.map new file mode 100644 index 0000000..3f9042d --- /dev/null +++ b/lib/model/CertPutLicenseInfoResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/CertPutLicenseInfoResponse.js"],"names":["CertPutLicenseInfoResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,0B;AACjB;AACJ;AACA;AACA;AACA;AAEI,wCAAc;AAAA;;AAAA,qCA0CJC,SA1CI;;AAAA,0CA8CCA,SA9CD;;AAAA,wCAkDDA,SAlDC;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,0BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,cAAD,CAA5B,EAA8C,SAA9C,CAAtB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,SAA5C,CAApB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The CertPutLicenseInfoResponse model module.\n* @module model/CertPutLicenseInfoResponse\n* @version 2.0\n*/\nexport default class CertPutLicenseInfoResponse {\n /**\n * Constructs a new CertPutLicenseInfoResponse.\n * @alias module:model/CertPutLicenseInfoResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a CertPutLicenseInfoResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/CertPutLicenseInfoResponse} obj Optional instance to populate.\n * @return {module:model/CertPutLicenseInfoResponse} The populated CertPutLicenseInfoResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new CertPutLicenseInfoResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n if (data.hasOwnProperty('ErrorInvalid')) {\n obj['ErrorInvalid'] = ApiClient.convertToType(data['ErrorInvalid'], 'Boolean');\n }\n if (data.hasOwnProperty('ErrorWrite')) {\n obj['ErrorWrite'] = ApiClient.convertToType(data['ErrorWrite'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n /**\n * @member {Boolean} ErrorInvalid\n */\n ErrorInvalid = undefined;\n /**\n * @member {Boolean} ErrorWrite\n */\n ErrorWrite = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"CertPutLicenseInfoResponse.js"} \ No newline at end of file diff --git a/lib/model/EntActionTemplate.js b/lib/model/EntActionTemplate.js new file mode 100644 index 0000000..fa75863 --- /dev/null +++ b/lib/model/EntActionTemplate.js @@ -0,0 +1,76 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsAction = _interopRequireDefault(require("./JobsAction")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntActionTemplate model module. +* @module model/EntActionTemplate +* @version 2.0 +*/ +var EntActionTemplate = /*#__PURE__*/function () { + /** + * Constructs a new EntActionTemplate. + * @alias module:model/EntActionTemplate + * @class + */ + function EntActionTemplate() { + _classCallCheck(this, EntActionTemplate); + + _defineProperty(this, "Name", undefined); + + _defineProperty(this, "Action", undefined); + } + /** + * Constructs a EntActionTemplate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntActionTemplate} obj Optional instance to populate. + * @return {module:model/EntActionTemplate} The populated EntActionTemplate instance. + */ + + + _createClass(EntActionTemplate, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntActionTemplate(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('Action')) { + obj['Action'] = _JobsAction["default"].constructFromObject(data['Action']); + } + } + + return obj; + } + /** + * @member {String} Name + */ + + }]); + + return EntActionTemplate; +}(); + +exports["default"] = EntActionTemplate; +//# sourceMappingURL=EntActionTemplate.js.map diff --git a/lib/model/EntActionTemplate.js.map b/lib/model/EntActionTemplate.js.map new file mode 100644 index 0000000..97e242c --- /dev/null +++ b/lib/model/EntActionTemplate.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntActionTemplate.js"],"names":["EntActionTemplate","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","JobsAction","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,iB;AACjB;AACJ;AACA;AACA;AACA;AAEI,+BAAc;AAAA;;AAAA,kCAuCPC,SAvCO;;AAAA,oCA2CLA,SA3CK;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,iBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBI,uBAAWC,mBAAX,CAA+BN,IAAI,CAAC,QAAD,CAAnC,CAAhB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsAction from './JobsAction';\n\n\n\n\n\n/**\n* The EntActionTemplate model module.\n* @module model/EntActionTemplate\n* @version 2.0\n*/\nexport default class EntActionTemplate {\n /**\n * Constructs a new EntActionTemplate.\n * @alias module:model/EntActionTemplate\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntActionTemplate from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntActionTemplate} obj Optional instance to populate.\n * @return {module:model/EntActionTemplate} The populated EntActionTemplate instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntActionTemplate();\n\n \n \n \n\n if (data.hasOwnProperty('Name')) {\n obj['Name'] = ApiClient.convertToType(data['Name'], 'String');\n }\n if (data.hasOwnProperty('Action')) {\n obj['Action'] = JobsAction.constructFromObject(data['Action']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Name\n */\n Name = undefined;\n /**\n * @member {module:model/JobsAction} Action\n */\n Action = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntActionTemplate.js"} \ No newline at end of file diff --git a/lib/model/EntConnector.js b/lib/model/EntConnector.js new file mode 100644 index 0000000..c9d3c61 --- /dev/null +++ b/lib/model/EntConnector.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntConnector model module. +* @module model/EntConnector +* @version 2.0 +*/ +var EntConnector = /*#__PURE__*/function () { + /** + * Constructs a new EntConnector. + * @alias module:model/EntConnector + * @class + */ + function EntConnector() { + _classCallCheck(this, EntConnector); + + _defineProperty(this, "Id", undefined); + + _defineProperty(this, "Name", undefined); + + _defineProperty(this, "Type", undefined); + } + /** + * Constructs a EntConnector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntConnector} obj Optional instance to populate. + * @return {module:model/EntConnector} The populated EntConnector instance. + */ + + + _createClass(EntConnector, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntConnector(); + + if (data.hasOwnProperty('Id')) { + obj['Id'] = _ApiClient["default"].convertToType(data['Id'], 'String'); + } + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('Type')) { + obj['Type'] = _ApiClient["default"].convertToType(data['Type'], 'String'); + } + } + + return obj; + } + /** + * @member {String} Id + */ + + }]); + + return EntConnector; +}(); + +exports["default"] = EntConnector; +//# sourceMappingURL=EntConnector.js.map diff --git a/lib/model/EntConnector.js.map b/lib/model/EntConnector.js.map new file mode 100644 index 0000000..e95e61e --- /dev/null +++ b/lib/model/EntConnector.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntConnector.js"],"names":["EntConnector","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,Y;AACjB;AACJ;AACA;AACA;AACA;AAEI,0BAAc;AAAA;;AAAA,gCA0CTC,SA1CS;;AAAA,kCA8CPA,SA9CO;;AAAA,kCAkDPA,SAlDO;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,YAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,IAApB,CAAJ,EAA+B;AAC3BD,UAAAA,GAAG,CAAC,IAAD,CAAH,GAAYE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,IAAD,CAA5B,EAAoC,QAApC,CAAZ;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntConnector model module.\n* @module model/EntConnector\n* @version 2.0\n*/\nexport default class EntConnector {\n /**\n * Constructs a new EntConnector.\n * @alias module:model/EntConnector\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntConnector from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntConnector} obj Optional instance to populate.\n * @return {module:model/EntConnector} The populated EntConnector instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntConnector();\n\n \n \n \n\n if (data.hasOwnProperty('Id')) {\n obj['Id'] = ApiClient.convertToType(data['Id'], 'String');\n }\n if (data.hasOwnProperty('Name')) {\n obj['Name'] = ApiClient.convertToType(data['Name'], 'String');\n }\n if (data.hasOwnProperty('Type')) {\n obj['Type'] = ApiClient.convertToType(data['Type'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Id\n */\n Id = undefined;\n /**\n * @member {String} Name\n */\n Name = undefined;\n /**\n * @member {String} Type\n */\n Type = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntConnector.js"} \ No newline at end of file diff --git a/lib/model/EntDeleteActionTemplateResponse.js b/lib/model/EntDeleteActionTemplateResponse.js new file mode 100644 index 0000000..7a44bd2 --- /dev/null +++ b/lib/model/EntDeleteActionTemplateResponse.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntDeleteActionTemplateResponse model module. +* @module model/EntDeleteActionTemplateResponse +* @version 2.0 +*/ +var EntDeleteActionTemplateResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntDeleteActionTemplateResponse. + * @alias module:model/EntDeleteActionTemplateResponse + * @class + */ + function EntDeleteActionTemplateResponse() { + _classCallCheck(this, EntDeleteActionTemplateResponse); + + _defineProperty(this, "Success", undefined); + } + /** + * Constructs a EntDeleteActionTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDeleteActionTemplateResponse} obj Optional instance to populate. + * @return {module:model/EntDeleteActionTemplateResponse} The populated EntDeleteActionTemplateResponse instance. + */ + + + _createClass(EntDeleteActionTemplateResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDeleteActionTemplateResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return EntDeleteActionTemplateResponse; +}(); + +exports["default"] = EntDeleteActionTemplateResponse; +//# sourceMappingURL=EntDeleteActionTemplateResponse.js.map diff --git a/lib/model/EntDeleteActionTemplateResponse.js.map b/lib/model/EntDeleteActionTemplateResponse.js.map new file mode 100644 index 0000000..ac95799 --- /dev/null +++ b/lib/model/EntDeleteActionTemplateResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntDeleteActionTemplateResponse.js"],"names":["EntDeleteActionTemplateResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,+B;AACjB;AACJ;AACA;AACA;AACA;AAEI,6CAAc;AAAA;;AAAA,qCAoCJC,SApCI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,+BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntDeleteActionTemplateResponse model module.\n* @module model/EntDeleteActionTemplateResponse\n* @version 2.0\n*/\nexport default class EntDeleteActionTemplateResponse {\n /**\n * Constructs a new EntDeleteActionTemplateResponse.\n * @alias module:model/EntDeleteActionTemplateResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntDeleteActionTemplateResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntDeleteActionTemplateResponse} obj Optional instance to populate.\n * @return {module:model/EntDeleteActionTemplateResponse} The populated EntDeleteActionTemplateResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntDeleteActionTemplateResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntDeleteActionTemplateResponse.js"} \ No newline at end of file diff --git a/lib/model/EntDeleteJobTemplateResponse.js b/lib/model/EntDeleteJobTemplateResponse.js new file mode 100644 index 0000000..f620c57 --- /dev/null +++ b/lib/model/EntDeleteJobTemplateResponse.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntDeleteJobTemplateResponse model module. +* @module model/EntDeleteJobTemplateResponse +* @version 2.0 +*/ +var EntDeleteJobTemplateResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntDeleteJobTemplateResponse. + * @alias module:model/EntDeleteJobTemplateResponse + * @class + */ + function EntDeleteJobTemplateResponse() { + _classCallCheck(this, EntDeleteJobTemplateResponse); + + _defineProperty(this, "Success", undefined); + } + /** + * Constructs a EntDeleteJobTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDeleteJobTemplateResponse} obj Optional instance to populate. + * @return {module:model/EntDeleteJobTemplateResponse} The populated EntDeleteJobTemplateResponse instance. + */ + + + _createClass(EntDeleteJobTemplateResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDeleteJobTemplateResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return EntDeleteJobTemplateResponse; +}(); + +exports["default"] = EntDeleteJobTemplateResponse; +//# sourceMappingURL=EntDeleteJobTemplateResponse.js.map diff --git a/lib/model/EntDeleteJobTemplateResponse.js.map b/lib/model/EntDeleteJobTemplateResponse.js.map new file mode 100644 index 0000000..a10e3eb --- /dev/null +++ b/lib/model/EntDeleteJobTemplateResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntDeleteJobTemplateResponse.js"],"names":["EntDeleteJobTemplateResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,4B;AACjB;AACJ;AACA;AACA;AACA;AAEI,0CAAc;AAAA;;AAAA,qCAoCJC,SApCI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,4BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntDeleteJobTemplateResponse model module.\n* @module model/EntDeleteJobTemplateResponse\n* @version 2.0\n*/\nexport default class EntDeleteJobTemplateResponse {\n /**\n * Constructs a new EntDeleteJobTemplateResponse.\n * @alias module:model/EntDeleteJobTemplateResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntDeleteJobTemplateResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntDeleteJobTemplateResponse} obj Optional instance to populate.\n * @return {module:model/EntDeleteJobTemplateResponse} The populated EntDeleteJobTemplateResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntDeleteJobTemplateResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntDeleteJobTemplateResponse.js"} \ No newline at end of file diff --git a/lib/model/EntDeleteSelectorTemplateResponse.js b/lib/model/EntDeleteSelectorTemplateResponse.js new file mode 100644 index 0000000..1ab6eca --- /dev/null +++ b/lib/model/EntDeleteSelectorTemplateResponse.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntDeleteSelectorTemplateResponse model module. +* @module model/EntDeleteSelectorTemplateResponse +* @version 2.0 +*/ +var EntDeleteSelectorTemplateResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntDeleteSelectorTemplateResponse. + * @alias module:model/EntDeleteSelectorTemplateResponse + * @class + */ + function EntDeleteSelectorTemplateResponse() { + _classCallCheck(this, EntDeleteSelectorTemplateResponse); + + _defineProperty(this, "Success", undefined); + } + /** + * Constructs a EntDeleteSelectorTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDeleteSelectorTemplateResponse} obj Optional instance to populate. + * @return {module:model/EntDeleteSelectorTemplateResponse} The populated EntDeleteSelectorTemplateResponse instance. + */ + + + _createClass(EntDeleteSelectorTemplateResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDeleteSelectorTemplateResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return EntDeleteSelectorTemplateResponse; +}(); + +exports["default"] = EntDeleteSelectorTemplateResponse; +//# sourceMappingURL=EntDeleteSelectorTemplateResponse.js.map diff --git a/lib/model/EntDeleteSelectorTemplateResponse.js.map b/lib/model/EntDeleteSelectorTemplateResponse.js.map new file mode 100644 index 0000000..bf24b74 --- /dev/null +++ b/lib/model/EntDeleteSelectorTemplateResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntDeleteSelectorTemplateResponse.js"],"names":["EntDeleteSelectorTemplateResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,iC;AACjB;AACJ;AACA;AACA;AACA;AAEI,+CAAc;AAAA;;AAAA,qCAoCJC,SApCI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,iCAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntDeleteSelectorTemplateResponse model module.\n* @module model/EntDeleteSelectorTemplateResponse\n* @version 2.0\n*/\nexport default class EntDeleteSelectorTemplateResponse {\n /**\n * Constructs a new EntDeleteSelectorTemplateResponse.\n * @alias module:model/EntDeleteSelectorTemplateResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntDeleteSelectorTemplateResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntDeleteSelectorTemplateResponse} obj Optional instance to populate.\n * @return {module:model/EntDeleteSelectorTemplateResponse} The populated EntDeleteSelectorTemplateResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntDeleteSelectorTemplateResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntDeleteSelectorTemplateResponse.js"} \ No newline at end of file diff --git a/lib/model/EntDeleteVersioningPolicyResponse.js b/lib/model/EntDeleteVersioningPolicyResponse.js new file mode 100644 index 0000000..5b6597f --- /dev/null +++ b/lib/model/EntDeleteVersioningPolicyResponse.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntDeleteVersioningPolicyResponse model module. +* @module model/EntDeleteVersioningPolicyResponse +* @version 2.0 +*/ +var EntDeleteVersioningPolicyResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntDeleteVersioningPolicyResponse. + * @alias module:model/EntDeleteVersioningPolicyResponse + * @class + */ + function EntDeleteVersioningPolicyResponse() { + _classCallCheck(this, EntDeleteVersioningPolicyResponse); + + _defineProperty(this, "Success", undefined); + } + /** + * Constructs a EntDeleteVersioningPolicyResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDeleteVersioningPolicyResponse} obj Optional instance to populate. + * @return {module:model/EntDeleteVersioningPolicyResponse} The populated EntDeleteVersioningPolicyResponse instance. + */ + + + _createClass(EntDeleteVersioningPolicyResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDeleteVersioningPolicyResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return EntDeleteVersioningPolicyResponse; +}(); + +exports["default"] = EntDeleteVersioningPolicyResponse; +//# sourceMappingURL=EntDeleteVersioningPolicyResponse.js.map diff --git a/lib/model/EntDeleteVersioningPolicyResponse.js.map b/lib/model/EntDeleteVersioningPolicyResponse.js.map new file mode 100644 index 0000000..20d741f --- /dev/null +++ b/lib/model/EntDeleteVersioningPolicyResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntDeleteVersioningPolicyResponse.js"],"names":["EntDeleteVersioningPolicyResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,iC;AACjB;AACJ;AACA;AACA;AACA;AAEI,+CAAc;AAAA;;AAAA,qCAoCJC,SApCI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,iCAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntDeleteVersioningPolicyResponse model module.\n* @module model/EntDeleteVersioningPolicyResponse\n* @version 2.0\n*/\nexport default class EntDeleteVersioningPolicyResponse {\n /**\n * Constructs a new EntDeleteVersioningPolicyResponse.\n * @alias module:model/EntDeleteVersioningPolicyResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntDeleteVersioningPolicyResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntDeleteVersioningPolicyResponse} obj Optional instance to populate.\n * @return {module:model/EntDeleteVersioningPolicyResponse} The populated EntDeleteVersioningPolicyResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntDeleteVersioningPolicyResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntDeleteVersioningPolicyResponse.js"} \ No newline at end of file diff --git a/lib/model/EntDeleteVirtualNodeResponse.js b/lib/model/EntDeleteVirtualNodeResponse.js new file mode 100644 index 0000000..8d49eba --- /dev/null +++ b/lib/model/EntDeleteVirtualNodeResponse.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntDeleteVirtualNodeResponse model module. +* @module model/EntDeleteVirtualNodeResponse +* @version 2.0 +*/ +var EntDeleteVirtualNodeResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntDeleteVirtualNodeResponse. + * @alias module:model/EntDeleteVirtualNodeResponse + * @class + */ + function EntDeleteVirtualNodeResponse() { + _classCallCheck(this, EntDeleteVirtualNodeResponse); + + _defineProperty(this, "Success", undefined); + } + /** + * Constructs a EntDeleteVirtualNodeResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDeleteVirtualNodeResponse} obj Optional instance to populate. + * @return {module:model/EntDeleteVirtualNodeResponse} The populated EntDeleteVirtualNodeResponse instance. + */ + + + _createClass(EntDeleteVirtualNodeResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDeleteVirtualNodeResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return EntDeleteVirtualNodeResponse; +}(); + +exports["default"] = EntDeleteVirtualNodeResponse; +//# sourceMappingURL=EntDeleteVirtualNodeResponse.js.map diff --git a/lib/model/EntDeleteVirtualNodeResponse.js.map b/lib/model/EntDeleteVirtualNodeResponse.js.map new file mode 100644 index 0000000..e01082e --- /dev/null +++ b/lib/model/EntDeleteVirtualNodeResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntDeleteVirtualNodeResponse.js"],"names":["EntDeleteVirtualNodeResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,4B;AACjB;AACJ;AACA;AACA;AACA;AAEI,0CAAc;AAAA;;AAAA,qCAoCJC,SApCI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,4BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntDeleteVirtualNodeResponse model module.\n* @module model/EntDeleteVirtualNodeResponse\n* @version 2.0\n*/\nexport default class EntDeleteVirtualNodeResponse {\n /**\n * Constructs a new EntDeleteVirtualNodeResponse.\n * @alias module:model/EntDeleteVirtualNodeResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntDeleteVirtualNodeResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntDeleteVirtualNodeResponse} obj Optional instance to populate.\n * @return {module:model/EntDeleteVirtualNodeResponse} The populated EntDeleteVirtualNodeResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntDeleteVirtualNodeResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntDeleteVirtualNodeResponse.js"} \ No newline at end of file diff --git a/lib/model/EntDocTemplatePiece.js b/lib/model/EntDocTemplatePiece.js new file mode 100644 index 0000000..ec470ba --- /dev/null +++ b/lib/model/EntDocTemplatePiece.js @@ -0,0 +1,86 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntDocTemplatePiece model module. +* @module model/EntDocTemplatePiece +* @version 2.0 +*/ +var EntDocTemplatePiece = /*#__PURE__*/function () { + /** + * Constructs a new EntDocTemplatePiece. + * @alias module:model/EntDocTemplatePiece + * @class + */ + function EntDocTemplatePiece() { + _classCallCheck(this, EntDocTemplatePiece); + + _defineProperty(this, "Name", undefined); + + _defineProperty(this, "Context", undefined); + + _defineProperty(this, "Short", undefined); + + _defineProperty(this, "Long", undefined); + } + /** + * Constructs a EntDocTemplatePiece from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDocTemplatePiece} obj Optional instance to populate. + * @return {module:model/EntDocTemplatePiece} The populated EntDocTemplatePiece instance. + */ + + + _createClass(EntDocTemplatePiece, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDocTemplatePiece(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('Context')) { + obj['Context'] = _ApiClient["default"].convertToType(data['Context'], 'String'); + } + + if (data.hasOwnProperty('Short')) { + obj['Short'] = _ApiClient["default"].convertToType(data['Short'], 'String'); + } + + if (data.hasOwnProperty('Long')) { + obj['Long'] = _ApiClient["default"].convertToType(data['Long'], 'String'); + } + } + + return obj; + } + /** + * @member {String} Name + */ + + }]); + + return EntDocTemplatePiece; +}(); + +exports["default"] = EntDocTemplatePiece; +//# sourceMappingURL=EntDocTemplatePiece.js.map diff --git a/lib/model/EntDocTemplatePiece.js.map b/lib/model/EntDocTemplatePiece.js.map new file mode 100644 index 0000000..5c2430f --- /dev/null +++ b/lib/model/EntDocTemplatePiece.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntDocTemplatePiece.js"],"names":["EntDocTemplatePiece","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,mB;AACjB;AACJ;AACA;AACA;AACA;AAEI,iCAAc;AAAA;;AAAA,kCA6CPC,SA7CO;;AAAA,qCAiDJA,SAjDI;;AAAA,mCAqDNA,SArDM;;AAAA,kCAyDPA,SAzDO;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,mBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,QAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntDocTemplatePiece model module.\n* @module model/EntDocTemplatePiece\n* @version 2.0\n*/\nexport default class EntDocTemplatePiece {\n /**\n * Constructs a new EntDocTemplatePiece.\n * @alias module:model/EntDocTemplatePiece\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntDocTemplatePiece from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntDocTemplatePiece} obj Optional instance to populate.\n * @return {module:model/EntDocTemplatePiece} The populated EntDocTemplatePiece instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntDocTemplatePiece();\n\n \n \n \n\n if (data.hasOwnProperty('Name')) {\n obj['Name'] = ApiClient.convertToType(data['Name'], 'String');\n }\n if (data.hasOwnProperty('Context')) {\n obj['Context'] = ApiClient.convertToType(data['Context'], 'String');\n }\n if (data.hasOwnProperty('Short')) {\n obj['Short'] = ApiClient.convertToType(data['Short'], 'String');\n }\n if (data.hasOwnProperty('Long')) {\n obj['Long'] = ApiClient.convertToType(data['Long'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Name\n */\n Name = undefined;\n /**\n * @member {String} Context\n */\n Context = undefined;\n /**\n * @member {String} Short\n */\n Short = undefined;\n /**\n * @member {String} Long\n */\n Long = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntDocTemplatePiece.js"} \ No newline at end of file diff --git a/lib/model/EntDocTemplatesResponse.js b/lib/model/EntDocTemplatesResponse.js new file mode 100644 index 0000000..fa9d6b3 --- /dev/null +++ b/lib/model/EntDocTemplatesResponse.js @@ -0,0 +1,76 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EntDocTemplatePiece = _interopRequireDefault(require("./EntDocTemplatePiece")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntDocTemplatesResponse model module. +* @module model/EntDocTemplatesResponse +* @version 2.0 +*/ +var EntDocTemplatesResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntDocTemplatesResponse. + * @alias module:model/EntDocTemplatesResponse + * @class + */ + function EntDocTemplatesResponse() { + _classCallCheck(this, EntDocTemplatesResponse); + + _defineProperty(this, "Type", undefined); + + _defineProperty(this, "Docs", undefined); + } + /** + * Constructs a EntDocTemplatesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDocTemplatesResponse} obj Optional instance to populate. + * @return {module:model/EntDocTemplatesResponse} The populated EntDocTemplatesResponse instance. + */ + + + _createClass(EntDocTemplatesResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDocTemplatesResponse(); + + if (data.hasOwnProperty('Type')) { + obj['Type'] = _ApiClient["default"].convertToType(data['Type'], 'String'); + } + + if (data.hasOwnProperty('Docs')) { + obj['Docs'] = _ApiClient["default"].convertToType(data['Docs'], [_EntDocTemplatePiece["default"]]); + } + } + + return obj; + } + /** + * @member {String} Type + */ + + }]); + + return EntDocTemplatesResponse; +}(); + +exports["default"] = EntDocTemplatesResponse; +//# sourceMappingURL=EntDocTemplatesResponse.js.map diff --git a/lib/model/EntDocTemplatesResponse.js.map b/lib/model/EntDocTemplatesResponse.js.map new file mode 100644 index 0000000..873400d --- /dev/null +++ b/lib/model/EntDocTemplatesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntDocTemplatesResponse.js"],"names":["EntDocTemplatesResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","EntDocTemplatePiece"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,uB;AACjB;AACJ;AACA;AACA;AACA;AAEI,qCAAc;AAAA;;AAAA,kCAuCPC,SAvCO;;AAAA,kCA2CPA,SA3CO;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,uBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,CAACK,+BAAD,CAAtC,CAAd;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport EntDocTemplatePiece from './EntDocTemplatePiece';\n\n\n\n\n\n/**\n* The EntDocTemplatesResponse model module.\n* @module model/EntDocTemplatesResponse\n* @version 2.0\n*/\nexport default class EntDocTemplatesResponse {\n /**\n * Constructs a new EntDocTemplatesResponse.\n * @alias module:model/EntDocTemplatesResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntDocTemplatesResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntDocTemplatesResponse} obj Optional instance to populate.\n * @return {module:model/EntDocTemplatesResponse} The populated EntDocTemplatesResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntDocTemplatesResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Type')) {\n obj['Type'] = ApiClient.convertToType(data['Type'], 'String');\n }\n if (data.hasOwnProperty('Docs')) {\n obj['Docs'] = ApiClient.convertToType(data['Docs'], [EntDocTemplatePiece]);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Type\n */\n Type = undefined;\n /**\n * @member {Array.} Docs\n */\n Docs = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntDocTemplatesResponse.js"} \ No newline at end of file diff --git a/lib/model/EntExternalDirectoryCollection.js b/lib/model/EntExternalDirectoryCollection.js new file mode 100644 index 0000000..9b46214 --- /dev/null +++ b/lib/model/EntExternalDirectoryCollection.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthLdapServerConfig = _interopRequireDefault(require("./AuthLdapServerConfig")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntExternalDirectoryCollection model module. +* @module model/EntExternalDirectoryCollection +* @version 2.0 +*/ +var EntExternalDirectoryCollection = /*#__PURE__*/function () { + /** + * Constructs a new EntExternalDirectoryCollection. + * @alias module:model/EntExternalDirectoryCollection + * @class + */ + function EntExternalDirectoryCollection() { + _classCallCheck(this, EntExternalDirectoryCollection); + + _defineProperty(this, "Directories", undefined); + } + /** + * Constructs a EntExternalDirectoryCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntExternalDirectoryCollection} obj Optional instance to populate. + * @return {module:model/EntExternalDirectoryCollection} The populated EntExternalDirectoryCollection instance. + */ + + + _createClass(EntExternalDirectoryCollection, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntExternalDirectoryCollection(); + + if (data.hasOwnProperty('Directories')) { + obj['Directories'] = _ApiClient["default"].convertToType(data['Directories'], [_AuthLdapServerConfig["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} Directories + */ + + }]); + + return EntExternalDirectoryCollection; +}(); + +exports["default"] = EntExternalDirectoryCollection; +//# sourceMappingURL=EntExternalDirectoryCollection.js.map diff --git a/lib/model/EntExternalDirectoryCollection.js.map b/lib/model/EntExternalDirectoryCollection.js.map new file mode 100644 index 0000000..802b58f --- /dev/null +++ b/lib/model/EntExternalDirectoryCollection.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntExternalDirectoryCollection.js"],"names":["EntExternalDirectoryCollection","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","AuthLdapServerConfig"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,8B;AACjB;AACJ;AACA;AACA;AACA;AAEI,4CAAc;AAAA;;AAAA,yCAoCAC,SApCA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,8BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,CAACK,gCAAD,CAA7C,CAArB;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport AuthLdapServerConfig from './AuthLdapServerConfig';\n\n\n\n\n\n/**\n* The EntExternalDirectoryCollection model module.\n* @module model/EntExternalDirectoryCollection\n* @version 2.0\n*/\nexport default class EntExternalDirectoryCollection {\n /**\n * Constructs a new EntExternalDirectoryCollection.\n * @alias module:model/EntExternalDirectoryCollection\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntExternalDirectoryCollection from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntExternalDirectoryCollection} obj Optional instance to populate.\n * @return {module:model/EntExternalDirectoryCollection} The populated EntExternalDirectoryCollection instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntExternalDirectoryCollection();\n\n \n \n \n\n if (data.hasOwnProperty('Directories')) {\n obj['Directories'] = ApiClient.convertToType(data['Directories'], [AuthLdapServerConfig]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Directories\n */\n Directories = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntExternalDirectoryCollection.js"} \ No newline at end of file diff --git a/lib/model/EntExternalDirectoryConfig.js b/lib/model/EntExternalDirectoryConfig.js new file mode 100644 index 0000000..5945d00 --- /dev/null +++ b/lib/model/EntExternalDirectoryConfig.js @@ -0,0 +1,76 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthLdapServerConfig = _interopRequireDefault(require("./AuthLdapServerConfig")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntExternalDirectoryConfig model module. +* @module model/EntExternalDirectoryConfig +* @version 2.0 +*/ +var EntExternalDirectoryConfig = /*#__PURE__*/function () { + /** + * Constructs a new EntExternalDirectoryConfig. + * @alias module:model/EntExternalDirectoryConfig + * @class + */ + function EntExternalDirectoryConfig() { + _classCallCheck(this, EntExternalDirectoryConfig); + + _defineProperty(this, "ConfigId", undefined); + + _defineProperty(this, "Config", undefined); + } + /** + * Constructs a EntExternalDirectoryConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntExternalDirectoryConfig} obj Optional instance to populate. + * @return {module:model/EntExternalDirectoryConfig} The populated EntExternalDirectoryConfig instance. + */ + + + _createClass(EntExternalDirectoryConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntExternalDirectoryConfig(); + + if (data.hasOwnProperty('ConfigId')) { + obj['ConfigId'] = _ApiClient["default"].convertToType(data['ConfigId'], 'String'); + } + + if (data.hasOwnProperty('Config')) { + obj['Config'] = _AuthLdapServerConfig["default"].constructFromObject(data['Config']); + } + } + + return obj; + } + /** + * @member {String} ConfigId + */ + + }]); + + return EntExternalDirectoryConfig; +}(); + +exports["default"] = EntExternalDirectoryConfig; +//# sourceMappingURL=EntExternalDirectoryConfig.js.map diff --git a/lib/model/EntExternalDirectoryConfig.js.map b/lib/model/EntExternalDirectoryConfig.js.map new file mode 100644 index 0000000..2ca81c8 --- /dev/null +++ b/lib/model/EntExternalDirectoryConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntExternalDirectoryConfig.js"],"names":["EntExternalDirectoryConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","AuthLdapServerConfig","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,0B;AACjB;AACJ;AACA;AACA;AACA;AAEI,wCAAc;AAAA;;AAAA,sCAuCHC,SAvCG;;AAAA,oCA2CLA,SA3CK;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,0BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBI,iCAAqBC,mBAArB,CAAyCN,IAAI,CAAC,QAAD,CAA7C,CAAhB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport AuthLdapServerConfig from './AuthLdapServerConfig';\n\n\n\n\n\n/**\n* The EntExternalDirectoryConfig model module.\n* @module model/EntExternalDirectoryConfig\n* @version 2.0\n*/\nexport default class EntExternalDirectoryConfig {\n /**\n * Constructs a new EntExternalDirectoryConfig.\n * @alias module:model/EntExternalDirectoryConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntExternalDirectoryConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntExternalDirectoryConfig} obj Optional instance to populate.\n * @return {module:model/EntExternalDirectoryConfig} The populated EntExternalDirectoryConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntExternalDirectoryConfig();\n\n \n \n \n\n if (data.hasOwnProperty('ConfigId')) {\n obj['ConfigId'] = ApiClient.convertToType(data['ConfigId'], 'String');\n }\n if (data.hasOwnProperty('Config')) {\n obj['Config'] = AuthLdapServerConfig.constructFromObject(data['Config']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} ConfigId\n */\n ConfigId = undefined;\n /**\n * @member {module:model/AuthLdapServerConfig} Config\n */\n Config = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntExternalDirectoryConfig.js"} \ No newline at end of file diff --git a/lib/model/EntExternalDirectoryResponse.js b/lib/model/EntExternalDirectoryResponse.js new file mode 100644 index 0000000..9cc6a1e --- /dev/null +++ b/lib/model/EntExternalDirectoryResponse.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntExternalDirectoryResponse model module. +* @module model/EntExternalDirectoryResponse +* @version 2.0 +*/ +var EntExternalDirectoryResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntExternalDirectoryResponse. + * @alias module:model/EntExternalDirectoryResponse + * @class + */ + function EntExternalDirectoryResponse() { + _classCallCheck(this, EntExternalDirectoryResponse); + + _defineProperty(this, "Success", undefined); + } + /** + * Constructs a EntExternalDirectoryResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntExternalDirectoryResponse} obj Optional instance to populate. + * @return {module:model/EntExternalDirectoryResponse} The populated EntExternalDirectoryResponse instance. + */ + + + _createClass(EntExternalDirectoryResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntExternalDirectoryResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return EntExternalDirectoryResponse; +}(); + +exports["default"] = EntExternalDirectoryResponse; +//# sourceMappingURL=EntExternalDirectoryResponse.js.map diff --git a/lib/model/EntExternalDirectoryResponse.js.map b/lib/model/EntExternalDirectoryResponse.js.map new file mode 100644 index 0000000..aed4ec9 --- /dev/null +++ b/lib/model/EntExternalDirectoryResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntExternalDirectoryResponse.js"],"names":["EntExternalDirectoryResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,4B;AACjB;AACJ;AACA;AACA;AACA;AAEI,0CAAc;AAAA;;AAAA,qCAoCJC,SApCI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,4BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntExternalDirectoryResponse model module.\n* @module model/EntExternalDirectoryResponse\n* @version 2.0\n*/\nexport default class EntExternalDirectoryResponse {\n /**\n * Constructs a new EntExternalDirectoryResponse.\n * @alias module:model/EntExternalDirectoryResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntExternalDirectoryResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntExternalDirectoryResponse} obj Optional instance to populate.\n * @return {module:model/EntExternalDirectoryResponse} The populated EntExternalDirectoryResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntExternalDirectoryResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntExternalDirectoryResponse.js"} \ No newline at end of file diff --git a/lib/model/EntFrontLoginConnectorsResponse.js b/lib/model/EntFrontLoginConnectorsResponse.js new file mode 100644 index 0000000..28a486c --- /dev/null +++ b/lib/model/EntFrontLoginConnectorsResponse.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EntConnector = _interopRequireDefault(require("./EntConnector")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntFrontLoginConnectorsResponse model module. +* @module model/EntFrontLoginConnectorsResponse +* @version 2.0 +*/ +var EntFrontLoginConnectorsResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntFrontLoginConnectorsResponse. + * @alias module:model/EntFrontLoginConnectorsResponse + * @class + */ + function EntFrontLoginConnectorsResponse() { + _classCallCheck(this, EntFrontLoginConnectorsResponse); + + _defineProperty(this, "Connectors", undefined); + } + /** + * Constructs a EntFrontLoginConnectorsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntFrontLoginConnectorsResponse} obj Optional instance to populate. + * @return {module:model/EntFrontLoginConnectorsResponse} The populated EntFrontLoginConnectorsResponse instance. + */ + + + _createClass(EntFrontLoginConnectorsResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntFrontLoginConnectorsResponse(); + + if (data.hasOwnProperty('Connectors')) { + obj['Connectors'] = _ApiClient["default"].convertToType(data['Connectors'], [_EntConnector["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} Connectors + */ + + }]); + + return EntFrontLoginConnectorsResponse; +}(); + +exports["default"] = EntFrontLoginConnectorsResponse; +//# sourceMappingURL=EntFrontLoginConnectorsResponse.js.map diff --git a/lib/model/EntFrontLoginConnectorsResponse.js.map b/lib/model/EntFrontLoginConnectorsResponse.js.map new file mode 100644 index 0000000..31eaaf2 --- /dev/null +++ b/lib/model/EntFrontLoginConnectorsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntFrontLoginConnectorsResponse.js"],"names":["EntFrontLoginConnectorsResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","EntConnector"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,+B;AACjB;AACJ;AACA;AACA;AACA;AAEI,6CAAc;AAAA;;AAAA,wCAoCDC,SApCC;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,+BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,CAACK,wBAAD,CAA5C,CAApB;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport EntConnector from './EntConnector';\n\n\n\n\n\n/**\n* The EntFrontLoginConnectorsResponse model module.\n* @module model/EntFrontLoginConnectorsResponse\n* @version 2.0\n*/\nexport default class EntFrontLoginConnectorsResponse {\n /**\n * Constructs a new EntFrontLoginConnectorsResponse.\n * @alias module:model/EntFrontLoginConnectorsResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntFrontLoginConnectorsResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntFrontLoginConnectorsResponse} obj Optional instance to populate.\n * @return {module:model/EntFrontLoginConnectorsResponse} The populated EntFrontLoginConnectorsResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntFrontLoginConnectorsResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Connectors')) {\n obj['Connectors'] = ApiClient.convertToType(data['Connectors'], [EntConnector]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Connectors\n */\n Connectors = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntFrontLoginConnectorsResponse.js"} \ No newline at end of file diff --git a/lib/model/EntListAccessTokensRequest.js b/lib/model/EntListAccessTokensRequest.js new file mode 100644 index 0000000..c775f9f --- /dev/null +++ b/lib/model/EntListAccessTokensRequest.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntListAccessTokensRequest model module. +* @module model/EntListAccessTokensRequest +* @version 2.0 +*/ +var EntListAccessTokensRequest = /*#__PURE__*/function () { + /** + * Constructs a new EntListAccessTokensRequest. + * @alias module:model/EntListAccessTokensRequest + * @class + */ + function EntListAccessTokensRequest() { + _classCallCheck(this, EntListAccessTokensRequest); + + _defineProperty(this, "ByUser", undefined); + } + /** + * Constructs a EntListAccessTokensRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListAccessTokensRequest} obj Optional instance to populate. + * @return {module:model/EntListAccessTokensRequest} The populated EntListAccessTokensRequest instance. + */ + + + _createClass(EntListAccessTokensRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListAccessTokensRequest(); + + if (data.hasOwnProperty('ByUser')) { + obj['ByUser'] = _ApiClient["default"].convertToType(data['ByUser'], 'String'); + } + } + + return obj; + } + /** + * @member {String} ByUser + */ + + }]); + + return EntListAccessTokensRequest; +}(); + +exports["default"] = EntListAccessTokensRequest; +//# sourceMappingURL=EntListAccessTokensRequest.js.map diff --git a/lib/model/EntListAccessTokensRequest.js.map b/lib/model/EntListAccessTokensRequest.js.map new file mode 100644 index 0000000..a6a4950 --- /dev/null +++ b/lib/model/EntListAccessTokensRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntListAccessTokensRequest.js"],"names":["EntListAccessTokensRequest","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,0B;AACjB;AACJ;AACA;AACA;AACA;AAEI,wCAAc;AAAA;;AAAA,oCAoCLC,SApCK;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,0BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntListAccessTokensRequest model module.\n* @module model/EntListAccessTokensRequest\n* @version 2.0\n*/\nexport default class EntListAccessTokensRequest {\n /**\n * Constructs a new EntListAccessTokensRequest.\n * @alias module:model/EntListAccessTokensRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntListAccessTokensRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntListAccessTokensRequest} obj Optional instance to populate.\n * @return {module:model/EntListAccessTokensRequest} The populated EntListAccessTokensRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntListAccessTokensRequest();\n\n \n \n \n\n if (data.hasOwnProperty('ByUser')) {\n obj['ByUser'] = ApiClient.convertToType(data['ByUser'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} ByUser\n */\n ByUser = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntListAccessTokensRequest.js"} \ No newline at end of file diff --git a/lib/model/EntListActionTemplatesRequest.js b/lib/model/EntListActionTemplatesRequest.js new file mode 100644 index 0000000..e11aacd --- /dev/null +++ b/lib/model/EntListActionTemplatesRequest.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* The EntListActionTemplatesRequest model module. +* @module model/EntListActionTemplatesRequest +* @version 2.0 +*/ +var EntListActionTemplatesRequest = /*#__PURE__*/function () { + /** + * Constructs a new EntListActionTemplatesRequest. + * @alias module:model/EntListActionTemplatesRequest + * @class + */ + function EntListActionTemplatesRequest() { + _classCallCheck(this, EntListActionTemplatesRequest); + } + /** + * Constructs a EntListActionTemplatesRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListActionTemplatesRequest} obj Optional instance to populate. + * @return {module:model/EntListActionTemplatesRequest} The populated EntListActionTemplatesRequest instance. + */ + + + _createClass(EntListActionTemplatesRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListActionTemplatesRequest(); + } + + return obj; + } + }]); + + return EntListActionTemplatesRequest; +}(); + +exports["default"] = EntListActionTemplatesRequest; +//# sourceMappingURL=EntListActionTemplatesRequest.js.map diff --git a/lib/model/EntListActionTemplatesRequest.js.map b/lib/model/EntListActionTemplatesRequest.js.map new file mode 100644 index 0000000..7bc9509 --- /dev/null +++ b/lib/model/EntListActionTemplatesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntListActionTemplatesRequest.js"],"names":["EntListActionTemplatesRequest","data","obj"],"mappings":";;;;;;;AAcA;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,6B;AACjB;AACJ;AACA;AACA;AACA;AAEI,2CAAc;AAAA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIF,6BAAJ,EAAb;AAMH;;AACD,aAAOE,GAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntListActionTemplatesRequest model module.\n* @module model/EntListActionTemplatesRequest\n* @version 2.0\n*/\nexport default class EntListActionTemplatesRequest {\n /**\n * Constructs a new EntListActionTemplatesRequest.\n * @alias module:model/EntListActionTemplatesRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntListActionTemplatesRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntListActionTemplatesRequest} obj Optional instance to populate.\n * @return {module:model/EntListActionTemplatesRequest} The populated EntListActionTemplatesRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntListActionTemplatesRequest();\n\n \n \n \n\n }\n return obj;\n }\n\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntListActionTemplatesRequest.js"} \ No newline at end of file diff --git a/lib/model/EntListActionTemplatesResponse.js b/lib/model/EntListActionTemplatesResponse.js new file mode 100644 index 0000000..0c4831c --- /dev/null +++ b/lib/model/EntListActionTemplatesResponse.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EntActionTemplate = _interopRequireDefault(require("./EntActionTemplate")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntListActionTemplatesResponse model module. +* @module model/EntListActionTemplatesResponse +* @version 2.0 +*/ +var EntListActionTemplatesResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntListActionTemplatesResponse. + * @alias module:model/EntListActionTemplatesResponse + * @class + */ + function EntListActionTemplatesResponse() { + _classCallCheck(this, EntListActionTemplatesResponse); + + _defineProperty(this, "Templates", undefined); + } + /** + * Constructs a EntListActionTemplatesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListActionTemplatesResponse} obj Optional instance to populate. + * @return {module:model/EntListActionTemplatesResponse} The populated EntListActionTemplatesResponse instance. + */ + + + _createClass(EntListActionTemplatesResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListActionTemplatesResponse(); + + if (data.hasOwnProperty('Templates')) { + obj['Templates'] = _ApiClient["default"].convertToType(data['Templates'], [_EntActionTemplate["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} Templates + */ + + }]); + + return EntListActionTemplatesResponse; +}(); + +exports["default"] = EntListActionTemplatesResponse; +//# sourceMappingURL=EntListActionTemplatesResponse.js.map diff --git a/lib/model/EntListActionTemplatesResponse.js.map b/lib/model/EntListActionTemplatesResponse.js.map new file mode 100644 index 0000000..dd2292a --- /dev/null +++ b/lib/model/EntListActionTemplatesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntListActionTemplatesResponse.js"],"names":["EntListActionTemplatesResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","EntActionTemplate"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,8B;AACjB;AACJ;AACA;AACA;AACA;AAEI,4CAAc;AAAA;;AAAA,uCAoCFC,SApCE;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,8BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,CAACK,6BAAD,CAA3C,CAAnB;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport EntActionTemplate from './EntActionTemplate';\n\n\n\n\n\n/**\n* The EntListActionTemplatesResponse model module.\n* @module model/EntListActionTemplatesResponse\n* @version 2.0\n*/\nexport default class EntListActionTemplatesResponse {\n /**\n * Constructs a new EntListActionTemplatesResponse.\n * @alias module:model/EntListActionTemplatesResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntListActionTemplatesResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntListActionTemplatesResponse} obj Optional instance to populate.\n * @return {module:model/EntListActionTemplatesResponse} The populated EntListActionTemplatesResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntListActionTemplatesResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Templates')) {\n obj['Templates'] = ApiClient.convertToType(data['Templates'], [EntActionTemplate]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Templates\n */\n Templates = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntListActionTemplatesResponse.js"} \ No newline at end of file diff --git a/lib/model/EntListJobTemplatesRequest.js b/lib/model/EntListJobTemplatesRequest.js new file mode 100644 index 0000000..6491745 --- /dev/null +++ b/lib/model/EntListJobTemplatesRequest.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* The EntListJobTemplatesRequest model module. +* @module model/EntListJobTemplatesRequest +* @version 2.0 +*/ +var EntListJobTemplatesRequest = /*#__PURE__*/function () { + /** + * Constructs a new EntListJobTemplatesRequest. + * @alias module:model/EntListJobTemplatesRequest + * @class + */ + function EntListJobTemplatesRequest() { + _classCallCheck(this, EntListJobTemplatesRequest); + } + /** + * Constructs a EntListJobTemplatesRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListJobTemplatesRequest} obj Optional instance to populate. + * @return {module:model/EntListJobTemplatesRequest} The populated EntListJobTemplatesRequest instance. + */ + + + _createClass(EntListJobTemplatesRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListJobTemplatesRequest(); + } + + return obj; + } + }]); + + return EntListJobTemplatesRequest; +}(); + +exports["default"] = EntListJobTemplatesRequest; +//# sourceMappingURL=EntListJobTemplatesRequest.js.map diff --git a/lib/model/EntListJobTemplatesRequest.js.map b/lib/model/EntListJobTemplatesRequest.js.map new file mode 100644 index 0000000..87be1f1 --- /dev/null +++ b/lib/model/EntListJobTemplatesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntListJobTemplatesRequest.js"],"names":["EntListJobTemplatesRequest","data","obj"],"mappings":";;;;;;;AAcA;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,0B;AACjB;AACJ;AACA;AACA;AACA;AAEI,wCAAc;AAAA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIF,0BAAJ,EAAb;AAMH;;AACD,aAAOE,GAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntListJobTemplatesRequest model module.\n* @module model/EntListJobTemplatesRequest\n* @version 2.0\n*/\nexport default class EntListJobTemplatesRequest {\n /**\n * Constructs a new EntListJobTemplatesRequest.\n * @alias module:model/EntListJobTemplatesRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntListJobTemplatesRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntListJobTemplatesRequest} obj Optional instance to populate.\n * @return {module:model/EntListJobTemplatesRequest} The populated EntListJobTemplatesRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntListJobTemplatesRequest();\n\n \n \n \n\n }\n return obj;\n }\n\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntListJobTemplatesRequest.js"} \ No newline at end of file diff --git a/lib/model/EntListJobTemplatesResponse.js b/lib/model/EntListJobTemplatesResponse.js new file mode 100644 index 0000000..71a098d --- /dev/null +++ b/lib/model/EntListJobTemplatesResponse.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsJob = _interopRequireDefault(require("./JobsJob")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntListJobTemplatesResponse model module. +* @module model/EntListJobTemplatesResponse +* @version 2.0 +*/ +var EntListJobTemplatesResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntListJobTemplatesResponse. + * @alias module:model/EntListJobTemplatesResponse + * @class + */ + function EntListJobTemplatesResponse() { + _classCallCheck(this, EntListJobTemplatesResponse); + + _defineProperty(this, "Jobs", undefined); + } + /** + * Constructs a EntListJobTemplatesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListJobTemplatesResponse} obj Optional instance to populate. + * @return {module:model/EntListJobTemplatesResponse} The populated EntListJobTemplatesResponse instance. + */ + + + _createClass(EntListJobTemplatesResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListJobTemplatesResponse(); + + if (data.hasOwnProperty('Jobs')) { + obj['Jobs'] = _ApiClient["default"].convertToType(data['Jobs'], [_JobsJob["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} Jobs + */ + + }]); + + return EntListJobTemplatesResponse; +}(); + +exports["default"] = EntListJobTemplatesResponse; +//# sourceMappingURL=EntListJobTemplatesResponse.js.map diff --git a/lib/model/EntListJobTemplatesResponse.js.map b/lib/model/EntListJobTemplatesResponse.js.map new file mode 100644 index 0000000..c022cf0 --- /dev/null +++ b/lib/model/EntListJobTemplatesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntListJobTemplatesResponse.js"],"names":["EntListJobTemplatesResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","JobsJob"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,2B;AACjB;AACJ;AACA;AACA;AACA;AAEI,yCAAc;AAAA;;AAAA,kCAoCPC,SApCO;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,2BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,CAACK,mBAAD,CAAtC,CAAd;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsJob from './JobsJob';\n\n\n\n\n\n/**\n* The EntListJobTemplatesResponse model module.\n* @module model/EntListJobTemplatesResponse\n* @version 2.0\n*/\nexport default class EntListJobTemplatesResponse {\n /**\n * Constructs a new EntListJobTemplatesResponse.\n * @alias module:model/EntListJobTemplatesResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntListJobTemplatesResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntListJobTemplatesResponse} obj Optional instance to populate.\n * @return {module:model/EntListJobTemplatesResponse} The populated EntListJobTemplatesResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntListJobTemplatesResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Jobs')) {\n obj['Jobs'] = ApiClient.convertToType(data['Jobs'], [JobsJob]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Jobs\n */\n Jobs = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntListJobTemplatesResponse.js"} \ No newline at end of file diff --git a/lib/model/EntListSelectorTemplatesRequest.js b/lib/model/EntListSelectorTemplatesRequest.js new file mode 100644 index 0000000..7b56a56 --- /dev/null +++ b/lib/model/EntListSelectorTemplatesRequest.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntListSelectorTemplatesRequest model module. +* @module model/EntListSelectorTemplatesRequest +* @version 2.0 +*/ +var EntListSelectorTemplatesRequest = /*#__PURE__*/function () { + /** + * Constructs a new EntListSelectorTemplatesRequest. + * @alias module:model/EntListSelectorTemplatesRequest + * @class + */ + function EntListSelectorTemplatesRequest() { + _classCallCheck(this, EntListSelectorTemplatesRequest); + + _defineProperty(this, "Filter", undefined); + } + /** + * Constructs a EntListSelectorTemplatesRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListSelectorTemplatesRequest} obj Optional instance to populate. + * @return {module:model/EntListSelectorTemplatesRequest} The populated EntListSelectorTemplatesRequest instance. + */ + + + _createClass(EntListSelectorTemplatesRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListSelectorTemplatesRequest(); + + if (data.hasOwnProperty('Filter')) { + obj['Filter'] = _ApiClient["default"].convertToType(data['Filter'], 'String'); + } + } + + return obj; + } + /** + * @member {String} Filter + */ + + }]); + + return EntListSelectorTemplatesRequest; +}(); + +exports["default"] = EntListSelectorTemplatesRequest; +//# sourceMappingURL=EntListSelectorTemplatesRequest.js.map diff --git a/lib/model/EntListSelectorTemplatesRequest.js.map b/lib/model/EntListSelectorTemplatesRequest.js.map new file mode 100644 index 0000000..91aa8fa --- /dev/null +++ b/lib/model/EntListSelectorTemplatesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntListSelectorTemplatesRequest.js"],"names":["EntListSelectorTemplatesRequest","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,+B;AACjB;AACJ;AACA;AACA;AACA;AAEI,6CAAc;AAAA;;AAAA,oCAoCLC,SApCK;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,+BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntListSelectorTemplatesRequest model module.\n* @module model/EntListSelectorTemplatesRequest\n* @version 2.0\n*/\nexport default class EntListSelectorTemplatesRequest {\n /**\n * Constructs a new EntListSelectorTemplatesRequest.\n * @alias module:model/EntListSelectorTemplatesRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntListSelectorTemplatesRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntListSelectorTemplatesRequest} obj Optional instance to populate.\n * @return {module:model/EntListSelectorTemplatesRequest} The populated EntListSelectorTemplatesRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntListSelectorTemplatesRequest();\n\n \n \n \n\n if (data.hasOwnProperty('Filter')) {\n obj['Filter'] = ApiClient.convertToType(data['Filter'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Filter\n */\n Filter = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntListSelectorTemplatesRequest.js"} \ No newline at end of file diff --git a/lib/model/EntListSelectorTemplatesResponse.js b/lib/model/EntListSelectorTemplatesResponse.js new file mode 100644 index 0000000..0e40b66 --- /dev/null +++ b/lib/model/EntListSelectorTemplatesResponse.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EntSelectorTemplate = _interopRequireDefault(require("./EntSelectorTemplate")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntListSelectorTemplatesResponse model module. +* @module model/EntListSelectorTemplatesResponse +* @version 2.0 +*/ +var EntListSelectorTemplatesResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntListSelectorTemplatesResponse. + * @alias module:model/EntListSelectorTemplatesResponse + * @class + */ + function EntListSelectorTemplatesResponse() { + _classCallCheck(this, EntListSelectorTemplatesResponse); + + _defineProperty(this, "Templates", undefined); + } + /** + * Constructs a EntListSelectorTemplatesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListSelectorTemplatesResponse} obj Optional instance to populate. + * @return {module:model/EntListSelectorTemplatesResponse} The populated EntListSelectorTemplatesResponse instance. + */ + + + _createClass(EntListSelectorTemplatesResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListSelectorTemplatesResponse(); + + if (data.hasOwnProperty('Templates')) { + obj['Templates'] = _ApiClient["default"].convertToType(data['Templates'], [_EntSelectorTemplate["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} Templates + */ + + }]); + + return EntListSelectorTemplatesResponse; +}(); + +exports["default"] = EntListSelectorTemplatesResponse; +//# sourceMappingURL=EntListSelectorTemplatesResponse.js.map diff --git a/lib/model/EntListSelectorTemplatesResponse.js.map b/lib/model/EntListSelectorTemplatesResponse.js.map new file mode 100644 index 0000000..ce9cf02 --- /dev/null +++ b/lib/model/EntListSelectorTemplatesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntListSelectorTemplatesResponse.js"],"names":["EntListSelectorTemplatesResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","EntSelectorTemplate"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,gC;AACjB;AACJ;AACA;AACA;AACA;AAEI,8CAAc;AAAA;;AAAA,uCAoCFC,SApCE;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,gCAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,CAACK,+BAAD,CAA3C,CAAnB;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport EntSelectorTemplate from './EntSelectorTemplate';\n\n\n\n\n\n/**\n* The EntListSelectorTemplatesResponse model module.\n* @module model/EntListSelectorTemplatesResponse\n* @version 2.0\n*/\nexport default class EntListSelectorTemplatesResponse {\n /**\n * Constructs a new EntListSelectorTemplatesResponse.\n * @alias module:model/EntListSelectorTemplatesResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntListSelectorTemplatesResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntListSelectorTemplatesResponse} obj Optional instance to populate.\n * @return {module:model/EntListSelectorTemplatesResponse} The populated EntListSelectorTemplatesResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntListSelectorTemplatesResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Templates')) {\n obj['Templates'] = ApiClient.convertToType(data['Templates'], [EntSelectorTemplate]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Templates\n */\n Templates = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntListSelectorTemplatesResponse.js"} \ No newline at end of file diff --git a/lib/model/EntListSitesResponse.js b/lib/model/EntListSitesResponse.js new file mode 100644 index 0000000..2c83579 --- /dev/null +++ b/lib/model/EntListSitesResponse.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _InstallProxyConfig = _interopRequireDefault(require("./InstallProxyConfig")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntListSitesResponse model module. +* @module model/EntListSitesResponse +* @version 2.0 +*/ +var EntListSitesResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntListSitesResponse. + * @alias module:model/EntListSitesResponse + * @class + */ + function EntListSitesResponse() { + _classCallCheck(this, EntListSitesResponse); + + _defineProperty(this, "Sites", undefined); + } + /** + * Constructs a EntListSitesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListSitesResponse} obj Optional instance to populate. + * @return {module:model/EntListSitesResponse} The populated EntListSitesResponse instance. + */ + + + _createClass(EntListSitesResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListSitesResponse(); + + if (data.hasOwnProperty('Sites')) { + obj['Sites'] = _ApiClient["default"].convertToType(data['Sites'], [_InstallProxyConfig["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} Sites + */ + + }]); + + return EntListSitesResponse; +}(); + +exports["default"] = EntListSitesResponse; +//# sourceMappingURL=EntListSitesResponse.js.map diff --git a/lib/model/EntListSitesResponse.js.map b/lib/model/EntListSitesResponse.js.map new file mode 100644 index 0000000..541c5d2 --- /dev/null +++ b/lib/model/EntListSitesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntListSitesResponse.js"],"names":["EntListSitesResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","InstallProxyConfig"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,oB;AACjB;AACJ;AACA;AACA;AACA;AAEI,kCAAc;AAAA;;AAAA,mCAoCNC,SApCM;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,oBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,CAACK,8BAAD,CAAvC,CAAf;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport InstallProxyConfig from './InstallProxyConfig';\n\n\n\n\n\n/**\n* The EntListSitesResponse model module.\n* @module model/EntListSitesResponse\n* @version 2.0\n*/\nexport default class EntListSitesResponse {\n /**\n * Constructs a new EntListSitesResponse.\n * @alias module:model/EntListSitesResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntListSitesResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntListSitesResponse} obj Optional instance to populate.\n * @return {module:model/EntListSitesResponse} The populated EntListSitesResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntListSitesResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Sites')) {\n obj['Sites'] = ApiClient.convertToType(data['Sites'], [InstallProxyConfig]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Sites\n */\n Sites = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntListSitesResponse.js"} \ No newline at end of file diff --git a/lib/model/EntOAuth2ClientCollection.js b/lib/model/EntOAuth2ClientCollection.js new file mode 100644 index 0000000..c11d49e --- /dev/null +++ b/lib/model/EntOAuth2ClientCollection.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthOAuth2ClientConfig = _interopRequireDefault(require("./AuthOAuth2ClientConfig")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntOAuth2ClientCollection model module. +* @module model/EntOAuth2ClientCollection +* @version 2.0 +*/ +var EntOAuth2ClientCollection = /*#__PURE__*/function () { + /** + * Constructs a new EntOAuth2ClientCollection. + * @alias module:model/EntOAuth2ClientCollection + * @class + */ + function EntOAuth2ClientCollection() { + _classCallCheck(this, EntOAuth2ClientCollection); + + _defineProperty(this, "Clients", undefined); + } + /** + * Constructs a EntOAuth2ClientCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntOAuth2ClientCollection} obj Optional instance to populate. + * @return {module:model/EntOAuth2ClientCollection} The populated EntOAuth2ClientCollection instance. + */ + + + _createClass(EntOAuth2ClientCollection, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntOAuth2ClientCollection(); + + if (data.hasOwnProperty('Clients')) { + obj['Clients'] = _ApiClient["default"].convertToType(data['Clients'], [_AuthOAuth2ClientConfig["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} Clients + */ + + }]); + + return EntOAuth2ClientCollection; +}(); + +exports["default"] = EntOAuth2ClientCollection; +//# sourceMappingURL=EntOAuth2ClientCollection.js.map diff --git a/lib/model/EntOAuth2ClientCollection.js.map b/lib/model/EntOAuth2ClientCollection.js.map new file mode 100644 index 0000000..37ae18f --- /dev/null +++ b/lib/model/EntOAuth2ClientCollection.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntOAuth2ClientCollection.js"],"names":["EntOAuth2ClientCollection","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","AuthOAuth2ClientConfig"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,yB;AACjB;AACJ;AACA;AACA;AACA;AAEI,uCAAc;AAAA;;AAAA,qCAoCJC,SApCI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,yBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,CAACK,kCAAD,CAAzC,CAAjB;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport AuthOAuth2ClientConfig from './AuthOAuth2ClientConfig';\n\n\n\n\n\n/**\n* The EntOAuth2ClientCollection model module.\n* @module model/EntOAuth2ClientCollection\n* @version 2.0\n*/\nexport default class EntOAuth2ClientCollection {\n /**\n * Constructs a new EntOAuth2ClientCollection.\n * @alias module:model/EntOAuth2ClientCollection\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntOAuth2ClientCollection from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntOAuth2ClientCollection} obj Optional instance to populate.\n * @return {module:model/EntOAuth2ClientCollection} The populated EntOAuth2ClientCollection instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntOAuth2ClientCollection();\n\n \n \n \n\n if (data.hasOwnProperty('Clients')) {\n obj['Clients'] = ApiClient.convertToType(data['Clients'], [AuthOAuth2ClientConfig]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Clients\n */\n Clients = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntOAuth2ClientCollection.js"} \ No newline at end of file diff --git a/lib/model/EntOAuth2ClientResponse.js b/lib/model/EntOAuth2ClientResponse.js new file mode 100644 index 0000000..4b33c92 --- /dev/null +++ b/lib/model/EntOAuth2ClientResponse.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntOAuth2ClientResponse model module. +* @module model/EntOAuth2ClientResponse +* @version 2.0 +*/ +var EntOAuth2ClientResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntOAuth2ClientResponse. + * @alias module:model/EntOAuth2ClientResponse + * @class + */ + function EntOAuth2ClientResponse() { + _classCallCheck(this, EntOAuth2ClientResponse); + + _defineProperty(this, "Success", undefined); + } + /** + * Constructs a EntOAuth2ClientResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntOAuth2ClientResponse} obj Optional instance to populate. + * @return {module:model/EntOAuth2ClientResponse} The populated EntOAuth2ClientResponse instance. + */ + + + _createClass(EntOAuth2ClientResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntOAuth2ClientResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return EntOAuth2ClientResponse; +}(); + +exports["default"] = EntOAuth2ClientResponse; +//# sourceMappingURL=EntOAuth2ClientResponse.js.map diff --git a/lib/model/EntOAuth2ClientResponse.js.map b/lib/model/EntOAuth2ClientResponse.js.map new file mode 100644 index 0000000..815c7f9 --- /dev/null +++ b/lib/model/EntOAuth2ClientResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntOAuth2ClientResponse.js"],"names":["EntOAuth2ClientResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,uB;AACjB;AACJ;AACA;AACA;AACA;AAEI,qCAAc;AAAA;;AAAA,qCAoCJC,SApCI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,uBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntOAuth2ClientResponse model module.\n* @module model/EntOAuth2ClientResponse\n* @version 2.0\n*/\nexport default class EntOAuth2ClientResponse {\n /**\n * Constructs a new EntOAuth2ClientResponse.\n * @alias module:model/EntOAuth2ClientResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntOAuth2ClientResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntOAuth2ClientResponse} obj Optional instance to populate.\n * @return {module:model/EntOAuth2ClientResponse} The populated EntOAuth2ClientResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntOAuth2ClientResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntOAuth2ClientResponse.js"} \ No newline at end of file diff --git a/lib/model/EntOAuth2ConnectorCollection.js b/lib/model/EntOAuth2ConnectorCollection.js new file mode 100644 index 0000000..ab9e847 --- /dev/null +++ b/lib/model/EntOAuth2ConnectorCollection.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _AuthOAuth2ConnectorConfig = _interopRequireDefault(require("./AuthOAuth2ConnectorConfig")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntOAuth2ConnectorCollection model module. +* @module model/EntOAuth2ConnectorCollection +* @version 2.0 +*/ +var EntOAuth2ConnectorCollection = /*#__PURE__*/function () { + /** + * Constructs a new EntOAuth2ConnectorCollection. + * @alias module:model/EntOAuth2ConnectorCollection + * @class + */ + function EntOAuth2ConnectorCollection() { + _classCallCheck(this, EntOAuth2ConnectorCollection); + + _defineProperty(this, "connectors", undefined); + } + /** + * Constructs a EntOAuth2ConnectorCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntOAuth2ConnectorCollection} obj Optional instance to populate. + * @return {module:model/EntOAuth2ConnectorCollection} The populated EntOAuth2ConnectorCollection instance. + */ + + + _createClass(EntOAuth2ConnectorCollection, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntOAuth2ConnectorCollection(); + + if (data.hasOwnProperty('connectors')) { + obj['connectors'] = _ApiClient["default"].convertToType(data['connectors'], [_AuthOAuth2ConnectorConfig["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} connectors + */ + + }]); + + return EntOAuth2ConnectorCollection; +}(); + +exports["default"] = EntOAuth2ConnectorCollection; +//# sourceMappingURL=EntOAuth2ConnectorCollection.js.map diff --git a/lib/model/EntOAuth2ConnectorCollection.js.map b/lib/model/EntOAuth2ConnectorCollection.js.map new file mode 100644 index 0000000..72e169e --- /dev/null +++ b/lib/model/EntOAuth2ConnectorCollection.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntOAuth2ConnectorCollection.js"],"names":["EntOAuth2ConnectorCollection","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","AuthOAuth2ConnectorConfig"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,4B;AACjB;AACJ;AACA;AACA;AACA;AAEI,0CAAc;AAAA;;AAAA,wCAoCDC,SApCC;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,4BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,CAACK,qCAAD,CAA5C,CAApB;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport AuthOAuth2ConnectorConfig from './AuthOAuth2ConnectorConfig';\n\n\n\n\n\n/**\n* The EntOAuth2ConnectorCollection model module.\n* @module model/EntOAuth2ConnectorCollection\n* @version 2.0\n*/\nexport default class EntOAuth2ConnectorCollection {\n /**\n * Constructs a new EntOAuth2ConnectorCollection.\n * @alias module:model/EntOAuth2ConnectorCollection\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntOAuth2ConnectorCollection from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntOAuth2ConnectorCollection} obj Optional instance to populate.\n * @return {module:model/EntOAuth2ConnectorCollection} The populated EntOAuth2ConnectorCollection instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntOAuth2ConnectorCollection();\n\n \n \n \n\n if (data.hasOwnProperty('connectors')) {\n obj['connectors'] = ApiClient.convertToType(data['connectors'], [AuthOAuth2ConnectorConfig]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} connectors\n */\n connectors = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntOAuth2ConnectorCollection.js"} \ No newline at end of file diff --git a/lib/model/EntOAuth2ConnectorResponse.js b/lib/model/EntOAuth2ConnectorResponse.js new file mode 100644 index 0000000..581663c --- /dev/null +++ b/lib/model/EntOAuth2ConnectorResponse.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntOAuth2ConnectorResponse model module. +* @module model/EntOAuth2ConnectorResponse +* @version 2.0 +*/ +var EntOAuth2ConnectorResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntOAuth2ConnectorResponse. + * @alias module:model/EntOAuth2ConnectorResponse + * @class + */ + function EntOAuth2ConnectorResponse() { + _classCallCheck(this, EntOAuth2ConnectorResponse); + + _defineProperty(this, "Success", undefined); + } + /** + * Constructs a EntOAuth2ConnectorResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntOAuth2ConnectorResponse} obj Optional instance to populate. + * @return {module:model/EntOAuth2ConnectorResponse} The populated EntOAuth2ConnectorResponse instance. + */ + + + _createClass(EntOAuth2ConnectorResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntOAuth2ConnectorResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return EntOAuth2ConnectorResponse; +}(); + +exports["default"] = EntOAuth2ConnectorResponse; +//# sourceMappingURL=EntOAuth2ConnectorResponse.js.map diff --git a/lib/model/EntOAuth2ConnectorResponse.js.map b/lib/model/EntOAuth2ConnectorResponse.js.map new file mode 100644 index 0000000..c725044 --- /dev/null +++ b/lib/model/EntOAuth2ConnectorResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntOAuth2ConnectorResponse.js"],"names":["EntOAuth2ConnectorResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,0B;AACjB;AACJ;AACA;AACA;AACA;AAEI,wCAAc;AAAA;;AAAA,qCAoCJC,SApCI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,0BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntOAuth2ConnectorResponse model module.\n* @module model/EntOAuth2ConnectorResponse\n* @version 2.0\n*/\nexport default class EntOAuth2ConnectorResponse {\n /**\n * Constructs a new EntOAuth2ConnectorResponse.\n * @alias module:model/EntOAuth2ConnectorResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntOAuth2ConnectorResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntOAuth2ConnectorResponse} obj Optional instance to populate.\n * @return {module:model/EntOAuth2ConnectorResponse} The populated EntOAuth2ConnectorResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntOAuth2ConnectorResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntOAuth2ConnectorResponse.js"} \ No newline at end of file diff --git a/lib/model/EntPersonalAccessTokenRequest.js b/lib/model/EntPersonalAccessTokenRequest.js new file mode 100644 index 0000000..9848439 --- /dev/null +++ b/lib/model/EntPersonalAccessTokenRequest.js @@ -0,0 +1,92 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntPersonalAccessTokenRequest model module. +* @module model/EntPersonalAccessTokenRequest +* @version 2.0 +*/ +var EntPersonalAccessTokenRequest = /*#__PURE__*/function () { + /** + * Constructs a new EntPersonalAccessTokenRequest. + * @alias module:model/EntPersonalAccessTokenRequest + * @class + */ + function EntPersonalAccessTokenRequest() { + _classCallCheck(this, EntPersonalAccessTokenRequest); + + _defineProperty(this, "UserLogin", undefined); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "ExpiresAt", undefined); + + _defineProperty(this, "AutoRefresh", undefined); + + _defineProperty(this, "Scopes", undefined); + } + /** + * Constructs a EntPersonalAccessTokenRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPersonalAccessTokenRequest} obj Optional instance to populate. + * @return {module:model/EntPersonalAccessTokenRequest} The populated EntPersonalAccessTokenRequest instance. + */ + + + _createClass(EntPersonalAccessTokenRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPersonalAccessTokenRequest(); + + if (data.hasOwnProperty('UserLogin')) { + obj['UserLogin'] = _ApiClient["default"].convertToType(data['UserLogin'], 'String'); + } + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('ExpiresAt')) { + obj['ExpiresAt'] = _ApiClient["default"].convertToType(data['ExpiresAt'], 'String'); + } + + if (data.hasOwnProperty('AutoRefresh')) { + obj['AutoRefresh'] = _ApiClient["default"].convertToType(data['AutoRefresh'], 'Number'); + } + + if (data.hasOwnProperty('Scopes')) { + obj['Scopes'] = _ApiClient["default"].convertToType(data['Scopes'], ['String']); + } + } + + return obj; + } + /** + * @member {String} UserLogin + */ + + }]); + + return EntPersonalAccessTokenRequest; +}(); + +exports["default"] = EntPersonalAccessTokenRequest; +//# sourceMappingURL=EntPersonalAccessTokenRequest.js.map diff --git a/lib/model/EntPersonalAccessTokenRequest.js.map b/lib/model/EntPersonalAccessTokenRequest.js.map new file mode 100644 index 0000000..e854aeb --- /dev/null +++ b/lib/model/EntPersonalAccessTokenRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntPersonalAccessTokenRequest.js"],"names":["EntPersonalAccessTokenRequest","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,6B;AACjB;AACJ;AACA;AACA;AACA;AAEI,2CAAc;AAAA;;AAAA,uCAgDFC,SAhDE;;AAAA,mCAoDNA,SApDM;;AAAA,uCAwDFA,SAxDE;;AAAA,yCA4DAA,SA5DA;;AAAA,oCAgELA,SAhEK;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,6BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,QAA3C,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,QAA3C,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,CAAC,QAAD,CAAxC,CAAhB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntPersonalAccessTokenRequest model module.\n* @module model/EntPersonalAccessTokenRequest\n* @version 2.0\n*/\nexport default class EntPersonalAccessTokenRequest {\n /**\n * Constructs a new EntPersonalAccessTokenRequest.\n * @alias module:model/EntPersonalAccessTokenRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntPersonalAccessTokenRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntPersonalAccessTokenRequest} obj Optional instance to populate.\n * @return {module:model/EntPersonalAccessTokenRequest} The populated EntPersonalAccessTokenRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntPersonalAccessTokenRequest();\n\n \n \n \n\n if (data.hasOwnProperty('UserLogin')) {\n obj['UserLogin'] = ApiClient.convertToType(data['UserLogin'], 'String');\n }\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('ExpiresAt')) {\n obj['ExpiresAt'] = ApiClient.convertToType(data['ExpiresAt'], 'String');\n }\n if (data.hasOwnProperty('AutoRefresh')) {\n obj['AutoRefresh'] = ApiClient.convertToType(data['AutoRefresh'], 'Number');\n }\n if (data.hasOwnProperty('Scopes')) {\n obj['Scopes'] = ApiClient.convertToType(data['Scopes'], ['String']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} UserLogin\n */\n UserLogin = undefined;\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {String} ExpiresAt\n */\n ExpiresAt = undefined;\n /**\n * @member {Number} AutoRefresh\n */\n AutoRefresh = undefined;\n /**\n * @member {Array.} Scopes\n */\n Scopes = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntPersonalAccessTokenRequest.js"} \ No newline at end of file diff --git a/lib/model/EntPersonalAccessTokenResponse.js b/lib/model/EntPersonalAccessTokenResponse.js new file mode 100644 index 0000000..7d2f4ed --- /dev/null +++ b/lib/model/EntPersonalAccessTokenResponse.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntPersonalAccessTokenResponse model module. +* @module model/EntPersonalAccessTokenResponse +* @version 2.0 +*/ +var EntPersonalAccessTokenResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntPersonalAccessTokenResponse. + * @alias module:model/EntPersonalAccessTokenResponse + * @class + */ + function EntPersonalAccessTokenResponse() { + _classCallCheck(this, EntPersonalAccessTokenResponse); + + _defineProperty(this, "AccessToken", undefined); + } + /** + * Constructs a EntPersonalAccessTokenResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPersonalAccessTokenResponse} obj Optional instance to populate. + * @return {module:model/EntPersonalAccessTokenResponse} The populated EntPersonalAccessTokenResponse instance. + */ + + + _createClass(EntPersonalAccessTokenResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPersonalAccessTokenResponse(); + + if (data.hasOwnProperty('AccessToken')) { + obj['AccessToken'] = _ApiClient["default"].convertToType(data['AccessToken'], 'String'); + } + } + + return obj; + } + /** + * @member {String} AccessToken + */ + + }]); + + return EntPersonalAccessTokenResponse; +}(); + +exports["default"] = EntPersonalAccessTokenResponse; +//# sourceMappingURL=EntPersonalAccessTokenResponse.js.map diff --git a/lib/model/EntPersonalAccessTokenResponse.js.map b/lib/model/EntPersonalAccessTokenResponse.js.map new file mode 100644 index 0000000..5df1efd --- /dev/null +++ b/lib/model/EntPersonalAccessTokenResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntPersonalAccessTokenResponse.js"],"names":["EntPersonalAccessTokenResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,8B;AACjB;AACJ;AACA;AACA;AACA;AAEI,4CAAc;AAAA;;AAAA,yCAoCAC,SApCA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,8BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntPersonalAccessTokenResponse model module.\n* @module model/EntPersonalAccessTokenResponse\n* @version 2.0\n*/\nexport default class EntPersonalAccessTokenResponse {\n /**\n * Constructs a new EntPersonalAccessTokenResponse.\n * @alias module:model/EntPersonalAccessTokenResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntPersonalAccessTokenResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntPersonalAccessTokenResponse} obj Optional instance to populate.\n * @return {module:model/EntPersonalAccessTokenResponse} The populated EntPersonalAccessTokenResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntPersonalAccessTokenResponse();\n\n \n \n \n\n if (data.hasOwnProperty('AccessToken')) {\n obj['AccessToken'] = ApiClient.convertToType(data['AccessToken'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} AccessToken\n */\n AccessToken = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntPersonalAccessTokenResponse.js"} \ No newline at end of file diff --git a/lib/model/EntPlaygroundRequest.js b/lib/model/EntPlaygroundRequest.js new file mode 100644 index 0000000..a783259 --- /dev/null +++ b/lib/model/EntPlaygroundRequest.js @@ -0,0 +1,82 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsActionMessage = _interopRequireDefault(require("./JobsActionMessage")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntPlaygroundRequest model module. +* @module model/EntPlaygroundRequest +* @version 2.0 +*/ +var EntPlaygroundRequest = /*#__PURE__*/function () { + /** + * Constructs a new EntPlaygroundRequest. + * @alias module:model/EntPlaygroundRequest + * @class + */ + function EntPlaygroundRequest() { + _classCallCheck(this, EntPlaygroundRequest); + + _defineProperty(this, "Input", undefined); + + _defineProperty(this, "LastOutputJsonBody", undefined); + + _defineProperty(this, "Code", undefined); + } + /** + * Constructs a EntPlaygroundRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPlaygroundRequest} obj Optional instance to populate. + * @return {module:model/EntPlaygroundRequest} The populated EntPlaygroundRequest instance. + */ + + + _createClass(EntPlaygroundRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPlaygroundRequest(); + + if (data.hasOwnProperty('Input')) { + obj['Input'] = _JobsActionMessage["default"].constructFromObject(data['Input']); + } + + if (data.hasOwnProperty('LastOutputJsonBody')) { + obj['LastOutputJsonBody'] = _ApiClient["default"].convertToType(data['LastOutputJsonBody'], 'String'); + } + + if (data.hasOwnProperty('Code')) { + obj['Code'] = _ApiClient["default"].convertToType(data['Code'], 'String'); + } + } + + return obj; + } + /** + * @member {module:model/JobsActionMessage} Input + */ + + }]); + + return EntPlaygroundRequest; +}(); + +exports["default"] = EntPlaygroundRequest; +//# sourceMappingURL=EntPlaygroundRequest.js.map diff --git a/lib/model/EntPlaygroundRequest.js.map b/lib/model/EntPlaygroundRequest.js.map new file mode 100644 index 0000000..b2ca4f7 --- /dev/null +++ b/lib/model/EntPlaygroundRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntPlaygroundRequest.js"],"names":["EntPlaygroundRequest","undefined","data","obj","hasOwnProperty","JobsActionMessage","constructFromObject","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,oB;AACjB;AACJ;AACA;AACA;AACA;AAEI,kCAAc;AAAA;;AAAA,mCA0CNC,SA1CM;;AAAA,gDA8COA,SA9CP;;AAAA,kCAkDPA,SAlDO;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,oBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,8BAAkBC,mBAAlB,CAAsCJ,IAAI,CAAC,OAAD,CAA1C,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,oBAApB,CAAJ,EAA+C;AAC3CD,UAAAA,GAAG,CAAC,oBAAD,CAAH,GAA4BI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,oBAAD,CAA5B,EAAoD,QAApD,CAA5B;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsActionMessage from './JobsActionMessage';\n\n\n\n\n\n/**\n* The EntPlaygroundRequest model module.\n* @module model/EntPlaygroundRequest\n* @version 2.0\n*/\nexport default class EntPlaygroundRequest {\n /**\n * Constructs a new EntPlaygroundRequest.\n * @alias module:model/EntPlaygroundRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntPlaygroundRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntPlaygroundRequest} obj Optional instance to populate.\n * @return {module:model/EntPlaygroundRequest} The populated EntPlaygroundRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntPlaygroundRequest();\n\n \n \n \n\n if (data.hasOwnProperty('Input')) {\n obj['Input'] = JobsActionMessage.constructFromObject(data['Input']);\n }\n if (data.hasOwnProperty('LastOutputJsonBody')) {\n obj['LastOutputJsonBody'] = ApiClient.convertToType(data['LastOutputJsonBody'], 'String');\n }\n if (data.hasOwnProperty('Code')) {\n obj['Code'] = ApiClient.convertToType(data['Code'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/JobsActionMessage} Input\n */\n Input = undefined;\n /**\n * @member {String} LastOutputJsonBody\n */\n LastOutputJsonBody = undefined;\n /**\n * @member {String} Code\n */\n Code = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntPlaygroundRequest.js"} \ No newline at end of file diff --git a/lib/model/EntPlaygroundResponse.js b/lib/model/EntPlaygroundResponse.js new file mode 100644 index 0000000..7a4b206 --- /dev/null +++ b/lib/model/EntPlaygroundResponse.js @@ -0,0 +1,88 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsActionMessage = _interopRequireDefault(require("./JobsActionMessage")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntPlaygroundResponse model module. +* @module model/EntPlaygroundResponse +* @version 2.0 +*/ +var EntPlaygroundResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntPlaygroundResponse. + * @alias module:model/EntPlaygroundResponse + * @class + */ + function EntPlaygroundResponse() { + _classCallCheck(this, EntPlaygroundResponse); + + _defineProperty(this, "Input", undefined); + + _defineProperty(this, "LastOutputJsonBody", undefined); + + _defineProperty(this, "Code", undefined); + + _defineProperty(this, "Output", undefined); + } + /** + * Constructs a EntPlaygroundResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPlaygroundResponse} obj Optional instance to populate. + * @return {module:model/EntPlaygroundResponse} The populated EntPlaygroundResponse instance. + */ + + + _createClass(EntPlaygroundResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPlaygroundResponse(); + + if (data.hasOwnProperty('Input')) { + obj['Input'] = _JobsActionMessage["default"].constructFromObject(data['Input']); + } + + if (data.hasOwnProperty('LastOutputJsonBody')) { + obj['LastOutputJsonBody'] = _ApiClient["default"].convertToType(data['LastOutputJsonBody'], 'String'); + } + + if (data.hasOwnProperty('Code')) { + obj['Code'] = _ApiClient["default"].convertToType(data['Code'], 'String'); + } + + if (data.hasOwnProperty('Output')) { + obj['Output'] = _ApiClient["default"].convertToType(data['Output'], 'String'); + } + } + + return obj; + } + /** + * @member {module:model/JobsActionMessage} Input + */ + + }]); + + return EntPlaygroundResponse; +}(); + +exports["default"] = EntPlaygroundResponse; +//# sourceMappingURL=EntPlaygroundResponse.js.map diff --git a/lib/model/EntPlaygroundResponse.js.map b/lib/model/EntPlaygroundResponse.js.map new file mode 100644 index 0000000..25e1c19 --- /dev/null +++ b/lib/model/EntPlaygroundResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntPlaygroundResponse.js"],"names":["EntPlaygroundResponse","undefined","data","obj","hasOwnProperty","JobsActionMessage","constructFromObject","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,qB;AACjB;AACJ;AACA;AACA;AACA;AAEI,mCAAc;AAAA;;AAAA,mCA6CNC,SA7CM;;AAAA,gDAiDOA,SAjDP;;AAAA,kCAqDPA,SArDO;;AAAA,oCAyDLA,SAzDK;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,qBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,8BAAkBC,mBAAlB,CAAsCJ,IAAI,CAAC,OAAD,CAA1C,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,oBAApB,CAAJ,EAA+C;AAC3CD,UAAAA,GAAG,CAAC,oBAAD,CAAH,GAA4BI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,oBAAD,CAA5B,EAAoD,QAApD,CAA5B;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsActionMessage from './JobsActionMessage';\n\n\n\n\n\n/**\n* The EntPlaygroundResponse model module.\n* @module model/EntPlaygroundResponse\n* @version 2.0\n*/\nexport default class EntPlaygroundResponse {\n /**\n * Constructs a new EntPlaygroundResponse.\n * @alias module:model/EntPlaygroundResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntPlaygroundResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntPlaygroundResponse} obj Optional instance to populate.\n * @return {module:model/EntPlaygroundResponse} The populated EntPlaygroundResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntPlaygroundResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Input')) {\n obj['Input'] = JobsActionMessage.constructFromObject(data['Input']);\n }\n if (data.hasOwnProperty('LastOutputJsonBody')) {\n obj['LastOutputJsonBody'] = ApiClient.convertToType(data['LastOutputJsonBody'], 'String');\n }\n if (data.hasOwnProperty('Code')) {\n obj['Code'] = ApiClient.convertToType(data['Code'], 'String');\n }\n if (data.hasOwnProperty('Output')) {\n obj['Output'] = ApiClient.convertToType(data['Output'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/JobsActionMessage} Input\n */\n Input = undefined;\n /**\n * @member {String} LastOutputJsonBody\n */\n LastOutputJsonBody = undefined;\n /**\n * @member {String} Code\n */\n Code = undefined;\n /**\n * @member {String} Output\n */\n Output = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntPlaygroundResponse.js"} \ No newline at end of file diff --git a/lib/model/EntPutActionTemplateRequest.js b/lib/model/EntPutActionTemplateRequest.js new file mode 100644 index 0000000..dafffe2 --- /dev/null +++ b/lib/model/EntPutActionTemplateRequest.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EntActionTemplate = _interopRequireDefault(require("./EntActionTemplate")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntPutActionTemplateRequest model module. +* @module model/EntPutActionTemplateRequest +* @version 2.0 +*/ +var EntPutActionTemplateRequest = /*#__PURE__*/function () { + /** + * Constructs a new EntPutActionTemplateRequest. + * @alias module:model/EntPutActionTemplateRequest + * @class + */ + function EntPutActionTemplateRequest() { + _classCallCheck(this, EntPutActionTemplateRequest); + + _defineProperty(this, "Template", undefined); + } + /** + * Constructs a EntPutActionTemplateRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPutActionTemplateRequest} obj Optional instance to populate. + * @return {module:model/EntPutActionTemplateRequest} The populated EntPutActionTemplateRequest instance. + */ + + + _createClass(EntPutActionTemplateRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPutActionTemplateRequest(); + + if (data.hasOwnProperty('Template')) { + obj['Template'] = _EntActionTemplate["default"].constructFromObject(data['Template']); + } + } + + return obj; + } + /** + * @member {module:model/EntActionTemplate} Template + */ + + }]); + + return EntPutActionTemplateRequest; +}(); + +exports["default"] = EntPutActionTemplateRequest; +//# sourceMappingURL=EntPutActionTemplateRequest.js.map diff --git a/lib/model/EntPutActionTemplateRequest.js.map b/lib/model/EntPutActionTemplateRequest.js.map new file mode 100644 index 0000000..561bf02 --- /dev/null +++ b/lib/model/EntPutActionTemplateRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntPutActionTemplateRequest.js"],"names":["EntPutActionTemplateRequest","undefined","data","obj","hasOwnProperty","EntActionTemplate","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,2B;AACjB;AACJ;AACA;AACA;AACA;AAEI,yCAAc;AAAA;;AAAA,sCAoCHC,SApCG;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,2BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,8BAAkBC,mBAAlB,CAAsCJ,IAAI,CAAC,UAAD,CAA1C,CAAlB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport EntActionTemplate from './EntActionTemplate';\n\n\n\n\n\n/**\n* The EntPutActionTemplateRequest model module.\n* @module model/EntPutActionTemplateRequest\n* @version 2.0\n*/\nexport default class EntPutActionTemplateRequest {\n /**\n * Constructs a new EntPutActionTemplateRequest.\n * @alias module:model/EntPutActionTemplateRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntPutActionTemplateRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntPutActionTemplateRequest} obj Optional instance to populate.\n * @return {module:model/EntPutActionTemplateRequest} The populated EntPutActionTemplateRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntPutActionTemplateRequest();\n\n \n \n \n\n if (data.hasOwnProperty('Template')) {\n obj['Template'] = EntActionTemplate.constructFromObject(data['Template']);\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/EntActionTemplate} Template\n */\n Template = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntPutActionTemplateRequest.js"} \ No newline at end of file diff --git a/lib/model/EntPutActionTemplateResponse.js b/lib/model/EntPutActionTemplateResponse.js new file mode 100644 index 0000000..0ed088e --- /dev/null +++ b/lib/model/EntPutActionTemplateResponse.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EntActionTemplate = _interopRequireDefault(require("./EntActionTemplate")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntPutActionTemplateResponse model module. +* @module model/EntPutActionTemplateResponse +* @version 2.0 +*/ +var EntPutActionTemplateResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntPutActionTemplateResponse. + * @alias module:model/EntPutActionTemplateResponse + * @class + */ + function EntPutActionTemplateResponse() { + _classCallCheck(this, EntPutActionTemplateResponse); + + _defineProperty(this, "Template", undefined); + } + /** + * Constructs a EntPutActionTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPutActionTemplateResponse} obj Optional instance to populate. + * @return {module:model/EntPutActionTemplateResponse} The populated EntPutActionTemplateResponse instance. + */ + + + _createClass(EntPutActionTemplateResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPutActionTemplateResponse(); + + if (data.hasOwnProperty('Template')) { + obj['Template'] = _EntActionTemplate["default"].constructFromObject(data['Template']); + } + } + + return obj; + } + /** + * @member {module:model/EntActionTemplate} Template + */ + + }]); + + return EntPutActionTemplateResponse; +}(); + +exports["default"] = EntPutActionTemplateResponse; +//# sourceMappingURL=EntPutActionTemplateResponse.js.map diff --git a/lib/model/EntPutActionTemplateResponse.js.map b/lib/model/EntPutActionTemplateResponse.js.map new file mode 100644 index 0000000..11e3e05 --- /dev/null +++ b/lib/model/EntPutActionTemplateResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntPutActionTemplateResponse.js"],"names":["EntPutActionTemplateResponse","undefined","data","obj","hasOwnProperty","EntActionTemplate","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,4B;AACjB;AACJ;AACA;AACA;AACA;AAEI,0CAAc;AAAA;;AAAA,sCAoCHC,SApCG;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,4BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,8BAAkBC,mBAAlB,CAAsCJ,IAAI,CAAC,UAAD,CAA1C,CAAlB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport EntActionTemplate from './EntActionTemplate';\n\n\n\n\n\n/**\n* The EntPutActionTemplateResponse model module.\n* @module model/EntPutActionTemplateResponse\n* @version 2.0\n*/\nexport default class EntPutActionTemplateResponse {\n /**\n * Constructs a new EntPutActionTemplateResponse.\n * @alias module:model/EntPutActionTemplateResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntPutActionTemplateResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntPutActionTemplateResponse} obj Optional instance to populate.\n * @return {module:model/EntPutActionTemplateResponse} The populated EntPutActionTemplateResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntPutActionTemplateResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Template')) {\n obj['Template'] = EntActionTemplate.constructFromObject(data['Template']);\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/EntActionTemplate} Template\n */\n Template = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntPutActionTemplateResponse.js"} \ No newline at end of file diff --git a/lib/model/EntPutJobTemplateRequest.js b/lib/model/EntPutJobTemplateRequest.js new file mode 100644 index 0000000..1292033 --- /dev/null +++ b/lib/model/EntPutJobTemplateRequest.js @@ -0,0 +1,76 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsJob = _interopRequireDefault(require("./JobsJob")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntPutJobTemplateRequest model module. +* @module model/EntPutJobTemplateRequest +* @version 2.0 +*/ +var EntPutJobTemplateRequest = /*#__PURE__*/function () { + /** + * Constructs a new EntPutJobTemplateRequest. + * @alias module:model/EntPutJobTemplateRequest + * @class + */ + function EntPutJobTemplateRequest() { + _classCallCheck(this, EntPutJobTemplateRequest); + + _defineProperty(this, "Name", undefined); + + _defineProperty(this, "Job", undefined); + } + /** + * Constructs a EntPutJobTemplateRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPutJobTemplateRequest} obj Optional instance to populate. + * @return {module:model/EntPutJobTemplateRequest} The populated EntPutJobTemplateRequest instance. + */ + + + _createClass(EntPutJobTemplateRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPutJobTemplateRequest(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('Job')) { + obj['Job'] = _JobsJob["default"].constructFromObject(data['Job']); + } + } + + return obj; + } + /** + * @member {String} Name + */ + + }]); + + return EntPutJobTemplateRequest; +}(); + +exports["default"] = EntPutJobTemplateRequest; +//# sourceMappingURL=EntPutJobTemplateRequest.js.map diff --git a/lib/model/EntPutJobTemplateRequest.js.map b/lib/model/EntPutJobTemplateRequest.js.map new file mode 100644 index 0000000..d70b714 --- /dev/null +++ b/lib/model/EntPutJobTemplateRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntPutJobTemplateRequest.js"],"names":["EntPutJobTemplateRequest","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","JobsJob","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,wB;AACjB;AACJ;AACA;AACA;AACA;AAEI,sCAAc;AAAA;;AAAA,kCAuCPC,SAvCO;;AAAA,iCA2CRA,SA3CQ;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,wBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,KAApB,CAAJ,EAAgC;AAC5BD,UAAAA,GAAG,CAAC,KAAD,CAAH,GAAaI,oBAAQC,mBAAR,CAA4BN,IAAI,CAAC,KAAD,CAAhC,CAAb;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsJob from './JobsJob';\n\n\n\n\n\n/**\n* The EntPutJobTemplateRequest model module.\n* @module model/EntPutJobTemplateRequest\n* @version 2.0\n*/\nexport default class EntPutJobTemplateRequest {\n /**\n * Constructs a new EntPutJobTemplateRequest.\n * @alias module:model/EntPutJobTemplateRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntPutJobTemplateRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntPutJobTemplateRequest} obj Optional instance to populate.\n * @return {module:model/EntPutJobTemplateRequest} The populated EntPutJobTemplateRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntPutJobTemplateRequest();\n\n \n \n \n\n if (data.hasOwnProperty('Name')) {\n obj['Name'] = ApiClient.convertToType(data['Name'], 'String');\n }\n if (data.hasOwnProperty('Job')) {\n obj['Job'] = JobsJob.constructFromObject(data['Job']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Name\n */\n Name = undefined;\n /**\n * @member {module:model/JobsJob} Job\n */\n Job = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntPutJobTemplateRequest.js"} \ No newline at end of file diff --git a/lib/model/EntPutJobTemplateResponse.js b/lib/model/EntPutJobTemplateResponse.js new file mode 100644 index 0000000..6c6535f --- /dev/null +++ b/lib/model/EntPutJobTemplateResponse.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsJob = _interopRequireDefault(require("./JobsJob")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntPutJobTemplateResponse model module. +* @module model/EntPutJobTemplateResponse +* @version 2.0 +*/ +var EntPutJobTemplateResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntPutJobTemplateResponse. + * @alias module:model/EntPutJobTemplateResponse + * @class + */ + function EntPutJobTemplateResponse() { + _classCallCheck(this, EntPutJobTemplateResponse); + + _defineProperty(this, "Job", undefined); + } + /** + * Constructs a EntPutJobTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPutJobTemplateResponse} obj Optional instance to populate. + * @return {module:model/EntPutJobTemplateResponse} The populated EntPutJobTemplateResponse instance. + */ + + + _createClass(EntPutJobTemplateResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPutJobTemplateResponse(); + + if (data.hasOwnProperty('Job')) { + obj['Job'] = _JobsJob["default"].constructFromObject(data['Job']); + } + } + + return obj; + } + /** + * @member {module:model/JobsJob} Job + */ + + }]); + + return EntPutJobTemplateResponse; +}(); + +exports["default"] = EntPutJobTemplateResponse; +//# sourceMappingURL=EntPutJobTemplateResponse.js.map diff --git a/lib/model/EntPutJobTemplateResponse.js.map b/lib/model/EntPutJobTemplateResponse.js.map new file mode 100644 index 0000000..d0dc1e4 --- /dev/null +++ b/lib/model/EntPutJobTemplateResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntPutJobTemplateResponse.js"],"names":["EntPutJobTemplateResponse","undefined","data","obj","hasOwnProperty","JobsJob","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,yB;AACjB;AACJ;AACA;AACA;AACA;AAEI,uCAAc;AAAA;;AAAA,iCAoCRC,SApCQ;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,yBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,KAApB,CAAJ,EAAgC;AAC5BD,UAAAA,GAAG,CAAC,KAAD,CAAH,GAAaE,oBAAQC,mBAAR,CAA4BJ,IAAI,CAAC,KAAD,CAAhC,CAAb;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsJob from './JobsJob';\n\n\n\n\n\n/**\n* The EntPutJobTemplateResponse model module.\n* @module model/EntPutJobTemplateResponse\n* @version 2.0\n*/\nexport default class EntPutJobTemplateResponse {\n /**\n * Constructs a new EntPutJobTemplateResponse.\n * @alias module:model/EntPutJobTemplateResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntPutJobTemplateResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntPutJobTemplateResponse} obj Optional instance to populate.\n * @return {module:model/EntPutJobTemplateResponse} The populated EntPutJobTemplateResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntPutJobTemplateResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Job')) {\n obj['Job'] = JobsJob.constructFromObject(data['Job']);\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/JobsJob} Job\n */\n Job = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntPutJobTemplateResponse.js"} \ No newline at end of file diff --git a/lib/model/EntPutSelectorTemplateRequest.js b/lib/model/EntPutSelectorTemplateRequest.js new file mode 100644 index 0000000..80f6506 --- /dev/null +++ b/lib/model/EntPutSelectorTemplateRequest.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _EntSelectorTemplate = _interopRequireDefault(require("./EntSelectorTemplate")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntPutSelectorTemplateRequest model module. +* @module model/EntPutSelectorTemplateRequest +* @version 2.0 +*/ +var EntPutSelectorTemplateRequest = /*#__PURE__*/function () { + /** + * Constructs a new EntPutSelectorTemplateRequest. + * @alias module:model/EntPutSelectorTemplateRequest + * @class + */ + function EntPutSelectorTemplateRequest() { + _classCallCheck(this, EntPutSelectorTemplateRequest); + + _defineProperty(this, "Template", undefined); + } + /** + * Constructs a EntPutSelectorTemplateRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPutSelectorTemplateRequest} obj Optional instance to populate. + * @return {module:model/EntPutSelectorTemplateRequest} The populated EntPutSelectorTemplateRequest instance. + */ + + + _createClass(EntPutSelectorTemplateRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPutSelectorTemplateRequest(); + + if (data.hasOwnProperty('Template')) { + obj['Template'] = _EntSelectorTemplate["default"].constructFromObject(data['Template']); + } + } + + return obj; + } + /** + * @member {module:model/EntSelectorTemplate} Template + */ + + }]); + + return EntPutSelectorTemplateRequest; +}(); + +exports["default"] = EntPutSelectorTemplateRequest; +//# sourceMappingURL=EntPutSelectorTemplateRequest.js.map diff --git a/lib/model/EntPutSelectorTemplateRequest.js.map b/lib/model/EntPutSelectorTemplateRequest.js.map new file mode 100644 index 0000000..f7c6cc9 --- /dev/null +++ b/lib/model/EntPutSelectorTemplateRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntPutSelectorTemplateRequest.js"],"names":["EntPutSelectorTemplateRequest","undefined","data","obj","hasOwnProperty","EntSelectorTemplate","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,6B;AACjB;AACJ;AACA;AACA;AACA;AAEI,2CAAc;AAAA;;AAAA,sCAoCHC,SApCG;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,6BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,gCAAoBC,mBAApB,CAAwCJ,IAAI,CAAC,UAAD,CAA5C,CAAlB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport EntSelectorTemplate from './EntSelectorTemplate';\n\n\n\n\n\n/**\n* The EntPutSelectorTemplateRequest model module.\n* @module model/EntPutSelectorTemplateRequest\n* @version 2.0\n*/\nexport default class EntPutSelectorTemplateRequest {\n /**\n * Constructs a new EntPutSelectorTemplateRequest.\n * @alias module:model/EntPutSelectorTemplateRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntPutSelectorTemplateRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntPutSelectorTemplateRequest} obj Optional instance to populate.\n * @return {module:model/EntPutSelectorTemplateRequest} The populated EntPutSelectorTemplateRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntPutSelectorTemplateRequest();\n\n \n \n \n\n if (data.hasOwnProperty('Template')) {\n obj['Template'] = EntSelectorTemplate.constructFromObject(data['Template']);\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/EntSelectorTemplate} Template\n */\n Template = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntPutSelectorTemplateRequest.js"} \ No newline at end of file diff --git a/lib/model/EntPutSelectorTemplateResponse.js b/lib/model/EntPutSelectorTemplateResponse.js new file mode 100644 index 0000000..1e3f27f --- /dev/null +++ b/lib/model/EntPutSelectorTemplateResponse.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntPutSelectorTemplateResponse model module. +* @module model/EntPutSelectorTemplateResponse +* @version 2.0 +*/ +var EntPutSelectorTemplateResponse = /*#__PURE__*/function () { + /** + * Constructs a new EntPutSelectorTemplateResponse. + * @alias module:model/EntPutSelectorTemplateResponse + * @class + */ + function EntPutSelectorTemplateResponse() { + _classCallCheck(this, EntPutSelectorTemplateResponse); + + _defineProperty(this, "Success", undefined); + } + /** + * Constructs a EntPutSelectorTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPutSelectorTemplateResponse} obj Optional instance to populate. + * @return {module:model/EntPutSelectorTemplateResponse} The populated EntPutSelectorTemplateResponse instance. + */ + + + _createClass(EntPutSelectorTemplateResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPutSelectorTemplateResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return EntPutSelectorTemplateResponse; +}(); + +exports["default"] = EntPutSelectorTemplateResponse; +//# sourceMappingURL=EntPutSelectorTemplateResponse.js.map diff --git a/lib/model/EntPutSelectorTemplateResponse.js.map b/lib/model/EntPutSelectorTemplateResponse.js.map new file mode 100644 index 0000000..8315eaf --- /dev/null +++ b/lib/model/EntPutSelectorTemplateResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntPutSelectorTemplateResponse.js"],"names":["EntPutSelectorTemplateResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,8B;AACjB;AACJ;AACA;AACA;AACA;AAEI,4CAAc;AAAA;;AAAA,qCAoCJC,SApCI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,8BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The EntPutSelectorTemplateResponse model module.\n* @module model/EntPutSelectorTemplateResponse\n* @version 2.0\n*/\nexport default class EntPutSelectorTemplateResponse {\n /**\n * Constructs a new EntPutSelectorTemplateResponse.\n * @alias module:model/EntPutSelectorTemplateResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntPutSelectorTemplateResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntPutSelectorTemplateResponse} obj Optional instance to populate.\n * @return {module:model/EntPutSelectorTemplateResponse} The populated EntPutSelectorTemplateResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntPutSelectorTemplateResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntPutSelectorTemplateResponse.js"} \ No newline at end of file diff --git a/lib/model/EntSelectorTemplate.js b/lib/model/EntSelectorTemplate.js new file mode 100644 index 0000000..c7b0c5a --- /dev/null +++ b/lib/model/EntSelectorTemplate.js @@ -0,0 +1,134 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsActionOutputFilter = _interopRequireDefault(require("./JobsActionOutputFilter")); + +var _JobsContextMetaFilter = _interopRequireDefault(require("./JobsContextMetaFilter")); + +var _JobsDataSourceSelector = _interopRequireDefault(require("./JobsDataSourceSelector")); + +var _JobsIdmSelector = _interopRequireDefault(require("./JobsIdmSelector")); + +var _JobsNodesSelector = _interopRequireDefault(require("./JobsNodesSelector")); + +var _JobsTriggerFilter = _interopRequireDefault(require("./JobsTriggerFilter")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The EntSelectorTemplate model module. +* @module model/EntSelectorTemplate +* @version 2.0 +*/ +var EntSelectorTemplate = /*#__PURE__*/function () { + /** + * Constructs a new EntSelectorTemplate. + * @alias module:model/EntSelectorTemplate + * @class + */ + function EntSelectorTemplate() { + _classCallCheck(this, EntSelectorTemplate); + + _defineProperty(this, "Name", undefined); + + _defineProperty(this, "AsFilter", undefined); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "Description", undefined); + + _defineProperty(this, "NodesSelector", undefined); + + _defineProperty(this, "IdmSelector", undefined); + + _defineProperty(this, "ActionOutputFilter", undefined); + + _defineProperty(this, "ContextMetaFilter", undefined); + + _defineProperty(this, "DataSourceSelector", undefined); + + _defineProperty(this, "TriggerFilter", undefined); + } + /** + * Constructs a EntSelectorTemplate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntSelectorTemplate} obj Optional instance to populate. + * @return {module:model/EntSelectorTemplate} The populated EntSelectorTemplate instance. + */ + + + _createClass(EntSelectorTemplate, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EntSelectorTemplate(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('AsFilter')) { + obj['AsFilter'] = _ApiClient["default"].convertToType(data['AsFilter'], 'Boolean'); + } + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + + if (data.hasOwnProperty('NodesSelector')) { + obj['NodesSelector'] = _JobsNodesSelector["default"].constructFromObject(data['NodesSelector']); + } + + if (data.hasOwnProperty('IdmSelector')) { + obj['IdmSelector'] = _JobsIdmSelector["default"].constructFromObject(data['IdmSelector']); + } + + if (data.hasOwnProperty('ActionOutputFilter')) { + obj['ActionOutputFilter'] = _JobsActionOutputFilter["default"].constructFromObject(data['ActionOutputFilter']); + } + + if (data.hasOwnProperty('ContextMetaFilter')) { + obj['ContextMetaFilter'] = _JobsContextMetaFilter["default"].constructFromObject(data['ContextMetaFilter']); + } + + if (data.hasOwnProperty('DataSourceSelector')) { + obj['DataSourceSelector'] = _JobsDataSourceSelector["default"].constructFromObject(data['DataSourceSelector']); + } + + if (data.hasOwnProperty('TriggerFilter')) { + obj['TriggerFilter'] = _JobsTriggerFilter["default"].constructFromObject(data['TriggerFilter']); + } + } + + return obj; + } + /** + * @member {String} Name + */ + + }]); + + return EntSelectorTemplate; +}(); + +exports["default"] = EntSelectorTemplate; +//# sourceMappingURL=EntSelectorTemplate.js.map diff --git a/lib/model/EntSelectorTemplate.js.map b/lib/model/EntSelectorTemplate.js.map new file mode 100644 index 0000000..3bf56e3 --- /dev/null +++ b/lib/model/EntSelectorTemplate.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/EntSelectorTemplate.js"],"names":["EntSelectorTemplate","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","JobsNodesSelector","constructFromObject","JobsIdmSelector","JobsActionOutputFilter","JobsContextMetaFilter","JobsDataSourceSelector","JobsTriggerFilter"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsActionOutputFilter from './JobsActionOutputFilter';\nimport JobsContextMetaFilter from './JobsContextMetaFilter';\nimport JobsDataSourceSelector from './JobsDataSourceSelector';\nimport JobsIdmSelector from './JobsIdmSelector';\nimport JobsNodesSelector from './JobsNodesSelector';\nimport JobsTriggerFilter from './JobsTriggerFilter';\n\n\n\n\n\n/**\n* The EntSelectorTemplate model module.\n* @module model/EntSelectorTemplate\n* @version 2.0\n*/\nexport default class EntSelectorTemplate {\n /**\n * Constructs a new EntSelectorTemplate.\n * @alias module:model/EntSelectorTemplate\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a EntSelectorTemplate from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/EntSelectorTemplate} obj Optional instance to populate.\n * @return {module:model/EntSelectorTemplate} The populated EntSelectorTemplate instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new EntSelectorTemplate();\n\n \n \n \n\n if (data.hasOwnProperty('Name')) {\n obj['Name'] = ApiClient.convertToType(data['Name'], 'String');\n }\n if (data.hasOwnProperty('AsFilter')) {\n obj['AsFilter'] = ApiClient.convertToType(data['AsFilter'], 'Boolean');\n }\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n if (data.hasOwnProperty('NodesSelector')) {\n obj['NodesSelector'] = JobsNodesSelector.constructFromObject(data['NodesSelector']);\n }\n if (data.hasOwnProperty('IdmSelector')) {\n obj['IdmSelector'] = JobsIdmSelector.constructFromObject(data['IdmSelector']);\n }\n if (data.hasOwnProperty('ActionOutputFilter')) {\n obj['ActionOutputFilter'] = JobsActionOutputFilter.constructFromObject(data['ActionOutputFilter']);\n }\n if (data.hasOwnProperty('ContextMetaFilter')) {\n obj['ContextMetaFilter'] = JobsContextMetaFilter.constructFromObject(data['ContextMetaFilter']);\n }\n if (data.hasOwnProperty('DataSourceSelector')) {\n obj['DataSourceSelector'] = JobsDataSourceSelector.constructFromObject(data['DataSourceSelector']);\n }\n if (data.hasOwnProperty('TriggerFilter')) {\n obj['TriggerFilter'] = JobsTriggerFilter.constructFromObject(data['TriggerFilter']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Name\n */\n Name = undefined;\n /**\n * @member {Boolean} AsFilter\n */\n AsFilter = undefined;\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n /**\n * @member {module:model/JobsNodesSelector} NodesSelector\n */\n NodesSelector = undefined;\n /**\n * @member {module:model/JobsIdmSelector} IdmSelector\n */\n IdmSelector = undefined;\n /**\n * @member {module:model/JobsActionOutputFilter} ActionOutputFilter\n */\n ActionOutputFilter = undefined;\n /**\n * @member {module:model/JobsContextMetaFilter} ContextMetaFilter\n */\n ContextMetaFilter = undefined;\n /**\n * @member {module:model/JobsDataSourceSelector} DataSourceSelector\n */\n DataSourceSelector = undefined;\n /**\n * @member {module:model/JobsTriggerFilter} TriggerFilter\n */\n TriggerFilter = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"EntSelectorTemplate.js"} \ No newline at end of file diff --git a/lib/model/IdmACL.js b/lib/model/IdmACL.js new file mode 100644 index 0000000..6940d36 --- /dev/null +++ b/lib/model/IdmACL.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _IdmACLAction = _interopRequireDefault(require("./IdmACLAction")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IdmACL model module. +* @module model/IdmACL +* @version 2.0 +*/ +var IdmACL = /*#__PURE__*/function () { + /** + * Constructs a new IdmACL. + * ACL are the basic flags that can be put anywhere in the tree to provide some specific rights to a given role. The context of how they apply can be fine-tuned by workspace. + * @alias module:model/IdmACL + * @class + */ + function IdmACL() { + _classCallCheck(this, IdmACL); + + _defineProperty(this, "ID", undefined); + + _defineProperty(this, "Action", undefined); + + _defineProperty(this, "RoleID", undefined); + + _defineProperty(this, "WorkspaceID", undefined); + + _defineProperty(this, "NodeID", undefined); + } + /** + * Constructs a IdmACL from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmACL} obj Optional instance to populate. + * @return {module:model/IdmACL} The populated IdmACL instance. + */ + + + _createClass(IdmACL, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmACL(); + + if (data.hasOwnProperty('ID')) { + obj['ID'] = _ApiClient["default"].convertToType(data['ID'], 'String'); + } + + if (data.hasOwnProperty('Action')) { + obj['Action'] = _IdmACLAction["default"].constructFromObject(data['Action']); + } + + if (data.hasOwnProperty('RoleID')) { + obj['RoleID'] = _ApiClient["default"].convertToType(data['RoleID'], 'String'); + } + + if (data.hasOwnProperty('WorkspaceID')) { + obj['WorkspaceID'] = _ApiClient["default"].convertToType(data['WorkspaceID'], 'String'); + } + + if (data.hasOwnProperty('NodeID')) { + obj['NodeID'] = _ApiClient["default"].convertToType(data['NodeID'], 'String'); + } + } + + return obj; + } + /** + * @member {String} ID + */ + + }]); + + return IdmACL; +}(); + +exports["default"] = IdmACL; +//# sourceMappingURL=IdmACL.js.map diff --git a/lib/model/IdmACL.js.map b/lib/model/IdmACL.js.map new file mode 100644 index 0000000..1b685c5 --- /dev/null +++ b/lib/model/IdmACL.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IdmACL.js"],"names":["IdmACL","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","IdmACLAction","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,M;AACjB;AACJ;AACA;AACA;AACA;AACA;AAEI,oBAAc;AAAA;;AAAA,gCAgDTC,SAhDS;;AAAA,oCAoDLA,SApDK;;AAAA,oCAwDLA,SAxDK;;AAAA,yCA4DAA,SA5DA;;AAAA,oCAgELA,SAhEK;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,MAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,IAApB,CAAJ,EAA+B;AAC3BD,UAAAA,GAAG,CAAC,IAAD,CAAH,GAAYE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,IAAD,CAA5B,EAAoC,QAApC,CAAZ;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBI,yBAAaC,mBAAb,CAAiCN,IAAI,CAAC,QAAD,CAArC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport IdmACLAction from './IdmACLAction';\n\n\n\n\n\n/**\n* The IdmACL model module.\n* @module model/IdmACL\n* @version 2.0\n*/\nexport default class IdmACL {\n /**\n * Constructs a new IdmACL.\n * ACL are the basic flags that can be put anywhere in the tree to provide some specific rights to a given role. The context of how they apply can be fine-tuned by workspace.\n * @alias module:model/IdmACL\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IdmACL from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IdmACL} obj Optional instance to populate.\n * @return {module:model/IdmACL} The populated IdmACL instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IdmACL();\n\n \n \n \n\n if (data.hasOwnProperty('ID')) {\n obj['ID'] = ApiClient.convertToType(data['ID'], 'String');\n }\n if (data.hasOwnProperty('Action')) {\n obj['Action'] = IdmACLAction.constructFromObject(data['Action']);\n }\n if (data.hasOwnProperty('RoleID')) {\n obj['RoleID'] = ApiClient.convertToType(data['RoleID'], 'String');\n }\n if (data.hasOwnProperty('WorkspaceID')) {\n obj['WorkspaceID'] = ApiClient.convertToType(data['WorkspaceID'], 'String');\n }\n if (data.hasOwnProperty('NodeID')) {\n obj['NodeID'] = ApiClient.convertToType(data['NodeID'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} ID\n */\n ID = undefined;\n /**\n * @member {module:model/IdmACLAction} Action\n */\n Action = undefined;\n /**\n * @member {String} RoleID\n */\n RoleID = undefined;\n /**\n * @member {String} WorkspaceID\n */\n WorkspaceID = undefined;\n /**\n * @member {String} NodeID\n */\n NodeID = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IdmACL.js"} \ No newline at end of file diff --git a/lib/model/IdmACLAction.js b/lib/model/IdmACLAction.js new file mode 100644 index 0000000..7ea02d3 --- /dev/null +++ b/lib/model/IdmACLAction.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IdmACLAction model module. +* @module model/IdmACLAction +* @version 2.0 +*/ +var IdmACLAction = /*#__PURE__*/function () { + /** + * Constructs a new IdmACLAction. + * @alias module:model/IdmACLAction + * @class + */ + function IdmACLAction() { + _classCallCheck(this, IdmACLAction); + + _defineProperty(this, "Name", undefined); + + _defineProperty(this, "Value", undefined); + } + /** + * Constructs a IdmACLAction from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmACLAction} obj Optional instance to populate. + * @return {module:model/IdmACLAction} The populated IdmACLAction instance. + */ + + + _createClass(IdmACLAction, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmACLAction(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('Value')) { + obj['Value'] = _ApiClient["default"].convertToType(data['Value'], 'String'); + } + } + + return obj; + } + /** + * @member {String} Name + */ + + }]); + + return IdmACLAction; +}(); + +exports["default"] = IdmACLAction; +//# sourceMappingURL=IdmACLAction.js.map diff --git a/lib/model/IdmACLAction.js.map b/lib/model/IdmACLAction.js.map new file mode 100644 index 0000000..76d0b78 --- /dev/null +++ b/lib/model/IdmACLAction.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IdmACLAction.js"],"names":["IdmACLAction","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,Y;AACjB;AACJ;AACA;AACA;AACA;AAEI,0BAAc;AAAA;;AAAA,kCAuCPC,SAvCO;;AAAA,mCA2CNA,SA3CM;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,YAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The IdmACLAction model module.\n* @module model/IdmACLAction\n* @version 2.0\n*/\nexport default class IdmACLAction {\n /**\n * Constructs a new IdmACLAction.\n * @alias module:model/IdmACLAction\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IdmACLAction from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IdmACLAction} obj Optional instance to populate.\n * @return {module:model/IdmACLAction} The populated IdmACLAction instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IdmACLAction();\n\n \n \n \n\n if (data.hasOwnProperty('Name')) {\n obj['Name'] = ApiClient.convertToType(data['Name'], 'String');\n }\n if (data.hasOwnProperty('Value')) {\n obj['Value'] = ApiClient.convertToType(data['Value'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Name\n */\n Name = undefined;\n /**\n * @member {String} Value\n */\n Value = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IdmACLAction.js"} \ No newline at end of file diff --git a/lib/model/IdmPolicy.js b/lib/model/IdmPolicy.js new file mode 100644 index 0000000..7af74a6 --- /dev/null +++ b/lib/model/IdmPolicy.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _IdmPolicyCondition = _interopRequireDefault(require("./IdmPolicyCondition")); + +var _IdmPolicyEffect = _interopRequireDefault(require("./IdmPolicyEffect")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IdmPolicy model module. +* @module model/IdmPolicy +* @version 2.0 +*/ +var IdmPolicy = /*#__PURE__*/function () { + /** + * Constructs a new IdmPolicy. + * @alias module:model/IdmPolicy + * @class + */ + function IdmPolicy() { + _classCallCheck(this, IdmPolicy); + + _defineProperty(this, "id", undefined); + + _defineProperty(this, "description", undefined); + + _defineProperty(this, "subjects", undefined); + + _defineProperty(this, "resources", undefined); + + _defineProperty(this, "actions", undefined); + + _defineProperty(this, "effect", undefined); + + _defineProperty(this, "conditions", undefined); + } + /** + * Constructs a IdmPolicy from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmPolicy} obj Optional instance to populate. + * @return {module:model/IdmPolicy} The populated IdmPolicy instance. + */ + + + _createClass(IdmPolicy, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmPolicy(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('subjects')) { + obj['subjects'] = _ApiClient["default"].convertToType(data['subjects'], ['String']); + } + + if (data.hasOwnProperty('resources')) { + obj['resources'] = _ApiClient["default"].convertToType(data['resources'], ['String']); + } + + if (data.hasOwnProperty('actions')) { + obj['actions'] = _ApiClient["default"].convertToType(data['actions'], ['String']); + } + + if (data.hasOwnProperty('effect')) { + obj['effect'] = _IdmPolicyEffect["default"].constructFromObject(data['effect']); + } + + if (data.hasOwnProperty('conditions')) { + obj['conditions'] = _ApiClient["default"].convertToType(data['conditions'], { + 'String': _IdmPolicyCondition["default"] + }); + } + } + + return obj; + } + /** + * @member {String} id + */ + + }]); + + return IdmPolicy; +}(); + +exports["default"] = IdmPolicy; +//# sourceMappingURL=IdmPolicy.js.map diff --git a/lib/model/IdmPolicy.js.map b/lib/model/IdmPolicy.js.map new file mode 100644 index 0000000..8801a36 --- /dev/null +++ b/lib/model/IdmPolicy.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IdmPolicy.js"],"names":["IdmPolicy","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","IdmPolicyEffect","constructFromObject","IdmPolicyCondition"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,S;AACjB;AACJ;AACA;AACA;AACA;AAEI,uBAAc;AAAA;;AAAA,gCAsDTC,SAtDS;;AAAA,yCA0DAA,SA1DA;;AAAA,sCA8DHA,SA9DG;;AAAA,uCAkEFA,SAlEE;;AAAA,qCAsEJA,SAtEI;;AAAA,oCA0ELA,SA1EK;;AAAA,wCA8EDA,SA9EC;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,SAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,IAApB,CAAJ,EAA+B;AAC3BD,UAAAA,GAAG,CAAC,IAAD,CAAH,GAAYE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,IAAD,CAA5B,EAAoC,QAApC,CAAZ;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,CAAC,QAAD,CAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,CAAC,QAAD,CAA3C,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,CAAC,QAAD,CAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBI,4BAAgBC,mBAAhB,CAAoCN,IAAI,CAAC,QAAD,CAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C;AAAC,sBAAUO;AAAX,WAA5C,CAApB;AACH;AACJ;;AACD,aAAON,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport IdmPolicyCondition from './IdmPolicyCondition';\nimport IdmPolicyEffect from './IdmPolicyEffect';\n\n\n\n\n\n/**\n* The IdmPolicy model module.\n* @module model/IdmPolicy\n* @version 2.0\n*/\nexport default class IdmPolicy {\n /**\n * Constructs a new IdmPolicy.\n * @alias module:model/IdmPolicy\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IdmPolicy from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IdmPolicy} obj Optional instance to populate.\n * @return {module:model/IdmPolicy} The populated IdmPolicy instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IdmPolicy();\n\n \n \n \n\n if (data.hasOwnProperty('id')) {\n obj['id'] = ApiClient.convertToType(data['id'], 'String');\n }\n if (data.hasOwnProperty('description')) {\n obj['description'] = ApiClient.convertToType(data['description'], 'String');\n }\n if (data.hasOwnProperty('subjects')) {\n obj['subjects'] = ApiClient.convertToType(data['subjects'], ['String']);\n }\n if (data.hasOwnProperty('resources')) {\n obj['resources'] = ApiClient.convertToType(data['resources'], ['String']);\n }\n if (data.hasOwnProperty('actions')) {\n obj['actions'] = ApiClient.convertToType(data['actions'], ['String']);\n }\n if (data.hasOwnProperty('effect')) {\n obj['effect'] = IdmPolicyEffect.constructFromObject(data['effect']);\n }\n if (data.hasOwnProperty('conditions')) {\n obj['conditions'] = ApiClient.convertToType(data['conditions'], {'String': IdmPolicyCondition});\n }\n }\n return obj;\n }\n\n /**\n * @member {String} id\n */\n id = undefined;\n /**\n * @member {String} description\n */\n description = undefined;\n /**\n * @member {Array.} subjects\n */\n subjects = undefined;\n /**\n * @member {Array.} resources\n */\n resources = undefined;\n /**\n * @member {Array.} actions\n */\n actions = undefined;\n /**\n * @member {module:model/IdmPolicyEffect} effect\n */\n effect = undefined;\n /**\n * @member {Object.} conditions\n */\n conditions = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IdmPolicy.js"} \ No newline at end of file diff --git a/lib/model/IdmPolicyCondition.js b/lib/model/IdmPolicyCondition.js new file mode 100644 index 0000000..02eac45 --- /dev/null +++ b/lib/model/IdmPolicyCondition.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IdmPolicyCondition model module. +* @module model/IdmPolicyCondition +* @version 2.0 +*/ +var IdmPolicyCondition = /*#__PURE__*/function () { + /** + * Constructs a new IdmPolicyCondition. + * @alias module:model/IdmPolicyCondition + * @class + */ + function IdmPolicyCondition() { + _classCallCheck(this, IdmPolicyCondition); + + _defineProperty(this, "type", undefined); + + _defineProperty(this, "jsonOptions", undefined); + } + /** + * Constructs a IdmPolicyCondition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmPolicyCondition} obj Optional instance to populate. + * @return {module:model/IdmPolicyCondition} The populated IdmPolicyCondition instance. + */ + + + _createClass(IdmPolicyCondition, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmPolicyCondition(); + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('jsonOptions')) { + obj['jsonOptions'] = _ApiClient["default"].convertToType(data['jsonOptions'], 'String'); + } + } + + return obj; + } + /** + * @member {String} type + */ + + }]); + + return IdmPolicyCondition; +}(); + +exports["default"] = IdmPolicyCondition; +//# sourceMappingURL=IdmPolicyCondition.js.map diff --git a/lib/model/IdmPolicyCondition.js.map b/lib/model/IdmPolicyCondition.js.map new file mode 100644 index 0000000..b601c04 --- /dev/null +++ b/lib/model/IdmPolicyCondition.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IdmPolicyCondition.js"],"names":["IdmPolicyCondition","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,kB;AACjB;AACJ;AACA;AACA;AACA;AAEI,gCAAc;AAAA;;AAAA,kCAuCPC,SAvCO;;AAAA,yCA2CAA,SA3CA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,kBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The IdmPolicyCondition model module.\n* @module model/IdmPolicyCondition\n* @version 2.0\n*/\nexport default class IdmPolicyCondition {\n /**\n * Constructs a new IdmPolicyCondition.\n * @alias module:model/IdmPolicyCondition\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IdmPolicyCondition from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IdmPolicyCondition} obj Optional instance to populate.\n * @return {module:model/IdmPolicyCondition} The populated IdmPolicyCondition instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IdmPolicyCondition();\n\n \n \n \n\n if (data.hasOwnProperty('type')) {\n obj['type'] = ApiClient.convertToType(data['type'], 'String');\n }\n if (data.hasOwnProperty('jsonOptions')) {\n obj['jsonOptions'] = ApiClient.convertToType(data['jsonOptions'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} type\n */\n type = undefined;\n /**\n * @member {String} jsonOptions\n */\n jsonOptions = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IdmPolicyCondition.js"} \ No newline at end of file diff --git a/lib/model/IdmPolicyEffect.js b/lib/model/IdmPolicyEffect.js new file mode 100644 index 0000000..171a3f4 --- /dev/null +++ b/lib/model/IdmPolicyEffect.js @@ -0,0 +1,53 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class IdmPolicyEffect. +* @enum {} +* @readonly +*/ +var IdmPolicyEffect = /*#__PURE__*/function () { + function IdmPolicyEffect() { + _classCallCheck(this, IdmPolicyEffect); + + _defineProperty(this, "unknown", "unknown"); + + _defineProperty(this, "deny", "deny"); + + _defineProperty(this, "allow", "allow"); + } + + _createClass(IdmPolicyEffect, null, [{ + key: "constructFromObject", + value: + /** + * Returns a IdmPolicyEffect enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/IdmPolicyEffect} The enum IdmPolicyEffect value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return IdmPolicyEffect; +}(); + +exports["default"] = IdmPolicyEffect; +//# sourceMappingURL=IdmPolicyEffect.js.map diff --git a/lib/model/IdmPolicyEffect.js.map b/lib/model/IdmPolicyEffect.js.map new file mode 100644 index 0000000..cfef69f --- /dev/null +++ b/lib/model/IdmPolicyEffect.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IdmPolicyEffect.js"],"names":["IdmPolicyEffect","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,e;;;;qCAMH,S;;kCAOH,M;;mCAOC,O;;;;;;AAIZ;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class IdmPolicyEffect.\n* @enum {}\n* @readonly\n*/\nexport default class IdmPolicyEffect {\n \n /**\n * value: \"unknown\"\n * @const\n */\n unknown = \"unknown\";\n\n \n /**\n * value: \"deny\"\n * @const\n */\n deny = \"deny\";\n\n \n /**\n * value: \"allow\"\n * @const\n */\n allow = \"allow\";\n\n \n\n /**\n * Returns a IdmPolicyEffect enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/IdmPolicyEffect} The enum IdmPolicyEffect value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"IdmPolicyEffect.js"} \ No newline at end of file diff --git a/lib/model/IdmPolicyGroup.js b/lib/model/IdmPolicyGroup.js new file mode 100644 index 0000000..7d7d3a2 --- /dev/null +++ b/lib/model/IdmPolicyGroup.js @@ -0,0 +1,108 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _IdmPolicy = _interopRequireDefault(require("./IdmPolicy")); + +var _IdmPolicyResourceGroup = _interopRequireDefault(require("./IdmPolicyResourceGroup")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IdmPolicyGroup model module. +* @module model/IdmPolicyGroup +* @version 2.0 +*/ +var IdmPolicyGroup = /*#__PURE__*/function () { + /** + * Constructs a new IdmPolicyGroup. + * @alias module:model/IdmPolicyGroup + * @class + */ + function IdmPolicyGroup() { + _classCallCheck(this, IdmPolicyGroup); + + _defineProperty(this, "Uuid", undefined); + + _defineProperty(this, "Name", undefined); + + _defineProperty(this, "Description", undefined); + + _defineProperty(this, "OwnerUuid", undefined); + + _defineProperty(this, "ResourceGroup", undefined); + + _defineProperty(this, "LastUpdated", undefined); + + _defineProperty(this, "Policies", undefined); + } + /** + * Constructs a IdmPolicyGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmPolicyGroup} obj Optional instance to populate. + * @return {module:model/IdmPolicyGroup} The populated IdmPolicyGroup instance. + */ + + + _createClass(IdmPolicyGroup, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmPolicyGroup(); + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = _ApiClient["default"].convertToType(data['Uuid'], 'String'); + } + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + + if (data.hasOwnProperty('OwnerUuid')) { + obj['OwnerUuid'] = _ApiClient["default"].convertToType(data['OwnerUuid'], 'String'); + } + + if (data.hasOwnProperty('ResourceGroup')) { + obj['ResourceGroup'] = _IdmPolicyResourceGroup["default"].constructFromObject(data['ResourceGroup']); + } + + if (data.hasOwnProperty('LastUpdated')) { + obj['LastUpdated'] = _ApiClient["default"].convertToType(data['LastUpdated'], 'Number'); + } + + if (data.hasOwnProperty('Policies')) { + obj['Policies'] = _ApiClient["default"].convertToType(data['Policies'], [_IdmPolicy["default"]]); + } + } + + return obj; + } + /** + * @member {String} Uuid + */ + + }]); + + return IdmPolicyGroup; +}(); + +exports["default"] = IdmPolicyGroup; +//# sourceMappingURL=IdmPolicyGroup.js.map diff --git a/lib/model/IdmPolicyGroup.js.map b/lib/model/IdmPolicyGroup.js.map new file mode 100644 index 0000000..6a4185c --- /dev/null +++ b/lib/model/IdmPolicyGroup.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IdmPolicyGroup.js"],"names":["IdmPolicyGroup","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","IdmPolicyResourceGroup","constructFromObject","IdmPolicy"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,c;AACjB;AACJ;AACA;AACA;AACA;AAEI,4BAAc;AAAA;;AAAA,kCAsDPC,SAtDO;;AAAA,kCA0DPA,SA1DO;;AAAA,yCA8DAA,SA9DA;;AAAA,uCAkEFA,SAlEE;;AAAA,2CAsEEA,SAtEF;;AAAA,yCA0EAA,SA1EA;;AAAA,sCA8EHA,SA9EG;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,cAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,QAA3C,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBI,mCAAuBC,mBAAvB,CAA2CN,IAAI,CAAC,eAAD,CAA/C,CAAvB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,CAACO,qBAAD,CAA1C,CAAlB;AACH;AACJ;;AACD,aAAON,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport IdmPolicy from './IdmPolicy';\nimport IdmPolicyResourceGroup from './IdmPolicyResourceGroup';\n\n\n\n\n\n/**\n* The IdmPolicyGroup model module.\n* @module model/IdmPolicyGroup\n* @version 2.0\n*/\nexport default class IdmPolicyGroup {\n /**\n * Constructs a new IdmPolicyGroup.\n * @alias module:model/IdmPolicyGroup\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IdmPolicyGroup from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IdmPolicyGroup} obj Optional instance to populate.\n * @return {module:model/IdmPolicyGroup} The populated IdmPolicyGroup instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IdmPolicyGroup();\n\n \n \n \n\n if (data.hasOwnProperty('Uuid')) {\n obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String');\n }\n if (data.hasOwnProperty('Name')) {\n obj['Name'] = ApiClient.convertToType(data['Name'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n if (data.hasOwnProperty('OwnerUuid')) {\n obj['OwnerUuid'] = ApiClient.convertToType(data['OwnerUuid'], 'String');\n }\n if (data.hasOwnProperty('ResourceGroup')) {\n obj['ResourceGroup'] = IdmPolicyResourceGroup.constructFromObject(data['ResourceGroup']);\n }\n if (data.hasOwnProperty('LastUpdated')) {\n obj['LastUpdated'] = ApiClient.convertToType(data['LastUpdated'], 'Number');\n }\n if (data.hasOwnProperty('Policies')) {\n obj['Policies'] = ApiClient.convertToType(data['Policies'], [IdmPolicy]);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Uuid\n */\n Uuid = undefined;\n /**\n * @member {String} Name\n */\n Name = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n /**\n * @member {String} OwnerUuid\n */\n OwnerUuid = undefined;\n /**\n * @member {module:model/IdmPolicyResourceGroup} ResourceGroup\n */\n ResourceGroup = undefined;\n /**\n * @member {Number} LastUpdated\n */\n LastUpdated = undefined;\n /**\n * @member {Array.} Policies\n */\n Policies = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IdmPolicyGroup.js"} \ No newline at end of file diff --git a/lib/model/IdmPolicyResourceGroup.js b/lib/model/IdmPolicyResourceGroup.js new file mode 100644 index 0000000..0125a7c --- /dev/null +++ b/lib/model/IdmPolicyResourceGroup.js @@ -0,0 +1,53 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class IdmPolicyResourceGroup. +* @enum {} +* @readonly +*/ +var IdmPolicyResourceGroup = /*#__PURE__*/function () { + function IdmPolicyResourceGroup() { + _classCallCheck(this, IdmPolicyResourceGroup); + + _defineProperty(this, "rest", "rest"); + + _defineProperty(this, "acl", "acl"); + + _defineProperty(this, "oidc", "oidc"); + } + + _createClass(IdmPolicyResourceGroup, null, [{ + key: "constructFromObject", + value: + /** + * Returns a IdmPolicyResourceGroup enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/IdmPolicyResourceGroup} The enum IdmPolicyResourceGroup value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return IdmPolicyResourceGroup; +}(); + +exports["default"] = IdmPolicyResourceGroup; +//# sourceMappingURL=IdmPolicyResourceGroup.js.map diff --git a/lib/model/IdmPolicyResourceGroup.js.map b/lib/model/IdmPolicyResourceGroup.js.map new file mode 100644 index 0000000..f3b8b0c --- /dev/null +++ b/lib/model/IdmPolicyResourceGroup.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IdmPolicyResourceGroup.js"],"names":["IdmPolicyResourceGroup","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,sB;;;;kCAMN,M;;iCAOD,K;;kCAOC,M;;;;;;AAIX;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class IdmPolicyResourceGroup.\n* @enum {}\n* @readonly\n*/\nexport default class IdmPolicyResourceGroup {\n \n /**\n * value: \"rest\"\n * @const\n */\n rest = \"rest\";\n\n \n /**\n * value: \"acl\"\n * @const\n */\n acl = \"acl\";\n\n \n /**\n * value: \"oidc\"\n * @const\n */\n oidc = \"oidc\";\n\n \n\n /**\n * Returns a IdmPolicyResourceGroup enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/IdmPolicyResourceGroup} The enum IdmPolicyResourceGroup value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"IdmPolicyResourceGroup.js"} \ No newline at end of file diff --git a/lib/model/IdmRole.js b/lib/model/IdmRole.js new file mode 100644 index 0000000..aeb133e --- /dev/null +++ b/lib/model/IdmRole.js @@ -0,0 +1,125 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ServiceResourcePolicy = _interopRequireDefault(require("./ServiceResourcePolicy")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IdmRole model module. +* @module model/IdmRole +* @version 2.0 +*/ +var IdmRole = /*#__PURE__*/function () { + /** + * Constructs a new IdmRole. + * Role represents a generic set of permissions that can be applied to any users or groups. + * @alias module:model/IdmRole + * @class + */ + function IdmRole() { + _classCallCheck(this, IdmRole); + + _defineProperty(this, "Uuid", undefined); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "IsTeam", undefined); + + _defineProperty(this, "GroupRole", undefined); + + _defineProperty(this, "UserRole", undefined); + + _defineProperty(this, "LastUpdated", undefined); + + _defineProperty(this, "AutoApplies", undefined); + + _defineProperty(this, "Policies", undefined); + + _defineProperty(this, "PoliciesContextEditable", undefined); + + _defineProperty(this, "ForceOverride", undefined); + } + /** + * Constructs a IdmRole from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmRole} obj Optional instance to populate. + * @return {module:model/IdmRole} The populated IdmRole instance. + */ + + + _createClass(IdmRole, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmRole(); + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = _ApiClient["default"].convertToType(data['Uuid'], 'String'); + } + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('IsTeam')) { + obj['IsTeam'] = _ApiClient["default"].convertToType(data['IsTeam'], 'Boolean'); + } + + if (data.hasOwnProperty('GroupRole')) { + obj['GroupRole'] = _ApiClient["default"].convertToType(data['GroupRole'], 'Boolean'); + } + + if (data.hasOwnProperty('UserRole')) { + obj['UserRole'] = _ApiClient["default"].convertToType(data['UserRole'], 'Boolean'); + } + + if (data.hasOwnProperty('LastUpdated')) { + obj['LastUpdated'] = _ApiClient["default"].convertToType(data['LastUpdated'], 'Number'); + } + + if (data.hasOwnProperty('AutoApplies')) { + obj['AutoApplies'] = _ApiClient["default"].convertToType(data['AutoApplies'], ['String']); + } + + if (data.hasOwnProperty('Policies')) { + obj['Policies'] = _ApiClient["default"].convertToType(data['Policies'], [_ServiceResourcePolicy["default"]]); + } + + if (data.hasOwnProperty('PoliciesContextEditable')) { + obj['PoliciesContextEditable'] = _ApiClient["default"].convertToType(data['PoliciesContextEditable'], 'Boolean'); + } + + if (data.hasOwnProperty('ForceOverride')) { + obj['ForceOverride'] = _ApiClient["default"].convertToType(data['ForceOverride'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {String} Uuid + */ + + }]); + + return IdmRole; +}(); + +exports["default"] = IdmRole; +//# sourceMappingURL=IdmRole.js.map diff --git a/lib/model/IdmRole.js.map b/lib/model/IdmRole.js.map new file mode 100644 index 0000000..c4d4a1a --- /dev/null +++ b/lib/model/IdmRole.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IdmRole.js"],"names":["IdmRole","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","ServiceResourcePolicy"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport ServiceResourcePolicy from './ServiceResourcePolicy';\n\n\n\n\n\n/**\n* The IdmRole model module.\n* @module model/IdmRole\n* @version 2.0\n*/\nexport default class IdmRole {\n /**\n * Constructs a new IdmRole.\n * Role represents a generic set of permissions that can be applied to any users or groups.\n * @alias module:model/IdmRole\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IdmRole from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IdmRole} obj Optional instance to populate.\n * @return {module:model/IdmRole} The populated IdmRole instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IdmRole();\n\n \n \n \n\n if (data.hasOwnProperty('Uuid')) {\n obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String');\n }\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('IsTeam')) {\n obj['IsTeam'] = ApiClient.convertToType(data['IsTeam'], 'Boolean');\n }\n if (data.hasOwnProperty('GroupRole')) {\n obj['GroupRole'] = ApiClient.convertToType(data['GroupRole'], 'Boolean');\n }\n if (data.hasOwnProperty('UserRole')) {\n obj['UserRole'] = ApiClient.convertToType(data['UserRole'], 'Boolean');\n }\n if (data.hasOwnProperty('LastUpdated')) {\n obj['LastUpdated'] = ApiClient.convertToType(data['LastUpdated'], 'Number');\n }\n if (data.hasOwnProperty('AutoApplies')) {\n obj['AutoApplies'] = ApiClient.convertToType(data['AutoApplies'], ['String']);\n }\n if (data.hasOwnProperty('Policies')) {\n obj['Policies'] = ApiClient.convertToType(data['Policies'], [ServiceResourcePolicy]);\n }\n if (data.hasOwnProperty('PoliciesContextEditable')) {\n obj['PoliciesContextEditable'] = ApiClient.convertToType(data['PoliciesContextEditable'], 'Boolean');\n }\n if (data.hasOwnProperty('ForceOverride')) {\n obj['ForceOverride'] = ApiClient.convertToType(data['ForceOverride'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Uuid\n */\n Uuid = undefined;\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {Boolean} IsTeam\n */\n IsTeam = undefined;\n /**\n * @member {Boolean} GroupRole\n */\n GroupRole = undefined;\n /**\n * @member {Boolean} UserRole\n */\n UserRole = undefined;\n /**\n * @member {Number} LastUpdated\n */\n LastUpdated = undefined;\n /**\n * @member {Array.} AutoApplies\n */\n AutoApplies = undefined;\n /**\n * @member {Array.} Policies\n */\n Policies = undefined;\n /**\n * @member {Boolean} PoliciesContextEditable\n */\n PoliciesContextEditable = undefined;\n /**\n * Is used in a stack of roles, this one will always be applied last.\n * @member {Boolean} ForceOverride\n */\n ForceOverride = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IdmRole.js"} \ No newline at end of file diff --git a/lib/model/IdmUser.js b/lib/model/IdmUser.js new file mode 100644 index 0000000..122c442 --- /dev/null +++ b/lib/model/IdmUser.js @@ -0,0 +1,140 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _IdmRole = _interopRequireDefault(require("./IdmRole")); + +var _ServiceResourcePolicy = _interopRequireDefault(require("./ServiceResourcePolicy")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IdmUser model module. +* @module model/IdmUser +* @version 2.0 +*/ +var IdmUser = /*#__PURE__*/function () { + /** + * Constructs a new IdmUser. + * @alias module:model/IdmUser + * @class + */ + function IdmUser() { + _classCallCheck(this, IdmUser); + + _defineProperty(this, "Uuid", undefined); + + _defineProperty(this, "GroupPath", undefined); + + _defineProperty(this, "Attributes", undefined); + + _defineProperty(this, "Roles", undefined); + + _defineProperty(this, "Login", undefined); + + _defineProperty(this, "Password", undefined); + + _defineProperty(this, "OldPassword", undefined); + + _defineProperty(this, "IsGroup", undefined); + + _defineProperty(this, "GroupLabel", undefined); + + _defineProperty(this, "LastConnected", undefined); + + _defineProperty(this, "Policies", undefined); + + _defineProperty(this, "PoliciesContextEditable", undefined); + } + /** + * Constructs a IdmUser from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmUser} obj Optional instance to populate. + * @return {module:model/IdmUser} The populated IdmUser instance. + */ + + + _createClass(IdmUser, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmUser(); + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = _ApiClient["default"].convertToType(data['Uuid'], 'String'); + } + + if (data.hasOwnProperty('GroupPath')) { + obj['GroupPath'] = _ApiClient["default"].convertToType(data['GroupPath'], 'String'); + } + + if (data.hasOwnProperty('Attributes')) { + obj['Attributes'] = _ApiClient["default"].convertToType(data['Attributes'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('Roles')) { + obj['Roles'] = _ApiClient["default"].convertToType(data['Roles'], [_IdmRole["default"]]); + } + + if (data.hasOwnProperty('Login')) { + obj['Login'] = _ApiClient["default"].convertToType(data['Login'], 'String'); + } + + if (data.hasOwnProperty('Password')) { + obj['Password'] = _ApiClient["default"].convertToType(data['Password'], 'String'); + } + + if (data.hasOwnProperty('OldPassword')) { + obj['OldPassword'] = _ApiClient["default"].convertToType(data['OldPassword'], 'String'); + } + + if (data.hasOwnProperty('IsGroup')) { + obj['IsGroup'] = _ApiClient["default"].convertToType(data['IsGroup'], 'Boolean'); + } + + if (data.hasOwnProperty('GroupLabel')) { + obj['GroupLabel'] = _ApiClient["default"].convertToType(data['GroupLabel'], 'String'); + } + + if (data.hasOwnProperty('LastConnected')) { + obj['LastConnected'] = _ApiClient["default"].convertToType(data['LastConnected'], 'Number'); + } + + if (data.hasOwnProperty('Policies')) { + obj['Policies'] = _ApiClient["default"].convertToType(data['Policies'], [_ServiceResourcePolicy["default"]]); + } + + if (data.hasOwnProperty('PoliciesContextEditable')) { + obj['PoliciesContextEditable'] = _ApiClient["default"].convertToType(data['PoliciesContextEditable'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {String} Uuid + */ + + }]); + + return IdmUser; +}(); + +exports["default"] = IdmUser; +//# sourceMappingURL=IdmUser.js.map diff --git a/lib/model/IdmUser.js.map b/lib/model/IdmUser.js.map new file mode 100644 index 0000000..381ce2e --- /dev/null +++ b/lib/model/IdmUser.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IdmUser.js"],"names":["IdmUser","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","IdmRole","ServiceResourcePolicy"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport IdmRole from './IdmRole';\nimport ServiceResourcePolicy from './ServiceResourcePolicy';\n\n\n\n\n\n/**\n* The IdmUser model module.\n* @module model/IdmUser\n* @version 2.0\n*/\nexport default class IdmUser {\n /**\n * Constructs a new IdmUser.\n * @alias module:model/IdmUser\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IdmUser from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IdmUser} obj Optional instance to populate.\n * @return {module:model/IdmUser} The populated IdmUser instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IdmUser();\n\n \n \n \n\n if (data.hasOwnProperty('Uuid')) {\n obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String');\n }\n if (data.hasOwnProperty('GroupPath')) {\n obj['GroupPath'] = ApiClient.convertToType(data['GroupPath'], 'String');\n }\n if (data.hasOwnProperty('Attributes')) {\n obj['Attributes'] = ApiClient.convertToType(data['Attributes'], {'String': 'String'});\n }\n if (data.hasOwnProperty('Roles')) {\n obj['Roles'] = ApiClient.convertToType(data['Roles'], [IdmRole]);\n }\n if (data.hasOwnProperty('Login')) {\n obj['Login'] = ApiClient.convertToType(data['Login'], 'String');\n }\n if (data.hasOwnProperty('Password')) {\n obj['Password'] = ApiClient.convertToType(data['Password'], 'String');\n }\n if (data.hasOwnProperty('OldPassword')) {\n obj['OldPassword'] = ApiClient.convertToType(data['OldPassword'], 'String');\n }\n if (data.hasOwnProperty('IsGroup')) {\n obj['IsGroup'] = ApiClient.convertToType(data['IsGroup'], 'Boolean');\n }\n if (data.hasOwnProperty('GroupLabel')) {\n obj['GroupLabel'] = ApiClient.convertToType(data['GroupLabel'], 'String');\n }\n if (data.hasOwnProperty('LastConnected')) {\n obj['LastConnected'] = ApiClient.convertToType(data['LastConnected'], 'Number');\n }\n if (data.hasOwnProperty('Policies')) {\n obj['Policies'] = ApiClient.convertToType(data['Policies'], [ServiceResourcePolicy]);\n }\n if (data.hasOwnProperty('PoliciesContextEditable')) {\n obj['PoliciesContextEditable'] = ApiClient.convertToType(data['PoliciesContextEditable'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Uuid\n */\n Uuid = undefined;\n /**\n * @member {String} GroupPath\n */\n GroupPath = undefined;\n /**\n * @member {Object.} Attributes\n */\n Attributes = undefined;\n /**\n * @member {Array.} Roles\n */\n Roles = undefined;\n /**\n * @member {String} Login\n */\n Login = undefined;\n /**\n * @member {String} Password\n */\n Password = undefined;\n /**\n * @member {String} OldPassword\n */\n OldPassword = undefined;\n /**\n * @member {Boolean} IsGroup\n */\n IsGroup = undefined;\n /**\n * @member {String} GroupLabel\n */\n GroupLabel = undefined;\n /**\n * @member {Number} LastConnected\n */\n LastConnected = undefined;\n /**\n * @member {Array.} Policies\n */\n Policies = undefined;\n /**\n * Context-resolved to quickly check if user is editable or not.\n * @member {Boolean} PoliciesContextEditable\n */\n PoliciesContextEditable = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IdmUser.js"} \ No newline at end of file diff --git a/lib/model/IdmWorkspace.js b/lib/model/IdmWorkspace.js new file mode 100644 index 0000000..8403bee --- /dev/null +++ b/lib/model/IdmWorkspace.js @@ -0,0 +1,137 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _IdmWorkspaceScope = _interopRequireDefault(require("./IdmWorkspaceScope")); + +var _ServiceResourcePolicy = _interopRequireDefault(require("./ServiceResourcePolicy")); + +var _TreeNode = _interopRequireDefault(require("./TreeNode")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IdmWorkspace model module. +* @module model/IdmWorkspace +* @version 2.0 +*/ +var IdmWorkspace = /*#__PURE__*/function () { + /** + * Constructs a new IdmWorkspace. + * A Workspace is composed of a set of nodes UUIDs and is used to provide accesses to the tree via ACLs. + * @alias module:model/IdmWorkspace + * @class + */ + function IdmWorkspace() { + _classCallCheck(this, IdmWorkspace); + + _defineProperty(this, "UUID", undefined); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "Description", undefined); + + _defineProperty(this, "Slug", undefined); + + _defineProperty(this, "Scope", undefined); + + _defineProperty(this, "LastUpdated", undefined); + + _defineProperty(this, "Policies", undefined); + + _defineProperty(this, "Attributes", undefined); + + _defineProperty(this, "RootUUIDs", undefined); + + _defineProperty(this, "RootNodes", undefined); + + _defineProperty(this, "PoliciesContextEditable", undefined); + } + /** + * Constructs a IdmWorkspace from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmWorkspace} obj Optional instance to populate. + * @return {module:model/IdmWorkspace} The populated IdmWorkspace instance. + */ + + + _createClass(IdmWorkspace, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmWorkspace(); + + if (data.hasOwnProperty('UUID')) { + obj['UUID'] = _ApiClient["default"].convertToType(data['UUID'], 'String'); + } + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + + if (data.hasOwnProperty('Slug')) { + obj['Slug'] = _ApiClient["default"].convertToType(data['Slug'], 'String'); + } + + if (data.hasOwnProperty('Scope')) { + obj['Scope'] = _IdmWorkspaceScope["default"].constructFromObject(data['Scope']); + } + + if (data.hasOwnProperty('LastUpdated')) { + obj['LastUpdated'] = _ApiClient["default"].convertToType(data['LastUpdated'], 'Number'); + } + + if (data.hasOwnProperty('Policies')) { + obj['Policies'] = _ApiClient["default"].convertToType(data['Policies'], [_ServiceResourcePolicy["default"]]); + } + + if (data.hasOwnProperty('Attributes')) { + obj['Attributes'] = _ApiClient["default"].convertToType(data['Attributes'], 'String'); + } + + if (data.hasOwnProperty('RootUUIDs')) { + obj['RootUUIDs'] = _ApiClient["default"].convertToType(data['RootUUIDs'], ['String']); + } + + if (data.hasOwnProperty('RootNodes')) { + obj['RootNodes'] = _ApiClient["default"].convertToType(data['RootNodes'], { + 'String': _TreeNode["default"] + }); + } + + if (data.hasOwnProperty('PoliciesContextEditable')) { + obj['PoliciesContextEditable'] = _ApiClient["default"].convertToType(data['PoliciesContextEditable'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {String} UUID + */ + + }]); + + return IdmWorkspace; +}(); + +exports["default"] = IdmWorkspace; +//# sourceMappingURL=IdmWorkspace.js.map diff --git a/lib/model/IdmWorkspace.js.map b/lib/model/IdmWorkspace.js.map new file mode 100644 index 0000000..4e1cd1a --- /dev/null +++ b/lib/model/IdmWorkspace.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IdmWorkspace.js"],"names":["IdmWorkspace","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","IdmWorkspaceScope","constructFromObject","ServiceResourcePolicy","TreeNode"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport IdmWorkspaceScope from './IdmWorkspaceScope';\nimport ServiceResourcePolicy from './ServiceResourcePolicy';\nimport TreeNode from './TreeNode';\n\n\n\n\n\n/**\n* The IdmWorkspace model module.\n* @module model/IdmWorkspace\n* @version 2.0\n*/\nexport default class IdmWorkspace {\n /**\n * Constructs a new IdmWorkspace.\n * A Workspace is composed of a set of nodes UUIDs and is used to provide accesses to the tree via ACLs.\n * @alias module:model/IdmWorkspace\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IdmWorkspace from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IdmWorkspace} obj Optional instance to populate.\n * @return {module:model/IdmWorkspace} The populated IdmWorkspace instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IdmWorkspace();\n\n \n \n \n\n if (data.hasOwnProperty('UUID')) {\n obj['UUID'] = ApiClient.convertToType(data['UUID'], 'String');\n }\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n if (data.hasOwnProperty('Slug')) {\n obj['Slug'] = ApiClient.convertToType(data['Slug'], 'String');\n }\n if (data.hasOwnProperty('Scope')) {\n obj['Scope'] = IdmWorkspaceScope.constructFromObject(data['Scope']);\n }\n if (data.hasOwnProperty('LastUpdated')) {\n obj['LastUpdated'] = ApiClient.convertToType(data['LastUpdated'], 'Number');\n }\n if (data.hasOwnProperty('Policies')) {\n obj['Policies'] = ApiClient.convertToType(data['Policies'], [ServiceResourcePolicy]);\n }\n if (data.hasOwnProperty('Attributes')) {\n obj['Attributes'] = ApiClient.convertToType(data['Attributes'], 'String');\n }\n if (data.hasOwnProperty('RootUUIDs')) {\n obj['RootUUIDs'] = ApiClient.convertToType(data['RootUUIDs'], ['String']);\n }\n if (data.hasOwnProperty('RootNodes')) {\n obj['RootNodes'] = ApiClient.convertToType(data['RootNodes'], {'String': TreeNode});\n }\n if (data.hasOwnProperty('PoliciesContextEditable')) {\n obj['PoliciesContextEditable'] = ApiClient.convertToType(data['PoliciesContextEditable'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} UUID\n */\n UUID = undefined;\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n /**\n * @member {String} Slug\n */\n Slug = undefined;\n /**\n * @member {module:model/IdmWorkspaceScope} Scope\n */\n Scope = undefined;\n /**\n * @member {Number} LastUpdated\n */\n LastUpdated = undefined;\n /**\n * @member {Array.} Policies\n */\n Policies = undefined;\n /**\n * @member {String} Attributes\n */\n Attributes = undefined;\n /**\n * @member {Array.} RootUUIDs\n */\n RootUUIDs = undefined;\n /**\n * @member {Object.} RootNodes\n */\n RootNodes = undefined;\n /**\n * @member {Boolean} PoliciesContextEditable\n */\n PoliciesContextEditable = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IdmWorkspace.js"} \ No newline at end of file diff --git a/lib/model/IdmWorkspaceScope.js b/lib/model/IdmWorkspaceScope.js new file mode 100644 index 0000000..f369e27 --- /dev/null +++ b/lib/model/IdmWorkspaceScope.js @@ -0,0 +1,55 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class IdmWorkspaceScope. +* @enum {} +* @readonly +*/ +var IdmWorkspaceScope = /*#__PURE__*/function () { + function IdmWorkspaceScope() { + _classCallCheck(this, IdmWorkspaceScope); + + _defineProperty(this, "ANY", "ANY"); + + _defineProperty(this, "ADMIN", "ADMIN"); + + _defineProperty(this, "ROOM", "ROOM"); + + _defineProperty(this, "LINK", "LINK"); + } + + _createClass(IdmWorkspaceScope, null, [{ + key: "constructFromObject", + value: + /** + * Returns a IdmWorkspaceScope enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/IdmWorkspaceScope} The enum IdmWorkspaceScope value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return IdmWorkspaceScope; +}(); + +exports["default"] = IdmWorkspaceScope; +//# sourceMappingURL=IdmWorkspaceScope.js.map diff --git a/lib/model/IdmWorkspaceScope.js.map b/lib/model/IdmWorkspaceScope.js.map new file mode 100644 index 0000000..759a497 --- /dev/null +++ b/lib/model/IdmWorkspaceScope.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IdmWorkspaceScope.js"],"names":["IdmWorkspaceScope","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,iB;;;;iCAMP,K;;mCAOE,O;;kCAOD,M;;kCAOA,M;;;;;;AAIX;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class IdmWorkspaceScope.\n* @enum {}\n* @readonly\n*/\nexport default class IdmWorkspaceScope {\n \n /**\n * value: \"ANY\"\n * @const\n */\n ANY = \"ANY\";\n\n \n /**\n * value: \"ADMIN\"\n * @const\n */\n ADMIN = \"ADMIN\";\n\n \n /**\n * value: \"ROOM\"\n * @const\n */\n ROOM = \"ROOM\";\n\n \n /**\n * value: \"LINK\"\n * @const\n */\n LINK = \"LINK\";\n\n \n\n /**\n * Returns a IdmWorkspaceScope enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/IdmWorkspaceScope} The enum IdmWorkspaceScope value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"IdmWorkspaceScope.js"} \ No newline at end of file diff --git a/lib/model/InstallProxyConfig.js b/lib/model/InstallProxyConfig.js new file mode 100644 index 0000000..8909523 --- /dev/null +++ b/lib/model/InstallProxyConfig.js @@ -0,0 +1,116 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _InstallTLSCertificate = _interopRequireDefault(require("./InstallTLSCertificate")); + +var _InstallTLSLetsEncrypt = _interopRequireDefault(require("./InstallTLSLetsEncrypt")); + +var _InstallTLSSelfSigned = _interopRequireDefault(require("./InstallTLSSelfSigned")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The InstallProxyConfig model module. +* @module model/InstallProxyConfig +* @version 2.0 +*/ +var InstallProxyConfig = /*#__PURE__*/function () { + /** + * Constructs a new InstallProxyConfig. + * @alias module:model/InstallProxyConfig + * @class + */ + function InstallProxyConfig() { + _classCallCheck(this, InstallProxyConfig); + + _defineProperty(this, "Binds", undefined); + + _defineProperty(this, "ReverseProxyURL", undefined); + + _defineProperty(this, "SelfSigned", undefined); + + _defineProperty(this, "LetsEncrypt", undefined); + + _defineProperty(this, "Certificate", undefined); + + _defineProperty(this, "SSLRedirect", undefined); + + _defineProperty(this, "Maintenance", undefined); + + _defineProperty(this, "MaintenanceConditions", undefined); + } + /** + * Constructs a InstallProxyConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstallProxyConfig} obj Optional instance to populate. + * @return {module:model/InstallProxyConfig} The populated InstallProxyConfig instance. + */ + + + _createClass(InstallProxyConfig, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new InstallProxyConfig(); + + if (data.hasOwnProperty('Binds')) { + obj['Binds'] = _ApiClient["default"].convertToType(data['Binds'], ['String']); + } + + if (data.hasOwnProperty('ReverseProxyURL')) { + obj['ReverseProxyURL'] = _ApiClient["default"].convertToType(data['ReverseProxyURL'], 'String'); + } + + if (data.hasOwnProperty('SelfSigned')) { + obj['SelfSigned'] = _InstallTLSSelfSigned["default"].constructFromObject(data['SelfSigned']); + } + + if (data.hasOwnProperty('LetsEncrypt')) { + obj['LetsEncrypt'] = _InstallTLSLetsEncrypt["default"].constructFromObject(data['LetsEncrypt']); + } + + if (data.hasOwnProperty('Certificate')) { + obj['Certificate'] = _InstallTLSCertificate["default"].constructFromObject(data['Certificate']); + } + + if (data.hasOwnProperty('SSLRedirect')) { + obj['SSLRedirect'] = _ApiClient["default"].convertToType(data['SSLRedirect'], 'Boolean'); + } + + if (data.hasOwnProperty('Maintenance')) { + obj['Maintenance'] = _ApiClient["default"].convertToType(data['Maintenance'], 'Boolean'); + } + + if (data.hasOwnProperty('MaintenanceConditions')) { + obj['MaintenanceConditions'] = _ApiClient["default"].convertToType(data['MaintenanceConditions'], ['String']); + } + } + + return obj; + } + /** + * @member {Array.} Binds + */ + + }]); + + return InstallProxyConfig; +}(); + +exports["default"] = InstallProxyConfig; +//# sourceMappingURL=InstallProxyConfig.js.map diff --git a/lib/model/InstallProxyConfig.js.map b/lib/model/InstallProxyConfig.js.map new file mode 100644 index 0000000..041f9ae --- /dev/null +++ b/lib/model/InstallProxyConfig.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/InstallProxyConfig.js"],"names":["InstallProxyConfig","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","InstallTLSSelfSigned","constructFromObject","InstallTLSLetsEncrypt","InstallTLSCertificate"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,kB;AACjB;AACJ;AACA;AACA;AACA;AAEI,gCAAc;AAAA;;AAAA,mCAyDNC,SAzDM;;AAAA,6CA6DIA,SA7DJ;;AAAA,wCAiEDA,SAjEC;;AAAA,yCAqEAA,SArEA;;AAAA,yCAyEAA,SAzEA;;AAAA,yCA6EAA,SA7EA;;AAAA,yCAiFAA,SAjFA;;AAAA,mDAqFUA,SArFV;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,kBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,CAAC,QAAD,CAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,iBAApB,CAAJ,EAA4C;AACxCD,UAAAA,GAAG,CAAC,iBAAD,CAAH,GAAyBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,iBAAD,CAA5B,EAAiD,QAAjD,CAAzB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBI,iCAAqBC,mBAArB,CAAyCN,IAAI,CAAC,YAAD,CAA7C,CAApB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBM,kCAAsBD,mBAAtB,CAA0CN,IAAI,CAAC,aAAD,CAA9C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBO,kCAAsBF,mBAAtB,CAA0CN,IAAI,CAAC,aAAD,CAA9C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,SAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,SAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,uBAApB,CAAJ,EAAkD;AAC9CD,UAAAA,GAAG,CAAC,uBAAD,CAAH,GAA+BE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,uBAAD,CAA5B,EAAuD,CAAC,QAAD,CAAvD,CAA/B;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport InstallTLSCertificate from './InstallTLSCertificate';\nimport InstallTLSLetsEncrypt from './InstallTLSLetsEncrypt';\nimport InstallTLSSelfSigned from './InstallTLSSelfSigned';\n\n\n\n\n\n/**\n* The InstallProxyConfig model module.\n* @module model/InstallProxyConfig\n* @version 2.0\n*/\nexport default class InstallProxyConfig {\n /**\n * Constructs a new InstallProxyConfig.\n * @alias module:model/InstallProxyConfig\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a InstallProxyConfig from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/InstallProxyConfig} obj Optional instance to populate.\n * @return {module:model/InstallProxyConfig} The populated InstallProxyConfig instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new InstallProxyConfig();\n\n \n \n \n\n if (data.hasOwnProperty('Binds')) {\n obj['Binds'] = ApiClient.convertToType(data['Binds'], ['String']);\n }\n if (data.hasOwnProperty('ReverseProxyURL')) {\n obj['ReverseProxyURL'] = ApiClient.convertToType(data['ReverseProxyURL'], 'String');\n }\n if (data.hasOwnProperty('SelfSigned')) {\n obj['SelfSigned'] = InstallTLSSelfSigned.constructFromObject(data['SelfSigned']);\n }\n if (data.hasOwnProperty('LetsEncrypt')) {\n obj['LetsEncrypt'] = InstallTLSLetsEncrypt.constructFromObject(data['LetsEncrypt']);\n }\n if (data.hasOwnProperty('Certificate')) {\n obj['Certificate'] = InstallTLSCertificate.constructFromObject(data['Certificate']);\n }\n if (data.hasOwnProperty('SSLRedirect')) {\n obj['SSLRedirect'] = ApiClient.convertToType(data['SSLRedirect'], 'Boolean');\n }\n if (data.hasOwnProperty('Maintenance')) {\n obj['Maintenance'] = ApiClient.convertToType(data['Maintenance'], 'Boolean');\n }\n if (data.hasOwnProperty('MaintenanceConditions')) {\n obj['MaintenanceConditions'] = ApiClient.convertToType(data['MaintenanceConditions'], ['String']);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Binds\n */\n Binds = undefined;\n /**\n * @member {String} ReverseProxyURL\n */\n ReverseProxyURL = undefined;\n /**\n * @member {module:model/InstallTLSSelfSigned} SelfSigned\n */\n SelfSigned = undefined;\n /**\n * @member {module:model/InstallTLSLetsEncrypt} LetsEncrypt\n */\n LetsEncrypt = undefined;\n /**\n * @member {module:model/InstallTLSCertificate} Certificate\n */\n Certificate = undefined;\n /**\n * @member {Boolean} SSLRedirect\n */\n SSLRedirect = undefined;\n /**\n * @member {Boolean} Maintenance\n */\n Maintenance = undefined;\n /**\n * @member {Array.} MaintenanceConditions\n */\n MaintenanceConditions = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"InstallProxyConfig.js"} \ No newline at end of file diff --git a/lib/model/InstallTLSCertificate.js b/lib/model/InstallTLSCertificate.js new file mode 100644 index 0000000..763b451 --- /dev/null +++ b/lib/model/InstallTLSCertificate.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The InstallTLSCertificate model module. +* @module model/InstallTLSCertificate +* @version 2.0 +*/ +var InstallTLSCertificate = /*#__PURE__*/function () { + /** + * Constructs a new InstallTLSCertificate. + * @alias module:model/InstallTLSCertificate + * @class + */ + function InstallTLSCertificate() { + _classCallCheck(this, InstallTLSCertificate); + + _defineProperty(this, "CertFile", undefined); + + _defineProperty(this, "KeyFile", undefined); + + _defineProperty(this, "CellsRootCA", undefined); + } + /** + * Constructs a InstallTLSCertificate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstallTLSCertificate} obj Optional instance to populate. + * @return {module:model/InstallTLSCertificate} The populated InstallTLSCertificate instance. + */ + + + _createClass(InstallTLSCertificate, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new InstallTLSCertificate(); + + if (data.hasOwnProperty('CertFile')) { + obj['CertFile'] = _ApiClient["default"].convertToType(data['CertFile'], 'String'); + } + + if (data.hasOwnProperty('KeyFile')) { + obj['KeyFile'] = _ApiClient["default"].convertToType(data['KeyFile'], 'String'); + } + + if (data.hasOwnProperty('CellsRootCA')) { + obj['CellsRootCA'] = _ApiClient["default"].convertToType(data['CellsRootCA'], 'String'); + } + } + + return obj; + } + /** + * @member {String} CertFile + */ + + }]); + + return InstallTLSCertificate; +}(); + +exports["default"] = InstallTLSCertificate; +//# sourceMappingURL=InstallTLSCertificate.js.map diff --git a/lib/model/InstallTLSCertificate.js.map b/lib/model/InstallTLSCertificate.js.map new file mode 100644 index 0000000..d51c86d --- /dev/null +++ b/lib/model/InstallTLSCertificate.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/InstallTLSCertificate.js"],"names":["InstallTLSCertificate","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,qB;AACjB;AACJ;AACA;AACA;AACA;AAEI,mCAAc;AAAA;;AAAA,sCA0CHC,SA1CG;;AAAA,qCA8CJA,SA9CI;;AAAA,yCAkDAA,SAlDA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,qBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,QAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The InstallTLSCertificate model module.\n* @module model/InstallTLSCertificate\n* @version 2.0\n*/\nexport default class InstallTLSCertificate {\n /**\n * Constructs a new InstallTLSCertificate.\n * @alias module:model/InstallTLSCertificate\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a InstallTLSCertificate from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/InstallTLSCertificate} obj Optional instance to populate.\n * @return {module:model/InstallTLSCertificate} The populated InstallTLSCertificate instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new InstallTLSCertificate();\n\n \n \n \n\n if (data.hasOwnProperty('CertFile')) {\n obj['CertFile'] = ApiClient.convertToType(data['CertFile'], 'String');\n }\n if (data.hasOwnProperty('KeyFile')) {\n obj['KeyFile'] = ApiClient.convertToType(data['KeyFile'], 'String');\n }\n if (data.hasOwnProperty('CellsRootCA')) {\n obj['CellsRootCA'] = ApiClient.convertToType(data['CellsRootCA'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} CertFile\n */\n CertFile = undefined;\n /**\n * @member {String} KeyFile\n */\n KeyFile = undefined;\n /**\n * @member {String} CellsRootCA\n */\n CellsRootCA = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"InstallTLSCertificate.js"} \ No newline at end of file diff --git a/lib/model/InstallTLSLetsEncrypt.js b/lib/model/InstallTLSLetsEncrypt.js new file mode 100644 index 0000000..23eef3f --- /dev/null +++ b/lib/model/InstallTLSLetsEncrypt.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The InstallTLSLetsEncrypt model module. +* @module model/InstallTLSLetsEncrypt +* @version 2.0 +*/ +var InstallTLSLetsEncrypt = /*#__PURE__*/function () { + /** + * Constructs a new InstallTLSLetsEncrypt. + * @alias module:model/InstallTLSLetsEncrypt + * @class + */ + function InstallTLSLetsEncrypt() { + _classCallCheck(this, InstallTLSLetsEncrypt); + + _defineProperty(this, "Email", undefined); + + _defineProperty(this, "AcceptEULA", undefined); + + _defineProperty(this, "StagingCA", undefined); + } + /** + * Constructs a InstallTLSLetsEncrypt from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstallTLSLetsEncrypt} obj Optional instance to populate. + * @return {module:model/InstallTLSLetsEncrypt} The populated InstallTLSLetsEncrypt instance. + */ + + + _createClass(InstallTLSLetsEncrypt, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new InstallTLSLetsEncrypt(); + + if (data.hasOwnProperty('Email')) { + obj['Email'] = _ApiClient["default"].convertToType(data['Email'], 'String'); + } + + if (data.hasOwnProperty('AcceptEULA')) { + obj['AcceptEULA'] = _ApiClient["default"].convertToType(data['AcceptEULA'], 'Boolean'); + } + + if (data.hasOwnProperty('StagingCA')) { + obj['StagingCA'] = _ApiClient["default"].convertToType(data['StagingCA'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {String} Email + */ + + }]); + + return InstallTLSLetsEncrypt; +}(); + +exports["default"] = InstallTLSLetsEncrypt; +//# sourceMappingURL=InstallTLSLetsEncrypt.js.map diff --git a/lib/model/InstallTLSLetsEncrypt.js.map b/lib/model/InstallTLSLetsEncrypt.js.map new file mode 100644 index 0000000..e59af3a --- /dev/null +++ b/lib/model/InstallTLSLetsEncrypt.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/InstallTLSLetsEncrypt.js"],"names":["InstallTLSLetsEncrypt","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,qB;AACjB;AACJ;AACA;AACA;AACA;AAEI,mCAAc;AAAA;;AAAA,mCA0CNC,SA1CM;;AAAA,wCA8CDA,SA9CC;;AAAA,uCAkDFA,SAlDE;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,qBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,SAA5C,CAApB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,SAA3C,CAAnB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The InstallTLSLetsEncrypt model module.\n* @module model/InstallTLSLetsEncrypt\n* @version 2.0\n*/\nexport default class InstallTLSLetsEncrypt {\n /**\n * Constructs a new InstallTLSLetsEncrypt.\n * @alias module:model/InstallTLSLetsEncrypt\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a InstallTLSLetsEncrypt from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/InstallTLSLetsEncrypt} obj Optional instance to populate.\n * @return {module:model/InstallTLSLetsEncrypt} The populated InstallTLSLetsEncrypt instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new InstallTLSLetsEncrypt();\n\n \n \n \n\n if (data.hasOwnProperty('Email')) {\n obj['Email'] = ApiClient.convertToType(data['Email'], 'String');\n }\n if (data.hasOwnProperty('AcceptEULA')) {\n obj['AcceptEULA'] = ApiClient.convertToType(data['AcceptEULA'], 'Boolean');\n }\n if (data.hasOwnProperty('StagingCA')) {\n obj['StagingCA'] = ApiClient.convertToType(data['StagingCA'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Email\n */\n Email = undefined;\n /**\n * @member {Boolean} AcceptEULA\n */\n AcceptEULA = undefined;\n /**\n * @member {Boolean} StagingCA\n */\n StagingCA = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"InstallTLSLetsEncrypt.js"} \ No newline at end of file diff --git a/lib/model/InstallTLSSelfSigned.js b/lib/model/InstallTLSSelfSigned.js new file mode 100644 index 0000000..9f98a92 --- /dev/null +++ b/lib/model/InstallTLSSelfSigned.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The InstallTLSSelfSigned model module. +* @module model/InstallTLSSelfSigned +* @version 2.0 +*/ +var InstallTLSSelfSigned = /*#__PURE__*/function () { + /** + * Constructs a new InstallTLSSelfSigned. + * @alias module:model/InstallTLSSelfSigned + * @class + */ + function InstallTLSSelfSigned() { + _classCallCheck(this, InstallTLSSelfSigned); + + _defineProperty(this, "Hostnames", undefined); + } + /** + * Constructs a InstallTLSSelfSigned from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstallTLSSelfSigned} obj Optional instance to populate. + * @return {module:model/InstallTLSSelfSigned} The populated InstallTLSSelfSigned instance. + */ + + + _createClass(InstallTLSSelfSigned, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new InstallTLSSelfSigned(); + + if (data.hasOwnProperty('Hostnames')) { + obj['Hostnames'] = _ApiClient["default"].convertToType(data['Hostnames'], ['String']); + } + } + + return obj; + } + /** + * @member {Array.} Hostnames + */ + + }]); + + return InstallTLSSelfSigned; +}(); + +exports["default"] = InstallTLSSelfSigned; +//# sourceMappingURL=InstallTLSSelfSigned.js.map diff --git a/lib/model/InstallTLSSelfSigned.js.map b/lib/model/InstallTLSSelfSigned.js.map new file mode 100644 index 0000000..d6ee81a --- /dev/null +++ b/lib/model/InstallTLSSelfSigned.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/InstallTLSSelfSigned.js"],"names":["InstallTLSSelfSigned","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,oB;AACjB;AACJ;AACA;AACA;AACA;AAEI,kCAAc;AAAA;;AAAA,uCAoCFC,SApCE;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,oBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,CAAC,QAAD,CAA3C,CAAnB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The InstallTLSSelfSigned model module.\n* @module model/InstallTLSSelfSigned\n* @version 2.0\n*/\nexport default class InstallTLSSelfSigned {\n /**\n * Constructs a new InstallTLSSelfSigned.\n * @alias module:model/InstallTLSSelfSigned\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a InstallTLSSelfSigned from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/InstallTLSSelfSigned} obj Optional instance to populate.\n * @return {module:model/InstallTLSSelfSigned} The populated InstallTLSSelfSigned instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new InstallTLSSelfSigned();\n\n \n \n \n\n if (data.hasOwnProperty('Hostnames')) {\n obj['Hostnames'] = ApiClient.convertToType(data['Hostnames'], ['String']);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Hostnames\n */\n Hostnames = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"InstallTLSSelfSigned.js"} \ No newline at end of file diff --git a/lib/model/IpbanBannedConnection.js b/lib/model/IpbanBannedConnection.js new file mode 100644 index 0000000..8ca8962 --- /dev/null +++ b/lib/model/IpbanBannedConnection.js @@ -0,0 +1,82 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _IpbanConnectionAttempt = _interopRequireDefault(require("./IpbanConnectionAttempt")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IpbanBannedConnection model module. +* @module model/IpbanBannedConnection +* @version 2.0 +*/ +var IpbanBannedConnection = /*#__PURE__*/function () { + /** + * Constructs a new IpbanBannedConnection. + * @alias module:model/IpbanBannedConnection + * @class + */ + function IpbanBannedConnection() { + _classCallCheck(this, IpbanBannedConnection); + + _defineProperty(this, "IP", undefined); + + _defineProperty(this, "BanExpire", undefined); + + _defineProperty(this, "History", undefined); + } + /** + * Constructs a IpbanBannedConnection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IpbanBannedConnection} obj Optional instance to populate. + * @return {module:model/IpbanBannedConnection} The populated IpbanBannedConnection instance. + */ + + + _createClass(IpbanBannedConnection, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IpbanBannedConnection(); + + if (data.hasOwnProperty('IP')) { + obj['IP'] = _ApiClient["default"].convertToType(data['IP'], 'String'); + } + + if (data.hasOwnProperty('BanExpire')) { + obj['BanExpire'] = _ApiClient["default"].convertToType(data['BanExpire'], 'String'); + } + + if (data.hasOwnProperty('History')) { + obj['History'] = _ApiClient["default"].convertToType(data['History'], [_IpbanConnectionAttempt["default"]]); + } + } + + return obj; + } + /** + * @member {String} IP + */ + + }]); + + return IpbanBannedConnection; +}(); + +exports["default"] = IpbanBannedConnection; +//# sourceMappingURL=IpbanBannedConnection.js.map diff --git a/lib/model/IpbanBannedConnection.js.map b/lib/model/IpbanBannedConnection.js.map new file mode 100644 index 0000000..698c911 --- /dev/null +++ b/lib/model/IpbanBannedConnection.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IpbanBannedConnection.js"],"names":["IpbanBannedConnection","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","IpbanConnectionAttempt"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,qB;AACjB;AACJ;AACA;AACA;AACA;AAEI,mCAAc;AAAA;;AAAA,gCA0CTC,SA1CS;;AAAA,uCA8CFA,SA9CE;;AAAA,qCAkDJA,SAlDI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,qBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,IAApB,CAAJ,EAA+B;AAC3BD,UAAAA,GAAG,CAAC,IAAD,CAAH,GAAYE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,IAAD,CAA5B,EAAoC,QAApC,CAAZ;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,QAA3C,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,CAACK,kCAAD,CAAzC,CAAjB;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport IpbanConnectionAttempt from './IpbanConnectionAttempt';\n\n\n\n\n\n/**\n* The IpbanBannedConnection model module.\n* @module model/IpbanBannedConnection\n* @version 2.0\n*/\nexport default class IpbanBannedConnection {\n /**\n * Constructs a new IpbanBannedConnection.\n * @alias module:model/IpbanBannedConnection\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IpbanBannedConnection from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IpbanBannedConnection} obj Optional instance to populate.\n * @return {module:model/IpbanBannedConnection} The populated IpbanBannedConnection instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IpbanBannedConnection();\n\n \n \n \n\n if (data.hasOwnProperty('IP')) {\n obj['IP'] = ApiClient.convertToType(data['IP'], 'String');\n }\n if (data.hasOwnProperty('BanExpire')) {\n obj['BanExpire'] = ApiClient.convertToType(data['BanExpire'], 'String');\n }\n if (data.hasOwnProperty('History')) {\n obj['History'] = ApiClient.convertToType(data['History'], [IpbanConnectionAttempt]);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} IP\n */\n IP = undefined;\n /**\n * @member {String} BanExpire\n */\n BanExpire = undefined;\n /**\n * @member {Array.} History\n */\n History = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IpbanBannedConnection.js"} \ No newline at end of file diff --git a/lib/model/IpbanConnectionAttempt.js b/lib/model/IpbanConnectionAttempt.js new file mode 100644 index 0000000..6605b39 --- /dev/null +++ b/lib/model/IpbanConnectionAttempt.js @@ -0,0 +1,88 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IpbanConnectionAttempt model module. +* @module model/IpbanConnectionAttempt +* @version 2.0 +*/ +var IpbanConnectionAttempt = /*#__PURE__*/function () { + /** + * Constructs a new IpbanConnectionAttempt. + * @alias module:model/IpbanConnectionAttempt + * @class + */ + function IpbanConnectionAttempt() { + _classCallCheck(this, IpbanConnectionAttempt); + + _defineProperty(this, "IP", undefined); + + _defineProperty(this, "connectionTime", undefined); + + _defineProperty(this, "IsSuccess", undefined); + + _defineProperty(this, "Details", undefined); + } + /** + * Constructs a IpbanConnectionAttempt from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IpbanConnectionAttempt} obj Optional instance to populate. + * @return {module:model/IpbanConnectionAttempt} The populated IpbanConnectionAttempt instance. + */ + + + _createClass(IpbanConnectionAttempt, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IpbanConnectionAttempt(); + + if (data.hasOwnProperty('IP')) { + obj['IP'] = _ApiClient["default"].convertToType(data['IP'], 'String'); + } + + if (data.hasOwnProperty('connectionTime')) { + obj['connectionTime'] = _ApiClient["default"].convertToType(data['connectionTime'], 'String'); + } + + if (data.hasOwnProperty('IsSuccess')) { + obj['IsSuccess'] = _ApiClient["default"].convertToType(data['IsSuccess'], 'Boolean'); + } + + if (data.hasOwnProperty('Details')) { + obj['Details'] = _ApiClient["default"].convertToType(data['Details'], { + 'String': 'String' + }); + } + } + + return obj; + } + /** + * @member {String} IP + */ + + }]); + + return IpbanConnectionAttempt; +}(); + +exports["default"] = IpbanConnectionAttempt; +//# sourceMappingURL=IpbanConnectionAttempt.js.map diff --git a/lib/model/IpbanConnectionAttempt.js.map b/lib/model/IpbanConnectionAttempt.js.map new file mode 100644 index 0000000..bd9c5f4 --- /dev/null +++ b/lib/model/IpbanConnectionAttempt.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IpbanConnectionAttempt.js"],"names":["IpbanConnectionAttempt","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,sB;AACjB;AACJ;AACA;AACA;AACA;AAEI,oCAAc;AAAA;;AAAA,gCA6CTC,SA7CS;;AAAA,4CAiDGA,SAjDH;;AAAA,uCAqDFA,SArDE;;AAAA,qCAyDJA,SAzDI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,sBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,IAApB,CAAJ,EAA+B;AAC3BD,UAAAA,GAAG,CAAC,IAAD,CAAH,GAAYE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,IAAD,CAA5B,EAAoC,QAApC,CAAZ;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,gBAApB,CAAJ,EAA2C;AACvCD,UAAAA,GAAG,CAAC,gBAAD,CAAH,GAAwBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,gBAAD,CAA5B,EAAgD,QAAhD,CAAxB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,SAA3C,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC;AAAC,sBAAU;AAAX,WAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The IpbanConnectionAttempt model module.\n* @module model/IpbanConnectionAttempt\n* @version 2.0\n*/\nexport default class IpbanConnectionAttempt {\n /**\n * Constructs a new IpbanConnectionAttempt.\n * @alias module:model/IpbanConnectionAttempt\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IpbanConnectionAttempt from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IpbanConnectionAttempt} obj Optional instance to populate.\n * @return {module:model/IpbanConnectionAttempt} The populated IpbanConnectionAttempt instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IpbanConnectionAttempt();\n\n \n \n \n\n if (data.hasOwnProperty('IP')) {\n obj['IP'] = ApiClient.convertToType(data['IP'], 'String');\n }\n if (data.hasOwnProperty('connectionTime')) {\n obj['connectionTime'] = ApiClient.convertToType(data['connectionTime'], 'String');\n }\n if (data.hasOwnProperty('IsSuccess')) {\n obj['IsSuccess'] = ApiClient.convertToType(data['IsSuccess'], 'Boolean');\n }\n if (data.hasOwnProperty('Details')) {\n obj['Details'] = ApiClient.convertToType(data['Details'], {'String': 'String'});\n }\n }\n return obj;\n }\n\n /**\n * @member {String} IP\n */\n IP = undefined;\n /**\n * @member {String} connectionTime\n */\n connectionTime = undefined;\n /**\n * @member {Boolean} IsSuccess\n */\n IsSuccess = undefined;\n /**\n * @member {Object.} Details\n */\n Details = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IpbanConnectionAttempt.js"} \ No newline at end of file diff --git a/lib/model/IpbanIPsCollection.js b/lib/model/IpbanIPsCollection.js new file mode 100644 index 0000000..55c9973 --- /dev/null +++ b/lib/model/IpbanIPsCollection.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IpbanIPsCollection model module. +* @module model/IpbanIPsCollection +* @version 2.0 +*/ +var IpbanIPsCollection = /*#__PURE__*/function () { + /** + * Constructs a new IpbanIPsCollection. + * @alias module:model/IpbanIPsCollection + * @class + */ + function IpbanIPsCollection() { + _classCallCheck(this, IpbanIPsCollection); + + _defineProperty(this, "Name", undefined); + + _defineProperty(this, "IPs", undefined); + } + /** + * Constructs a IpbanIPsCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IpbanIPsCollection} obj Optional instance to populate. + * @return {module:model/IpbanIPsCollection} The populated IpbanIPsCollection instance. + */ + + + _createClass(IpbanIPsCollection, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IpbanIPsCollection(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('IPs')) { + obj['IPs'] = _ApiClient["default"].convertToType(data['IPs'], ['String']); + } + } + + return obj; + } + /** + * @member {String} Name + */ + + }]); + + return IpbanIPsCollection; +}(); + +exports["default"] = IpbanIPsCollection; +//# sourceMappingURL=IpbanIPsCollection.js.map diff --git a/lib/model/IpbanIPsCollection.js.map b/lib/model/IpbanIPsCollection.js.map new file mode 100644 index 0000000..ce2def6 --- /dev/null +++ b/lib/model/IpbanIPsCollection.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IpbanIPsCollection.js"],"names":["IpbanIPsCollection","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,kB;AACjB;AACJ;AACA;AACA;AACA;AAEI,gCAAc;AAAA;;AAAA,kCAuCPC,SAvCO;;AAAA,iCA2CRA,SA3CQ;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,kBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,KAApB,CAAJ,EAAgC;AAC5BD,UAAAA,GAAG,CAAC,KAAD,CAAH,GAAaE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,KAAD,CAA5B,EAAqC,CAAC,QAAD,CAArC,CAAb;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The IpbanIPsCollection model module.\n* @module model/IpbanIPsCollection\n* @version 2.0\n*/\nexport default class IpbanIPsCollection {\n /**\n * Constructs a new IpbanIPsCollection.\n * @alias module:model/IpbanIPsCollection\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IpbanIPsCollection from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IpbanIPsCollection} obj Optional instance to populate.\n * @return {module:model/IpbanIPsCollection} The populated IpbanIPsCollection instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IpbanIPsCollection();\n\n \n \n \n\n if (data.hasOwnProperty('Name')) {\n obj['Name'] = ApiClient.convertToType(data['Name'], 'String');\n }\n if (data.hasOwnProperty('IPs')) {\n obj['IPs'] = ApiClient.convertToType(data['IPs'], ['String']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Name\n */\n Name = undefined;\n /**\n * @member {Array.} IPs\n */\n IPs = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IpbanIPsCollection.js"} \ No newline at end of file diff --git a/lib/model/IpbanListBansCollection.js b/lib/model/IpbanListBansCollection.js new file mode 100644 index 0000000..2902935 --- /dev/null +++ b/lib/model/IpbanListBansCollection.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _IpbanBannedConnection = _interopRequireDefault(require("./IpbanBannedConnection")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IpbanListBansCollection model module. +* @module model/IpbanListBansCollection +* @version 2.0 +*/ +var IpbanListBansCollection = /*#__PURE__*/function () { + /** + * Constructs a new IpbanListBansCollection. + * @alias module:model/IpbanListBansCollection + * @class + */ + function IpbanListBansCollection() { + _classCallCheck(this, IpbanListBansCollection); + + _defineProperty(this, "Bans", undefined); + } + /** + * Constructs a IpbanListBansCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IpbanListBansCollection} obj Optional instance to populate. + * @return {module:model/IpbanListBansCollection} The populated IpbanListBansCollection instance. + */ + + + _createClass(IpbanListBansCollection, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IpbanListBansCollection(); + + if (data.hasOwnProperty('Bans')) { + obj['Bans'] = _ApiClient["default"].convertToType(data['Bans'], [_IpbanBannedConnection["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} Bans + */ + + }]); + + return IpbanListBansCollection; +}(); + +exports["default"] = IpbanListBansCollection; +//# sourceMappingURL=IpbanListBansCollection.js.map diff --git a/lib/model/IpbanListBansCollection.js.map b/lib/model/IpbanListBansCollection.js.map new file mode 100644 index 0000000..639b81b --- /dev/null +++ b/lib/model/IpbanListBansCollection.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IpbanListBansCollection.js"],"names":["IpbanListBansCollection","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","IpbanBannedConnection"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,uB;AACjB;AACJ;AACA;AACA;AACA;AAEI,qCAAc;AAAA;;AAAA,kCAoCPC,SApCO;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,uBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,CAACK,iCAAD,CAAtC,CAAd;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport IpbanBannedConnection from './IpbanBannedConnection';\n\n\n\n\n\n/**\n* The IpbanListBansCollection model module.\n* @module model/IpbanListBansCollection\n* @version 2.0\n*/\nexport default class IpbanListBansCollection {\n /**\n * Constructs a new IpbanListBansCollection.\n * @alias module:model/IpbanListBansCollection\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IpbanListBansCollection from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IpbanListBansCollection} obj Optional instance to populate.\n * @return {module:model/IpbanListBansCollection} The populated IpbanListBansCollection instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IpbanListBansCollection();\n\n \n \n \n\n if (data.hasOwnProperty('Bans')) {\n obj['Bans'] = ApiClient.convertToType(data['Bans'], [IpbanBannedConnection]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Bans\n */\n Bans = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IpbanListBansCollection.js"} \ No newline at end of file diff --git a/lib/model/IpbanUnbanRequest.js b/lib/model/IpbanUnbanRequest.js new file mode 100644 index 0000000..e29df0a --- /dev/null +++ b/lib/model/IpbanUnbanRequest.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IpbanUnbanRequest model module. +* @module model/IpbanUnbanRequest +* @version 2.0 +*/ +var IpbanUnbanRequest = /*#__PURE__*/function () { + /** + * Constructs a new IpbanUnbanRequest. + * @alias module:model/IpbanUnbanRequest + * @class + */ + function IpbanUnbanRequest() { + _classCallCheck(this, IpbanUnbanRequest); + + _defineProperty(this, "IP", undefined); + } + /** + * Constructs a IpbanUnbanRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IpbanUnbanRequest} obj Optional instance to populate. + * @return {module:model/IpbanUnbanRequest} The populated IpbanUnbanRequest instance. + */ + + + _createClass(IpbanUnbanRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IpbanUnbanRequest(); + + if (data.hasOwnProperty('IP')) { + obj['IP'] = _ApiClient["default"].convertToType(data['IP'], 'String'); + } + } + + return obj; + } + /** + * @member {String} IP + */ + + }]); + + return IpbanUnbanRequest; +}(); + +exports["default"] = IpbanUnbanRequest; +//# sourceMappingURL=IpbanUnbanRequest.js.map diff --git a/lib/model/IpbanUnbanRequest.js.map b/lib/model/IpbanUnbanRequest.js.map new file mode 100644 index 0000000..b2be1cb --- /dev/null +++ b/lib/model/IpbanUnbanRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IpbanUnbanRequest.js"],"names":["IpbanUnbanRequest","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,iB;AACjB;AACJ;AACA;AACA;AACA;AAEI,+BAAc;AAAA;;AAAA,gCAoCTC,SApCS;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,iBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,IAApB,CAAJ,EAA+B;AAC3BD,UAAAA,GAAG,CAAC,IAAD,CAAH,GAAYE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,IAAD,CAA5B,EAAoC,QAApC,CAAZ;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The IpbanUnbanRequest model module.\n* @module model/IpbanUnbanRequest\n* @version 2.0\n*/\nexport default class IpbanUnbanRequest {\n /**\n * Constructs a new IpbanUnbanRequest.\n * @alias module:model/IpbanUnbanRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IpbanUnbanRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IpbanUnbanRequest} obj Optional instance to populate.\n * @return {module:model/IpbanUnbanRequest} The populated IpbanUnbanRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IpbanUnbanRequest();\n\n \n \n \n\n if (data.hasOwnProperty('IP')) {\n obj['IP'] = ApiClient.convertToType(data['IP'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} IP\n */\n IP = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IpbanUnbanRequest.js"} \ No newline at end of file diff --git a/lib/model/IpbanUnbanResponse.js b/lib/model/IpbanUnbanResponse.js new file mode 100644 index 0000000..595b203 --- /dev/null +++ b/lib/model/IpbanUnbanResponse.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The IpbanUnbanResponse model module. +* @module model/IpbanUnbanResponse +* @version 2.0 +*/ +var IpbanUnbanResponse = /*#__PURE__*/function () { + /** + * Constructs a new IpbanUnbanResponse. + * @alias module:model/IpbanUnbanResponse + * @class + */ + function IpbanUnbanResponse() { + _classCallCheck(this, IpbanUnbanResponse); + + _defineProperty(this, "Success", undefined); + } + /** + * Constructs a IpbanUnbanResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IpbanUnbanResponse} obj Optional instance to populate. + * @return {module:model/IpbanUnbanResponse} The populated IpbanUnbanResponse instance. + */ + + + _createClass(IpbanUnbanResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new IpbanUnbanResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return IpbanUnbanResponse; +}(); + +exports["default"] = IpbanUnbanResponse; +//# sourceMappingURL=IpbanUnbanResponse.js.map diff --git a/lib/model/IpbanUnbanResponse.js.map b/lib/model/IpbanUnbanResponse.js.map new file mode 100644 index 0000000..563cc1f --- /dev/null +++ b/lib/model/IpbanUnbanResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/IpbanUnbanResponse.js"],"names":["IpbanUnbanResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,kB;AACjB;AACJ;AACA;AACA;AACA;AAEI,gCAAc;AAAA;;AAAA,qCAoCJC,SApCI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,kBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The IpbanUnbanResponse model module.\n* @module model/IpbanUnbanResponse\n* @version 2.0\n*/\nexport default class IpbanUnbanResponse {\n /**\n * Constructs a new IpbanUnbanResponse.\n * @alias module:model/IpbanUnbanResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a IpbanUnbanResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/IpbanUnbanResponse} obj Optional instance to populate.\n * @return {module:model/IpbanUnbanResponse} The populated IpbanUnbanResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new IpbanUnbanResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"IpbanUnbanResponse.js"} \ No newline at end of file diff --git a/lib/model/JobsAction.js b/lib/model/JobsAction.js new file mode 100644 index 0000000..db1ab45 --- /dev/null +++ b/lib/model/JobsAction.js @@ -0,0 +1,192 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsActionOutputFilter = _interopRequireDefault(require("./JobsActionOutputFilter")); + +var _JobsContextMetaFilter = _interopRequireDefault(require("./JobsContextMetaFilter")); + +var _JobsDataSourceSelector = _interopRequireDefault(require("./JobsDataSourceSelector")); + +var _JobsIdmSelector = _interopRequireDefault(require("./JobsIdmSelector")); + +var _JobsNodesSelector = _interopRequireDefault(require("./JobsNodesSelector")); + +var _JobsTriggerFilter = _interopRequireDefault(require("./JobsTriggerFilter")); + +var _JobsUsersSelector = _interopRequireDefault(require("./JobsUsersSelector")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsAction model module. +* @module model/JobsAction +* @version 2.0 +*/ +var JobsAction = /*#__PURE__*/function () { + /** + * Constructs a new JobsAction. + * @alias module:model/JobsAction + * @class + */ + function JobsAction() { + _classCallCheck(this, JobsAction); + + _defineProperty(this, "ID", undefined); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "Description", undefined); + + _defineProperty(this, "Bypass", undefined); + + _defineProperty(this, "BreakAfter", undefined); + + _defineProperty(this, "NodesSelector", undefined); + + _defineProperty(this, "UsersSelector", undefined); + + _defineProperty(this, "NodesFilter", undefined); + + _defineProperty(this, "UsersFilter", undefined); + + _defineProperty(this, "IdmSelector", undefined); + + _defineProperty(this, "IdmFilter", undefined); + + _defineProperty(this, "DataSourceSelector", undefined); + + _defineProperty(this, "DataSourceFilter", undefined); + + _defineProperty(this, "ActionOutputFilter", undefined); + + _defineProperty(this, "ContextMetaFilter", undefined); + + _defineProperty(this, "TriggerFilter", undefined); + + _defineProperty(this, "Parameters", undefined); + + _defineProperty(this, "ChainedActions", undefined); + + _defineProperty(this, "FailedFilterActions", undefined); + } + /** + * Constructs a JobsAction from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsAction} obj Optional instance to populate. + * @return {module:model/JobsAction} The populated JobsAction instance. + */ + + + _createClass(JobsAction, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsAction(); + + if (data.hasOwnProperty('ID')) { + obj['ID'] = _ApiClient["default"].convertToType(data['ID'], 'String'); + } + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + + if (data.hasOwnProperty('Bypass')) { + obj['Bypass'] = _ApiClient["default"].convertToType(data['Bypass'], 'Boolean'); + } + + if (data.hasOwnProperty('BreakAfter')) { + obj['BreakAfter'] = _ApiClient["default"].convertToType(data['BreakAfter'], 'Boolean'); + } + + if (data.hasOwnProperty('NodesSelector')) { + obj['NodesSelector'] = _JobsNodesSelector["default"].constructFromObject(data['NodesSelector']); + } + + if (data.hasOwnProperty('UsersSelector')) { + obj['UsersSelector'] = _JobsUsersSelector["default"].constructFromObject(data['UsersSelector']); + } + + if (data.hasOwnProperty('NodesFilter')) { + obj['NodesFilter'] = _JobsNodesSelector["default"].constructFromObject(data['NodesFilter']); + } + + if (data.hasOwnProperty('UsersFilter')) { + obj['UsersFilter'] = _JobsUsersSelector["default"].constructFromObject(data['UsersFilter']); + } + + if (data.hasOwnProperty('IdmSelector')) { + obj['IdmSelector'] = _JobsIdmSelector["default"].constructFromObject(data['IdmSelector']); + } + + if (data.hasOwnProperty('IdmFilter')) { + obj['IdmFilter'] = _JobsIdmSelector["default"].constructFromObject(data['IdmFilter']); + } + + if (data.hasOwnProperty('DataSourceSelector')) { + obj['DataSourceSelector'] = _JobsDataSourceSelector["default"].constructFromObject(data['DataSourceSelector']); + } + + if (data.hasOwnProperty('DataSourceFilter')) { + obj['DataSourceFilter'] = _JobsDataSourceSelector["default"].constructFromObject(data['DataSourceFilter']); + } + + if (data.hasOwnProperty('ActionOutputFilter')) { + obj['ActionOutputFilter'] = _JobsActionOutputFilter["default"].constructFromObject(data['ActionOutputFilter']); + } + + if (data.hasOwnProperty('ContextMetaFilter')) { + obj['ContextMetaFilter'] = _JobsContextMetaFilter["default"].constructFromObject(data['ContextMetaFilter']); + } + + if (data.hasOwnProperty('TriggerFilter')) { + obj['TriggerFilter'] = _JobsTriggerFilter["default"].constructFromObject(data['TriggerFilter']); + } + + if (data.hasOwnProperty('Parameters')) { + obj['Parameters'] = _ApiClient["default"].convertToType(data['Parameters'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('ChainedActions')) { + obj['ChainedActions'] = _ApiClient["default"].convertToType(data['ChainedActions'], [JobsAction]); + } + + if (data.hasOwnProperty('FailedFilterActions')) { + obj['FailedFilterActions'] = _ApiClient["default"].convertToType(data['FailedFilterActions'], [JobsAction]); + } + } + + return obj; + } + /** + * @member {String} ID + */ + + }]); + + return JobsAction; +}(); + +exports["default"] = JobsAction; +//# sourceMappingURL=JobsAction.js.map diff --git a/lib/model/JobsAction.js.map b/lib/model/JobsAction.js.map new file mode 100644 index 0000000..63fbae0 --- /dev/null +++ b/lib/model/JobsAction.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsAction.js"],"names":["JobsAction","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","JobsNodesSelector","constructFromObject","JobsUsersSelector","JobsIdmSelector","JobsDataSourceSelector","JobsActionOutputFilter","JobsContextMetaFilter","JobsTriggerFilter"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsActionOutputFilter from './JobsActionOutputFilter';\nimport JobsContextMetaFilter from './JobsContextMetaFilter';\nimport JobsDataSourceSelector from './JobsDataSourceSelector';\nimport JobsIdmSelector from './JobsIdmSelector';\nimport JobsNodesSelector from './JobsNodesSelector';\nimport JobsTriggerFilter from './JobsTriggerFilter';\nimport JobsUsersSelector from './JobsUsersSelector';\n\n\n\n\n\n/**\n* The JobsAction model module.\n* @module model/JobsAction\n* @version 2.0\n*/\nexport default class JobsAction {\n /**\n * Constructs a new JobsAction.\n * @alias module:model/JobsAction\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsAction from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsAction} obj Optional instance to populate.\n * @return {module:model/JobsAction} The populated JobsAction instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsAction();\n\n \n \n \n\n if (data.hasOwnProperty('ID')) {\n obj['ID'] = ApiClient.convertToType(data['ID'], 'String');\n }\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n if (data.hasOwnProperty('Bypass')) {\n obj['Bypass'] = ApiClient.convertToType(data['Bypass'], 'Boolean');\n }\n if (data.hasOwnProperty('BreakAfter')) {\n obj['BreakAfter'] = ApiClient.convertToType(data['BreakAfter'], 'Boolean');\n }\n if (data.hasOwnProperty('NodesSelector')) {\n obj['NodesSelector'] = JobsNodesSelector.constructFromObject(data['NodesSelector']);\n }\n if (data.hasOwnProperty('UsersSelector')) {\n obj['UsersSelector'] = JobsUsersSelector.constructFromObject(data['UsersSelector']);\n }\n if (data.hasOwnProperty('NodesFilter')) {\n obj['NodesFilter'] = JobsNodesSelector.constructFromObject(data['NodesFilter']);\n }\n if (data.hasOwnProperty('UsersFilter')) {\n obj['UsersFilter'] = JobsUsersSelector.constructFromObject(data['UsersFilter']);\n }\n if (data.hasOwnProperty('IdmSelector')) {\n obj['IdmSelector'] = JobsIdmSelector.constructFromObject(data['IdmSelector']);\n }\n if (data.hasOwnProperty('IdmFilter')) {\n obj['IdmFilter'] = JobsIdmSelector.constructFromObject(data['IdmFilter']);\n }\n if (data.hasOwnProperty('DataSourceSelector')) {\n obj['DataSourceSelector'] = JobsDataSourceSelector.constructFromObject(data['DataSourceSelector']);\n }\n if (data.hasOwnProperty('DataSourceFilter')) {\n obj['DataSourceFilter'] = JobsDataSourceSelector.constructFromObject(data['DataSourceFilter']);\n }\n if (data.hasOwnProperty('ActionOutputFilter')) {\n obj['ActionOutputFilter'] = JobsActionOutputFilter.constructFromObject(data['ActionOutputFilter']);\n }\n if (data.hasOwnProperty('ContextMetaFilter')) {\n obj['ContextMetaFilter'] = JobsContextMetaFilter.constructFromObject(data['ContextMetaFilter']);\n }\n if (data.hasOwnProperty('TriggerFilter')) {\n obj['TriggerFilter'] = JobsTriggerFilter.constructFromObject(data['TriggerFilter']);\n }\n if (data.hasOwnProperty('Parameters')) {\n obj['Parameters'] = ApiClient.convertToType(data['Parameters'], {'String': 'String'});\n }\n if (data.hasOwnProperty('ChainedActions')) {\n obj['ChainedActions'] = ApiClient.convertToType(data['ChainedActions'], [JobsAction]);\n }\n if (data.hasOwnProperty('FailedFilterActions')) {\n obj['FailedFilterActions'] = ApiClient.convertToType(data['FailedFilterActions'], [JobsAction]);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} ID\n */\n ID = undefined;\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n /**\n * @member {Boolean} Bypass\n */\n Bypass = undefined;\n /**\n * @member {Boolean} BreakAfter\n */\n BreakAfter = undefined;\n /**\n * @member {module:model/JobsNodesSelector} NodesSelector\n */\n NodesSelector = undefined;\n /**\n * @member {module:model/JobsUsersSelector} UsersSelector\n */\n UsersSelector = undefined;\n /**\n * @member {module:model/JobsNodesSelector} NodesFilter\n */\n NodesFilter = undefined;\n /**\n * @member {module:model/JobsUsersSelector} UsersFilter\n */\n UsersFilter = undefined;\n /**\n * @member {module:model/JobsIdmSelector} IdmSelector\n */\n IdmSelector = undefined;\n /**\n * @member {module:model/JobsIdmSelector} IdmFilter\n */\n IdmFilter = undefined;\n /**\n * @member {module:model/JobsDataSourceSelector} DataSourceSelector\n */\n DataSourceSelector = undefined;\n /**\n * @member {module:model/JobsDataSourceSelector} DataSourceFilter\n */\n DataSourceFilter = undefined;\n /**\n * @member {module:model/JobsActionOutputFilter} ActionOutputFilter\n */\n ActionOutputFilter = undefined;\n /**\n * @member {module:model/JobsContextMetaFilter} ContextMetaFilter\n */\n ContextMetaFilter = undefined;\n /**\n * @member {module:model/JobsTriggerFilter} TriggerFilter\n */\n TriggerFilter = undefined;\n /**\n * @member {Object.} Parameters\n */\n Parameters = undefined;\n /**\n * @member {Array.} ChainedActions\n */\n ChainedActions = undefined;\n /**\n * @member {Array.} FailedFilterActions\n */\n FailedFilterActions = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsAction.js"} \ No newline at end of file diff --git a/lib/model/JobsActionLog.js b/lib/model/JobsActionLog.js new file mode 100644 index 0000000..fb67710 --- /dev/null +++ b/lib/model/JobsActionLog.js @@ -0,0 +1,84 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsAction = _interopRequireDefault(require("./JobsAction")); + +var _JobsActionMessage = _interopRequireDefault(require("./JobsActionMessage")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsActionLog model module. +* @module model/JobsActionLog +* @version 2.0 +*/ +var JobsActionLog = /*#__PURE__*/function () { + /** + * Constructs a new JobsActionLog. + * @alias module:model/JobsActionLog + * @class + */ + function JobsActionLog() { + _classCallCheck(this, JobsActionLog); + + _defineProperty(this, "Action", undefined); + + _defineProperty(this, "InputMessage", undefined); + + _defineProperty(this, "OutputMessage", undefined); + } + /** + * Constructs a JobsActionLog from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsActionLog} obj Optional instance to populate. + * @return {module:model/JobsActionLog} The populated JobsActionLog instance. + */ + + + _createClass(JobsActionLog, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsActionLog(); + + if (data.hasOwnProperty('Action')) { + obj['Action'] = _JobsAction["default"].constructFromObject(data['Action']); + } + + if (data.hasOwnProperty('InputMessage')) { + obj['InputMessage'] = _JobsActionMessage["default"].constructFromObject(data['InputMessage']); + } + + if (data.hasOwnProperty('OutputMessage')) { + obj['OutputMessage'] = _JobsActionMessage["default"].constructFromObject(data['OutputMessage']); + } + } + + return obj; + } + /** + * @member {module:model/JobsAction} Action + */ + + }]); + + return JobsActionLog; +}(); + +exports["default"] = JobsActionLog; +//# sourceMappingURL=JobsActionLog.js.map diff --git a/lib/model/JobsActionLog.js.map b/lib/model/JobsActionLog.js.map new file mode 100644 index 0000000..5409135 --- /dev/null +++ b/lib/model/JobsActionLog.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsActionLog.js"],"names":["JobsActionLog","undefined","data","obj","hasOwnProperty","JobsAction","constructFromObject","JobsActionMessage"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,a;AACjB;AACJ;AACA;AACA;AACA;AAEI,2BAAc;AAAA;;AAAA,oCA0CLC,SA1CK;;AAAA,0CA8CCA,SA9CD;;AAAA,2CAkDEA,SAlDF;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,aAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,uBAAWC,mBAAX,CAA+BJ,IAAI,CAAC,QAAD,CAAnC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBI,8BAAkBD,mBAAlB,CAAsCJ,IAAI,CAAC,cAAD,CAA1C,CAAtB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBI,8BAAkBD,mBAAlB,CAAsCJ,IAAI,CAAC,eAAD,CAA1C,CAAvB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsAction from './JobsAction';\nimport JobsActionMessage from './JobsActionMessage';\n\n\n\n\n\n/**\n* The JobsActionLog model module.\n* @module model/JobsActionLog\n* @version 2.0\n*/\nexport default class JobsActionLog {\n /**\n * Constructs a new JobsActionLog.\n * @alias module:model/JobsActionLog\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsActionLog from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsActionLog} obj Optional instance to populate.\n * @return {module:model/JobsActionLog} The populated JobsActionLog instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsActionLog();\n\n \n \n \n\n if (data.hasOwnProperty('Action')) {\n obj['Action'] = JobsAction.constructFromObject(data['Action']);\n }\n if (data.hasOwnProperty('InputMessage')) {\n obj['InputMessage'] = JobsActionMessage.constructFromObject(data['InputMessage']);\n }\n if (data.hasOwnProperty('OutputMessage')) {\n obj['OutputMessage'] = JobsActionMessage.constructFromObject(data['OutputMessage']);\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/JobsAction} Action\n */\n Action = undefined;\n /**\n * @member {module:model/JobsActionMessage} InputMessage\n */\n InputMessage = undefined;\n /**\n * @member {module:model/JobsActionMessage} OutputMessage\n */\n OutputMessage = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsActionLog.js"} \ No newline at end of file diff --git a/lib/model/JobsActionMessage.js b/lib/model/JobsActionMessage.js new file mode 100644 index 0000000..f65ecc2 --- /dev/null +++ b/lib/model/JobsActionMessage.js @@ -0,0 +1,134 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ActivityObject = _interopRequireDefault(require("./ActivityObject")); + +var _IdmACL = _interopRequireDefault(require("./IdmACL")); + +var _IdmRole = _interopRequireDefault(require("./IdmRole")); + +var _IdmUser = _interopRequireDefault(require("./IdmUser")); + +var _IdmWorkspace = _interopRequireDefault(require("./IdmWorkspace")); + +var _JobsActionOutput = _interopRequireDefault(require("./JobsActionOutput")); + +var _ObjectDataSource = _interopRequireDefault(require("./ObjectDataSource")); + +var _ProtobufAny = _interopRequireDefault(require("./ProtobufAny")); + +var _TreeNode = _interopRequireDefault(require("./TreeNode")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsActionMessage model module. +* @module model/JobsActionMessage +* @version 2.0 +*/ +var JobsActionMessage = /*#__PURE__*/function () { + /** + * Constructs a new JobsActionMessage. + * @alias module:model/JobsActionMessage + * @class + */ + function JobsActionMessage() { + _classCallCheck(this, JobsActionMessage); + + _defineProperty(this, "Event", undefined); + + _defineProperty(this, "Nodes", undefined); + + _defineProperty(this, "Users", undefined); + + _defineProperty(this, "Roles", undefined); + + _defineProperty(this, "Workspaces", undefined); + + _defineProperty(this, "Acls", undefined); + + _defineProperty(this, "Activities", undefined); + + _defineProperty(this, "DataSources", undefined); + + _defineProperty(this, "OutputChain", undefined); + } + /** + * Constructs a JobsActionMessage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsActionMessage} obj Optional instance to populate. + * @return {module:model/JobsActionMessage} The populated JobsActionMessage instance. + */ + + + _createClass(JobsActionMessage, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsActionMessage(); + + if (data.hasOwnProperty('Event')) { + obj['Event'] = _ProtobufAny["default"].constructFromObject(data['Event']); + } + + if (data.hasOwnProperty('Nodes')) { + obj['Nodes'] = _ApiClient["default"].convertToType(data['Nodes'], [_TreeNode["default"]]); + } + + if (data.hasOwnProperty('Users')) { + obj['Users'] = _ApiClient["default"].convertToType(data['Users'], [_IdmUser["default"]]); + } + + if (data.hasOwnProperty('Roles')) { + obj['Roles'] = _ApiClient["default"].convertToType(data['Roles'], [_IdmRole["default"]]); + } + + if (data.hasOwnProperty('Workspaces')) { + obj['Workspaces'] = _ApiClient["default"].convertToType(data['Workspaces'], [_IdmWorkspace["default"]]); + } + + if (data.hasOwnProperty('Acls')) { + obj['Acls'] = _ApiClient["default"].convertToType(data['Acls'], [_IdmACL["default"]]); + } + + if (data.hasOwnProperty('Activities')) { + obj['Activities'] = _ApiClient["default"].convertToType(data['Activities'], [_ActivityObject["default"]]); + } + + if (data.hasOwnProperty('DataSources')) { + obj['DataSources'] = _ApiClient["default"].convertToType(data['DataSources'], [_ObjectDataSource["default"]]); + } + + if (data.hasOwnProperty('OutputChain')) { + obj['OutputChain'] = _ApiClient["default"].convertToType(data['OutputChain'], [_JobsActionOutput["default"]]); + } + } + + return obj; + } + /** + * @member {module:model/ProtobufAny} Event + */ + + }]); + + return JobsActionMessage; +}(); + +exports["default"] = JobsActionMessage; +//# sourceMappingURL=JobsActionMessage.js.map diff --git a/lib/model/JobsActionMessage.js.map b/lib/model/JobsActionMessage.js.map new file mode 100644 index 0000000..29dd240 --- /dev/null +++ b/lib/model/JobsActionMessage.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsActionMessage.js"],"names":["JobsActionMessage","undefined","data","obj","hasOwnProperty","ProtobufAny","constructFromObject","ApiClient","convertToType","TreeNode","IdmUser","IdmRole","IdmWorkspace","IdmACL","ActivityObject","ObjectDataSource","JobsActionOutput"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,iB;AACjB;AACJ;AACA;AACA;AACA;AAEI,+BAAc;AAAA;;AAAA,mCA4DNC,SA5DM;;AAAA,mCAgENA,SAhEM;;AAAA,mCAoENA,SApEM;;AAAA,mCAwENA,SAxEM;;AAAA,wCA4EDA,SA5EC;;AAAA,kCAgFPA,SAhFO;;AAAA,wCAoFDA,SApFC;;AAAA,yCAwFAA,SAxFA;;AAAA,yCA4FAA,SA5FA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,iBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,wBAAYC,mBAAZ,CAAgCJ,IAAI,CAAC,OAAD,CAApC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,OAAD,CAA5B,EAAuC,CAACO,oBAAD,CAAvC,CAAf;AACH;;AACD,YAAIP,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,OAAD,CAA5B,EAAuC,CAACQ,mBAAD,CAAvC,CAAf;AACH;;AACD,YAAIR,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,OAAD,CAA5B,EAAuC,CAACS,mBAAD,CAAvC,CAAf;AACH;;AACD,YAAIT,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,YAAD,CAA5B,EAA4C,CAACU,wBAAD,CAA5C,CAApB;AACH;;AACD,YAAIV,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,MAAD,CAA5B,EAAsC,CAACW,kBAAD,CAAtC,CAAd;AACH;;AACD,YAAIX,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,YAAD,CAA5B,EAA4C,CAACY,0BAAD,CAA5C,CAApB;AACH;;AACD,YAAIZ,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,aAAD,CAA5B,EAA6C,CAACa,4BAAD,CAA7C,CAArB;AACH;;AACD,YAAIb,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,aAAD,CAA5B,EAA6C,CAACc,4BAAD,CAA7C,CAArB;AACH;AACJ;;AACD,aAAOb,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport ActivityObject from './ActivityObject';\nimport IdmACL from './IdmACL';\nimport IdmRole from './IdmRole';\nimport IdmUser from './IdmUser';\nimport IdmWorkspace from './IdmWorkspace';\nimport JobsActionOutput from './JobsActionOutput';\nimport ObjectDataSource from './ObjectDataSource';\nimport ProtobufAny from './ProtobufAny';\nimport TreeNode from './TreeNode';\n\n\n\n\n\n/**\n* The JobsActionMessage model module.\n* @module model/JobsActionMessage\n* @version 2.0\n*/\nexport default class JobsActionMessage {\n /**\n * Constructs a new JobsActionMessage.\n * @alias module:model/JobsActionMessage\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsActionMessage from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsActionMessage} obj Optional instance to populate.\n * @return {module:model/JobsActionMessage} The populated JobsActionMessage instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsActionMessage();\n\n \n \n \n\n if (data.hasOwnProperty('Event')) {\n obj['Event'] = ProtobufAny.constructFromObject(data['Event']);\n }\n if (data.hasOwnProperty('Nodes')) {\n obj['Nodes'] = ApiClient.convertToType(data['Nodes'], [TreeNode]);\n }\n if (data.hasOwnProperty('Users')) {\n obj['Users'] = ApiClient.convertToType(data['Users'], [IdmUser]);\n }\n if (data.hasOwnProperty('Roles')) {\n obj['Roles'] = ApiClient.convertToType(data['Roles'], [IdmRole]);\n }\n if (data.hasOwnProperty('Workspaces')) {\n obj['Workspaces'] = ApiClient.convertToType(data['Workspaces'], [IdmWorkspace]);\n }\n if (data.hasOwnProperty('Acls')) {\n obj['Acls'] = ApiClient.convertToType(data['Acls'], [IdmACL]);\n }\n if (data.hasOwnProperty('Activities')) {\n obj['Activities'] = ApiClient.convertToType(data['Activities'], [ActivityObject]);\n }\n if (data.hasOwnProperty('DataSources')) {\n obj['DataSources'] = ApiClient.convertToType(data['DataSources'], [ObjectDataSource]);\n }\n if (data.hasOwnProperty('OutputChain')) {\n obj['OutputChain'] = ApiClient.convertToType(data['OutputChain'], [JobsActionOutput]);\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/ProtobufAny} Event\n */\n Event = undefined;\n /**\n * @member {Array.} Nodes\n */\n Nodes = undefined;\n /**\n * @member {Array.} Users\n */\n Users = undefined;\n /**\n * @member {Array.} Roles\n */\n Roles = undefined;\n /**\n * @member {Array.} Workspaces\n */\n Workspaces = undefined;\n /**\n * @member {Array.} Acls\n */\n Acls = undefined;\n /**\n * @member {Array.} Activities\n */\n Activities = undefined;\n /**\n * @member {Array.} DataSources\n */\n DataSources = undefined;\n /**\n * @member {Array.} OutputChain\n */\n OutputChain = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsActionMessage.js"} \ No newline at end of file diff --git a/lib/model/JobsActionOutput.js b/lib/model/JobsActionOutput.js new file mode 100644 index 0000000..6fa0c45 --- /dev/null +++ b/lib/model/JobsActionOutput.js @@ -0,0 +1,104 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsActionOutput model module. +* @module model/JobsActionOutput +* @version 2.0 +*/ +var JobsActionOutput = /*#__PURE__*/function () { + /** + * Constructs a new JobsActionOutput. + * @alias module:model/JobsActionOutput + * @class + */ + function JobsActionOutput() { + _classCallCheck(this, JobsActionOutput); + + _defineProperty(this, "Success", undefined); + + _defineProperty(this, "RawBody", undefined); + + _defineProperty(this, "StringBody", undefined); + + _defineProperty(this, "JsonBody", undefined); + + _defineProperty(this, "ErrorString", undefined); + + _defineProperty(this, "Ignored", undefined); + + _defineProperty(this, "Time", undefined); + } + /** + * Constructs a JobsActionOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsActionOutput} obj Optional instance to populate. + * @return {module:model/JobsActionOutput} The populated JobsActionOutput instance. + */ + + + _createClass(JobsActionOutput, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsActionOutput(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + + if (data.hasOwnProperty('RawBody')) { + obj['RawBody'] = _ApiClient["default"].convertToType(data['RawBody'], 'Blob'); + } + + if (data.hasOwnProperty('StringBody')) { + obj['StringBody'] = _ApiClient["default"].convertToType(data['StringBody'], 'String'); + } + + if (data.hasOwnProperty('JsonBody')) { + obj['JsonBody'] = _ApiClient["default"].convertToType(data['JsonBody'], 'Blob'); + } + + if (data.hasOwnProperty('ErrorString')) { + obj['ErrorString'] = _ApiClient["default"].convertToType(data['ErrorString'], 'String'); + } + + if (data.hasOwnProperty('Ignored')) { + obj['Ignored'] = _ApiClient["default"].convertToType(data['Ignored'], 'Boolean'); + } + + if (data.hasOwnProperty('Time')) { + obj['Time'] = _ApiClient["default"].convertToType(data['Time'], 'Number'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return JobsActionOutput; +}(); + +exports["default"] = JobsActionOutput; +//# sourceMappingURL=JobsActionOutput.js.map diff --git a/lib/model/JobsActionOutput.js.map b/lib/model/JobsActionOutput.js.map new file mode 100644 index 0000000..2f544af --- /dev/null +++ b/lib/model/JobsActionOutput.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsActionOutput.js"],"names":["JobsActionOutput","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,gB;AACjB;AACJ;AACA;AACA;AACA;AAEI,8BAAc;AAAA;;AAAA,qCAsDJC,SAtDI;;AAAA,qCA0DJA,SA1DI;;AAAA,wCA8DDA,SA9DC;;AAAA,sCAkEHA,SAlEG;;AAAA,yCAsEAA,SAtEA;;AAAA,qCA0EJA,SA1EI;;AAAA,kCA8EPA,SA9EO;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,gBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,MAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,QAA5C,CAApB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,MAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The JobsActionOutput model module.\n* @module model/JobsActionOutput\n* @version 2.0\n*/\nexport default class JobsActionOutput {\n /**\n * Constructs a new JobsActionOutput.\n * @alias module:model/JobsActionOutput\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsActionOutput from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsActionOutput} obj Optional instance to populate.\n * @return {module:model/JobsActionOutput} The populated JobsActionOutput instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsActionOutput();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n if (data.hasOwnProperty('RawBody')) {\n obj['RawBody'] = ApiClient.convertToType(data['RawBody'], 'Blob');\n }\n if (data.hasOwnProperty('StringBody')) {\n obj['StringBody'] = ApiClient.convertToType(data['StringBody'], 'String');\n }\n if (data.hasOwnProperty('JsonBody')) {\n obj['JsonBody'] = ApiClient.convertToType(data['JsonBody'], 'Blob');\n }\n if (data.hasOwnProperty('ErrorString')) {\n obj['ErrorString'] = ApiClient.convertToType(data['ErrorString'], 'String');\n }\n if (data.hasOwnProperty('Ignored')) {\n obj['Ignored'] = ApiClient.convertToType(data['Ignored'], 'Boolean');\n }\n if (data.hasOwnProperty('Time')) {\n obj['Time'] = ApiClient.convertToType(data['Time'], 'Number');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n /**\n * @member {Blob} RawBody\n */\n RawBody = undefined;\n /**\n * @member {String} StringBody\n */\n StringBody = undefined;\n /**\n * @member {Blob} JsonBody\n */\n JsonBody = undefined;\n /**\n * @member {String} ErrorString\n */\n ErrorString = undefined;\n /**\n * @member {Boolean} Ignored\n */\n Ignored = undefined;\n /**\n * @member {Number} Time\n */\n Time = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsActionOutput.js"} \ No newline at end of file diff --git a/lib/model/JobsActionOutputFilter.js b/lib/model/JobsActionOutputFilter.js new file mode 100644 index 0000000..90670ca --- /dev/null +++ b/lib/model/JobsActionOutputFilter.js @@ -0,0 +1,82 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ServiceQuery = _interopRequireDefault(require("./ServiceQuery")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsActionOutputFilter model module. +* @module model/JobsActionOutputFilter +* @version 2.0 +*/ +var JobsActionOutputFilter = /*#__PURE__*/function () { + /** + * Constructs a new JobsActionOutputFilter. + * @alias module:model/JobsActionOutputFilter + * @class + */ + function JobsActionOutputFilter() { + _classCallCheck(this, JobsActionOutputFilter); + + _defineProperty(this, "Query", undefined); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "Description", undefined); + } + /** + * Constructs a JobsActionOutputFilter from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsActionOutputFilter} obj Optional instance to populate. + * @return {module:model/JobsActionOutputFilter} The populated JobsActionOutputFilter instance. + */ + + + _createClass(JobsActionOutputFilter, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsActionOutputFilter(); + + if (data.hasOwnProperty('Query')) { + obj['Query'] = _ServiceQuery["default"].constructFromObject(data['Query']); + } + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + } + + return obj; + } + /** + * @member {module:model/ServiceQuery} Query + */ + + }]); + + return JobsActionOutputFilter; +}(); + +exports["default"] = JobsActionOutputFilter; +//# sourceMappingURL=JobsActionOutputFilter.js.map diff --git a/lib/model/JobsActionOutputFilter.js.map b/lib/model/JobsActionOutputFilter.js.map new file mode 100644 index 0000000..6f67b44 --- /dev/null +++ b/lib/model/JobsActionOutputFilter.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsActionOutputFilter.js"],"names":["JobsActionOutputFilter","undefined","data","obj","hasOwnProperty","ServiceQuery","constructFromObject","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,sB;AACjB;AACJ;AACA;AACA;AACA;AAEI,oCAAc;AAAA;;AAAA,mCA0CNC,SA1CM;;AAAA,mCA8CNA,SA9CM;;AAAA,yCAkDAA,SAlDA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,sBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,yBAAaC,mBAAb,CAAiCJ,IAAI,CAAC,OAAD,CAArC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport ServiceQuery from './ServiceQuery';\n\n\n\n\n\n/**\n* The JobsActionOutputFilter model module.\n* @module model/JobsActionOutputFilter\n* @version 2.0\n*/\nexport default class JobsActionOutputFilter {\n /**\n * Constructs a new JobsActionOutputFilter.\n * @alias module:model/JobsActionOutputFilter\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsActionOutputFilter from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsActionOutputFilter} obj Optional instance to populate.\n * @return {module:model/JobsActionOutputFilter} The populated JobsActionOutputFilter instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsActionOutputFilter();\n\n \n \n \n\n if (data.hasOwnProperty('Query')) {\n obj['Query'] = ServiceQuery.constructFromObject(data['Query']);\n }\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/ServiceQuery} Query\n */\n Query = undefined;\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsActionOutputFilter.js"} \ No newline at end of file diff --git a/lib/model/JobsContextMetaFilter.js b/lib/model/JobsContextMetaFilter.js new file mode 100644 index 0000000..a69c4de --- /dev/null +++ b/lib/model/JobsContextMetaFilter.js @@ -0,0 +1,90 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsContextMetaFilterType = _interopRequireDefault(require("./JobsContextMetaFilterType")); + +var _ServiceQuery = _interopRequireDefault(require("./ServiceQuery")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsContextMetaFilter model module. +* @module model/JobsContextMetaFilter +* @version 2.0 +*/ +var JobsContextMetaFilter = /*#__PURE__*/function () { + /** + * Constructs a new JobsContextMetaFilter. + * @alias module:model/JobsContextMetaFilter + * @class + */ + function JobsContextMetaFilter() { + _classCallCheck(this, JobsContextMetaFilter); + + _defineProperty(this, "Type", undefined); + + _defineProperty(this, "Query", undefined); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "Description", undefined); + } + /** + * Constructs a JobsContextMetaFilter from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsContextMetaFilter} obj Optional instance to populate. + * @return {module:model/JobsContextMetaFilter} The populated JobsContextMetaFilter instance. + */ + + + _createClass(JobsContextMetaFilter, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsContextMetaFilter(); + + if (data.hasOwnProperty('Type')) { + obj['Type'] = _JobsContextMetaFilterType["default"].constructFromObject(data['Type']); + } + + if (data.hasOwnProperty('Query')) { + obj['Query'] = _ServiceQuery["default"].constructFromObject(data['Query']); + } + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + } + + return obj; + } + /** + * @member {module:model/JobsContextMetaFilterType} Type + */ + + }]); + + return JobsContextMetaFilter; +}(); + +exports["default"] = JobsContextMetaFilter; +//# sourceMappingURL=JobsContextMetaFilter.js.map diff --git a/lib/model/JobsContextMetaFilter.js.map b/lib/model/JobsContextMetaFilter.js.map new file mode 100644 index 0000000..460aa02 --- /dev/null +++ b/lib/model/JobsContextMetaFilter.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsContextMetaFilter.js"],"names":["JobsContextMetaFilter","undefined","data","obj","hasOwnProperty","JobsContextMetaFilterType","constructFromObject","ServiceQuery","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,qB;AACjB;AACJ;AACA;AACA;AACA;AAEI,mCAAc;AAAA;;AAAA,kCA6CPC,SA7CO;;AAAA,mCAiDNA,SAjDM;;AAAA,mCAqDNA,SArDM;;AAAA,yCAyDAA,SAzDA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,qBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sCAA0BC,mBAA1B,CAA8CJ,IAAI,CAAC,MAAD,CAAlD,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeI,yBAAaD,mBAAb,CAAiCJ,IAAI,CAAC,OAAD,CAArC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeK,sBAAUC,aAAV,CAAwBP,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBK,sBAAUC,aAAV,CAAwBP,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsContextMetaFilterType from './JobsContextMetaFilterType';\nimport ServiceQuery from './ServiceQuery';\n\n\n\n\n\n/**\n* The JobsContextMetaFilter model module.\n* @module model/JobsContextMetaFilter\n* @version 2.0\n*/\nexport default class JobsContextMetaFilter {\n /**\n * Constructs a new JobsContextMetaFilter.\n * @alias module:model/JobsContextMetaFilter\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsContextMetaFilter from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsContextMetaFilter} obj Optional instance to populate.\n * @return {module:model/JobsContextMetaFilter} The populated JobsContextMetaFilter instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsContextMetaFilter();\n\n \n \n \n\n if (data.hasOwnProperty('Type')) {\n obj['Type'] = JobsContextMetaFilterType.constructFromObject(data['Type']);\n }\n if (data.hasOwnProperty('Query')) {\n obj['Query'] = ServiceQuery.constructFromObject(data['Query']);\n }\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/JobsContextMetaFilterType} Type\n */\n Type = undefined;\n /**\n * @member {module:model/ServiceQuery} Query\n */\n Query = undefined;\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsContextMetaFilter.js"} \ No newline at end of file diff --git a/lib/model/JobsContextMetaFilterType.js b/lib/model/JobsContextMetaFilterType.js new file mode 100644 index 0000000..26927e2 --- /dev/null +++ b/lib/model/JobsContextMetaFilterType.js @@ -0,0 +1,51 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class JobsContextMetaFilterType. +* @enum {} +* @readonly +*/ +var JobsContextMetaFilterType = /*#__PURE__*/function () { + function JobsContextMetaFilterType() { + _classCallCheck(this, JobsContextMetaFilterType); + + _defineProperty(this, "RequestMeta", "RequestMeta"); + + _defineProperty(this, "ContextUser", "ContextUser"); + } + + _createClass(JobsContextMetaFilterType, null, [{ + key: "constructFromObject", + value: + /** + * Returns a JobsContextMetaFilterType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/JobsContextMetaFilterType} The enum JobsContextMetaFilterType value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return JobsContextMetaFilterType; +}(); + +exports["default"] = JobsContextMetaFilterType; +//# sourceMappingURL=JobsContextMetaFilterType.js.map diff --git a/lib/model/JobsContextMetaFilterType.js.map b/lib/model/JobsContextMetaFilterType.js.map new file mode 100644 index 0000000..55e1fee --- /dev/null +++ b/lib/model/JobsContextMetaFilterType.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsContextMetaFilterType.js"],"names":["JobsContextMetaFilterType","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,yB;;;;yCAMC,a;;yCAOA,a;;;;;;AAIlB;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class JobsContextMetaFilterType.\n* @enum {}\n* @readonly\n*/\nexport default class JobsContextMetaFilterType {\n \n /**\n * value: \"RequestMeta\"\n * @const\n */\n RequestMeta = \"RequestMeta\";\n\n \n /**\n * value: \"ContextUser\"\n * @const\n */\n ContextUser = \"ContextUser\";\n\n \n\n /**\n * Returns a JobsContextMetaFilterType enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/JobsContextMetaFilterType} The enum JobsContextMetaFilterType value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"JobsContextMetaFilterType.js"} \ No newline at end of file diff --git a/lib/model/JobsDataSourceSelector.js b/lib/model/JobsDataSourceSelector.js new file mode 100644 index 0000000..b35ec80 --- /dev/null +++ b/lib/model/JobsDataSourceSelector.js @@ -0,0 +1,102 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsDataSourceSelectorType = _interopRequireDefault(require("./JobsDataSourceSelectorType")); + +var _ServiceQuery = _interopRequireDefault(require("./ServiceQuery")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsDataSourceSelector model module. +* @module model/JobsDataSourceSelector +* @version 2.0 +*/ +var JobsDataSourceSelector = /*#__PURE__*/function () { + /** + * Constructs a new JobsDataSourceSelector. + * @alias module:model/JobsDataSourceSelector + * @class + */ + function JobsDataSourceSelector() { + _classCallCheck(this, JobsDataSourceSelector); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "Description", undefined); + + _defineProperty(this, "Type", undefined); + + _defineProperty(this, "All", undefined); + + _defineProperty(this, "Collect", undefined); + + _defineProperty(this, "Query", undefined); + } + /** + * Constructs a JobsDataSourceSelector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsDataSourceSelector} obj Optional instance to populate. + * @return {module:model/JobsDataSourceSelector} The populated JobsDataSourceSelector instance. + */ + + + _createClass(JobsDataSourceSelector, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsDataSourceSelector(); + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + + if (data.hasOwnProperty('Type')) { + obj['Type'] = _JobsDataSourceSelectorType["default"].constructFromObject(data['Type']); + } + + if (data.hasOwnProperty('All')) { + obj['All'] = _ApiClient["default"].convertToType(data['All'], 'Boolean'); + } + + if (data.hasOwnProperty('Collect')) { + obj['Collect'] = _ApiClient["default"].convertToType(data['Collect'], 'Boolean'); + } + + if (data.hasOwnProperty('Query')) { + obj['Query'] = _ServiceQuery["default"].constructFromObject(data['Query']); + } + } + + return obj; + } + /** + * @member {String} Label + */ + + }]); + + return JobsDataSourceSelector; +}(); + +exports["default"] = JobsDataSourceSelector; +//# sourceMappingURL=JobsDataSourceSelector.js.map diff --git a/lib/model/JobsDataSourceSelector.js.map b/lib/model/JobsDataSourceSelector.js.map new file mode 100644 index 0000000..37432d8 --- /dev/null +++ b/lib/model/JobsDataSourceSelector.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsDataSourceSelector.js"],"names":["JobsDataSourceSelector","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","JobsDataSourceSelectorType","constructFromObject","ServiceQuery"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,sB;AACjB;AACJ;AACA;AACA;AACA;AAEI,oCAAc;AAAA;;AAAA,mCAmDNC,SAnDM;;AAAA,yCAuDAA,SAvDA;;AAAA,kCA2DPA,SA3DO;;AAAA,iCA+DRA,SA/DQ;;AAAA,qCAmEJA,SAnEI;;AAAA,mCAuENA,SAvEM;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,sBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcI,uCAA2BC,mBAA3B,CAA+CN,IAAI,CAAC,MAAD,CAAnD,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,KAApB,CAAJ,EAAgC;AAC5BD,UAAAA,GAAG,CAAC,KAAD,CAAH,GAAaE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,KAAD,CAA5B,EAAqC,SAArC,CAAb;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeM,yBAAaD,mBAAb,CAAiCN,IAAI,CAAC,OAAD,CAArC,CAAf;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsDataSourceSelectorType from './JobsDataSourceSelectorType';\nimport ServiceQuery from './ServiceQuery';\n\n\n\n\n\n/**\n* The JobsDataSourceSelector model module.\n* @module model/JobsDataSourceSelector\n* @version 2.0\n*/\nexport default class JobsDataSourceSelector {\n /**\n * Constructs a new JobsDataSourceSelector.\n * @alias module:model/JobsDataSourceSelector\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsDataSourceSelector from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsDataSourceSelector} obj Optional instance to populate.\n * @return {module:model/JobsDataSourceSelector} The populated JobsDataSourceSelector instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsDataSourceSelector();\n\n \n \n \n\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n if (data.hasOwnProperty('Type')) {\n obj['Type'] = JobsDataSourceSelectorType.constructFromObject(data['Type']);\n }\n if (data.hasOwnProperty('All')) {\n obj['All'] = ApiClient.convertToType(data['All'], 'Boolean');\n }\n if (data.hasOwnProperty('Collect')) {\n obj['Collect'] = ApiClient.convertToType(data['Collect'], 'Boolean');\n }\n if (data.hasOwnProperty('Query')) {\n obj['Query'] = ServiceQuery.constructFromObject(data['Query']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n /**\n * @member {module:model/JobsDataSourceSelectorType} Type\n */\n Type = undefined;\n /**\n * @member {Boolean} All\n */\n All = undefined;\n /**\n * @member {Boolean} Collect\n */\n Collect = undefined;\n /**\n * @member {module:model/ServiceQuery} Query\n */\n Query = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsDataSourceSelector.js"} \ No newline at end of file diff --git a/lib/model/JobsDataSourceSelectorType.js b/lib/model/JobsDataSourceSelectorType.js new file mode 100644 index 0000000..ee9199e --- /dev/null +++ b/lib/model/JobsDataSourceSelectorType.js @@ -0,0 +1,51 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class JobsDataSourceSelectorType. +* @enum {} +* @readonly +*/ +var JobsDataSourceSelectorType = /*#__PURE__*/function () { + function JobsDataSourceSelectorType() { + _classCallCheck(this, JobsDataSourceSelectorType); + + _defineProperty(this, "DataSource", "DataSource"); + + _defineProperty(this, "Object", "Object"); + } + + _createClass(JobsDataSourceSelectorType, null, [{ + key: "constructFromObject", + value: + /** + * Returns a JobsDataSourceSelectorType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/JobsDataSourceSelectorType} The enum JobsDataSourceSelectorType value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return JobsDataSourceSelectorType; +}(); + +exports["default"] = JobsDataSourceSelectorType; +//# sourceMappingURL=JobsDataSourceSelectorType.js.map diff --git a/lib/model/JobsDataSourceSelectorType.js.map b/lib/model/JobsDataSourceSelectorType.js.map new file mode 100644 index 0000000..a6d612e --- /dev/null +++ b/lib/model/JobsDataSourceSelectorType.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsDataSourceSelectorType.js"],"names":["JobsDataSourceSelectorType","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,0B;;;;wCAMA,Y;;oCAOJ,Q;;;;;;AAIb;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class JobsDataSourceSelectorType.\n* @enum {}\n* @readonly\n*/\nexport default class JobsDataSourceSelectorType {\n \n /**\n * value: \"DataSource\"\n * @const\n */\n DataSource = \"DataSource\";\n\n \n /**\n * value: \"Object\"\n * @const\n */\n Object = \"Object\";\n\n \n\n /**\n * Returns a JobsDataSourceSelectorType enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/JobsDataSourceSelectorType} The enum JobsDataSourceSelectorType value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"JobsDataSourceSelectorType.js"} \ No newline at end of file diff --git a/lib/model/JobsDeleteJobResponse.js b/lib/model/JobsDeleteJobResponse.js new file mode 100644 index 0000000..8871bd7 --- /dev/null +++ b/lib/model/JobsDeleteJobResponse.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsDeleteJobResponse model module. +* @module model/JobsDeleteJobResponse +* @version 2.0 +*/ +var JobsDeleteJobResponse = /*#__PURE__*/function () { + /** + * Constructs a new JobsDeleteJobResponse. + * @alias module:model/JobsDeleteJobResponse + * @class + */ + function JobsDeleteJobResponse() { + _classCallCheck(this, JobsDeleteJobResponse); + + _defineProperty(this, "Success", undefined); + + _defineProperty(this, "DeleteCount", undefined); + } + /** + * Constructs a JobsDeleteJobResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsDeleteJobResponse} obj Optional instance to populate. + * @return {module:model/JobsDeleteJobResponse} The populated JobsDeleteJobResponse instance. + */ + + + _createClass(JobsDeleteJobResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsDeleteJobResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + + if (data.hasOwnProperty('DeleteCount')) { + obj['DeleteCount'] = _ApiClient["default"].convertToType(data['DeleteCount'], 'Number'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return JobsDeleteJobResponse; +}(); + +exports["default"] = JobsDeleteJobResponse; +//# sourceMappingURL=JobsDeleteJobResponse.js.map diff --git a/lib/model/JobsDeleteJobResponse.js.map b/lib/model/JobsDeleteJobResponse.js.map new file mode 100644 index 0000000..aa9c841 --- /dev/null +++ b/lib/model/JobsDeleteJobResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsDeleteJobResponse.js"],"names":["JobsDeleteJobResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,qB;AACjB;AACJ;AACA;AACA;AACA;AAEI,mCAAc;AAAA;;AAAA,qCAuCJC,SAvCI;;AAAA,yCA2CAA,SA3CA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,qBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The JobsDeleteJobResponse model module.\n* @module model/JobsDeleteJobResponse\n* @version 2.0\n*/\nexport default class JobsDeleteJobResponse {\n /**\n * Constructs a new JobsDeleteJobResponse.\n * @alias module:model/JobsDeleteJobResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsDeleteJobResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsDeleteJobResponse} obj Optional instance to populate.\n * @return {module:model/JobsDeleteJobResponse} The populated JobsDeleteJobResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsDeleteJobResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n if (data.hasOwnProperty('DeleteCount')) {\n obj['DeleteCount'] = ApiClient.convertToType(data['DeleteCount'], 'Number');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n /**\n * @member {Number} DeleteCount\n */\n DeleteCount = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsDeleteJobResponse.js"} \ No newline at end of file diff --git a/lib/model/JobsIdmSelector.js b/lib/model/JobsIdmSelector.js new file mode 100644 index 0000000..cb56e38 --- /dev/null +++ b/lib/model/JobsIdmSelector.js @@ -0,0 +1,102 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsIdmSelectorType = _interopRequireDefault(require("./JobsIdmSelectorType")); + +var _ServiceQuery = _interopRequireDefault(require("./ServiceQuery")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsIdmSelector model module. +* @module model/JobsIdmSelector +* @version 2.0 +*/ +var JobsIdmSelector = /*#__PURE__*/function () { + /** + * Constructs a new JobsIdmSelector. + * @alias module:model/JobsIdmSelector + * @class + */ + function JobsIdmSelector() { + _classCallCheck(this, JobsIdmSelector); + + _defineProperty(this, "Type", undefined); + + _defineProperty(this, "All", undefined); + + _defineProperty(this, "Query", undefined); + + _defineProperty(this, "Collect", undefined); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "Description", undefined); + } + /** + * Constructs a JobsIdmSelector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsIdmSelector} obj Optional instance to populate. + * @return {module:model/JobsIdmSelector} The populated JobsIdmSelector instance. + */ + + + _createClass(JobsIdmSelector, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsIdmSelector(); + + if (data.hasOwnProperty('Type')) { + obj['Type'] = _JobsIdmSelectorType["default"].constructFromObject(data['Type']); + } + + if (data.hasOwnProperty('All')) { + obj['All'] = _ApiClient["default"].convertToType(data['All'], 'Boolean'); + } + + if (data.hasOwnProperty('Query')) { + obj['Query'] = _ServiceQuery["default"].constructFromObject(data['Query']); + } + + if (data.hasOwnProperty('Collect')) { + obj['Collect'] = _ApiClient["default"].convertToType(data['Collect'], 'Boolean'); + } + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + } + + return obj; + } + /** + * @member {module:model/JobsIdmSelectorType} Type + */ + + }]); + + return JobsIdmSelector; +}(); + +exports["default"] = JobsIdmSelector; +//# sourceMappingURL=JobsIdmSelector.js.map diff --git a/lib/model/JobsIdmSelector.js.map b/lib/model/JobsIdmSelector.js.map new file mode 100644 index 0000000..523bf24 --- /dev/null +++ b/lib/model/JobsIdmSelector.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsIdmSelector.js"],"names":["JobsIdmSelector","undefined","data","obj","hasOwnProperty","JobsIdmSelectorType","constructFromObject","ApiClient","convertToType","ServiceQuery"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,e;AACjB;AACJ;AACA;AACA;AACA;AAEI,6BAAc;AAAA;;AAAA,kCAmDPC,SAnDO;;AAAA,iCAuDRA,SAvDQ;;AAAA,mCA2DNA,SA3DM;;AAAA,qCA+DJA,SA/DI;;AAAA,mCAmENA,SAnEM;;AAAA,yCAuEAA,SAvEA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,eAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,gCAAoBC,mBAApB,CAAwCJ,IAAI,CAAC,MAAD,CAA5C,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,KAApB,CAAJ,EAAgC;AAC5BD,UAAAA,GAAG,CAAC,KAAD,CAAH,GAAaI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,KAAD,CAA5B,EAAqC,SAArC,CAAb;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeM,yBAAaH,mBAAb,CAAiCJ,IAAI,CAAC,OAAD,CAArC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsIdmSelectorType from './JobsIdmSelectorType';\nimport ServiceQuery from './ServiceQuery';\n\n\n\n\n\n/**\n* The JobsIdmSelector model module.\n* @module model/JobsIdmSelector\n* @version 2.0\n*/\nexport default class JobsIdmSelector {\n /**\n * Constructs a new JobsIdmSelector.\n * @alias module:model/JobsIdmSelector\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsIdmSelector from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsIdmSelector} obj Optional instance to populate.\n * @return {module:model/JobsIdmSelector} The populated JobsIdmSelector instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsIdmSelector();\n\n \n \n \n\n if (data.hasOwnProperty('Type')) {\n obj['Type'] = JobsIdmSelectorType.constructFromObject(data['Type']);\n }\n if (data.hasOwnProperty('All')) {\n obj['All'] = ApiClient.convertToType(data['All'], 'Boolean');\n }\n if (data.hasOwnProperty('Query')) {\n obj['Query'] = ServiceQuery.constructFromObject(data['Query']);\n }\n if (data.hasOwnProperty('Collect')) {\n obj['Collect'] = ApiClient.convertToType(data['Collect'], 'Boolean');\n }\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/JobsIdmSelectorType} Type\n */\n Type = undefined;\n /**\n * @member {Boolean} All\n */\n All = undefined;\n /**\n * @member {module:model/ServiceQuery} Query\n */\n Query = undefined;\n /**\n * @member {Boolean} Collect\n */\n Collect = undefined;\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsIdmSelector.js"} \ No newline at end of file diff --git a/lib/model/JobsIdmSelectorType.js b/lib/model/JobsIdmSelectorType.js new file mode 100644 index 0000000..61029e2 --- /dev/null +++ b/lib/model/JobsIdmSelectorType.js @@ -0,0 +1,55 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class JobsIdmSelectorType. +* @enum {} +* @readonly +*/ +var JobsIdmSelectorType = /*#__PURE__*/function () { + function JobsIdmSelectorType() { + _classCallCheck(this, JobsIdmSelectorType); + + _defineProperty(this, "User", "User"); + + _defineProperty(this, "Role", "Role"); + + _defineProperty(this, "Workspace", "Workspace"); + + _defineProperty(this, "Acl", "Acl"); + } + + _createClass(JobsIdmSelectorType, null, [{ + key: "constructFromObject", + value: + /** + * Returns a JobsIdmSelectorType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/JobsIdmSelectorType} The enum JobsIdmSelectorType value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return JobsIdmSelectorType; +}(); + +exports["default"] = JobsIdmSelectorType; +//# sourceMappingURL=JobsIdmSelectorType.js.map diff --git a/lib/model/JobsIdmSelectorType.js.map b/lib/model/JobsIdmSelectorType.js.map new file mode 100644 index 0000000..ba5fa9f --- /dev/null +++ b/lib/model/JobsIdmSelectorType.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsIdmSelectorType.js"],"names":["JobsIdmSelectorType","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,mB;;;;kCAMN,M;;kCAOA,M;;uCAOK,W;;iCAON,K;;;;;;AAIV;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class JobsIdmSelectorType.\n* @enum {}\n* @readonly\n*/\nexport default class JobsIdmSelectorType {\n \n /**\n * value: \"User\"\n * @const\n */\n User = \"User\";\n\n \n /**\n * value: \"Role\"\n * @const\n */\n Role = \"Role\";\n\n \n /**\n * value: \"Workspace\"\n * @const\n */\n Workspace = \"Workspace\";\n\n \n /**\n * value: \"Acl\"\n * @const\n */\n Acl = \"Acl\";\n\n \n\n /**\n * Returns a JobsIdmSelectorType enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/JobsIdmSelectorType} The enum JobsIdmSelectorType value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"JobsIdmSelectorType.js"} \ No newline at end of file diff --git a/lib/model/JobsJob.js b/lib/model/JobsJob.js new file mode 100644 index 0000000..336a836 --- /dev/null +++ b/lib/model/JobsJob.js @@ -0,0 +1,208 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsAction = _interopRequireDefault(require("./JobsAction")); + +var _JobsContextMetaFilter = _interopRequireDefault(require("./JobsContextMetaFilter")); + +var _JobsDataSourceSelector = _interopRequireDefault(require("./JobsDataSourceSelector")); + +var _JobsIdmSelector = _interopRequireDefault(require("./JobsIdmSelector")); + +var _JobsJobParameter = _interopRequireDefault(require("./JobsJobParameter")); + +var _JobsNodesSelector = _interopRequireDefault(require("./JobsNodesSelector")); + +var _JobsSchedule = _interopRequireDefault(require("./JobsSchedule")); + +var _JobsTask = _interopRequireDefault(require("./JobsTask")); + +var _JobsUsersSelector = _interopRequireDefault(require("./JobsUsersSelector")); + +var _ProtobufAny = _interopRequireDefault(require("./ProtobufAny")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsJob model module. +* @module model/JobsJob +* @version 2.0 +*/ +var JobsJob = /*#__PURE__*/function () { + /** + * Constructs a new JobsJob. + * @alias module:model/JobsJob + * @class + */ + function JobsJob() { + _classCallCheck(this, JobsJob); + + _defineProperty(this, "ID", undefined); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "Owner", undefined); + + _defineProperty(this, "Inactive", undefined); + + _defineProperty(this, "Custom", undefined); + + _defineProperty(this, "Languages", undefined); + + _defineProperty(this, "EventNames", undefined); + + _defineProperty(this, "Schedule", undefined); + + _defineProperty(this, "AutoStart", undefined); + + _defineProperty(this, "AutoClean", undefined); + + _defineProperty(this, "Actions", undefined); + + _defineProperty(this, "MaxConcurrency", undefined); + + _defineProperty(this, "TasksSilentUpdate", undefined); + + _defineProperty(this, "Tasks", undefined); + + _defineProperty(this, "NodeEventFilter", undefined); + + _defineProperty(this, "UserEventFilter", undefined); + + _defineProperty(this, "IdmFilter", undefined); + + _defineProperty(this, "ContextMetaFilter", undefined); + + _defineProperty(this, "DataSourceFilter", undefined); + + _defineProperty(this, "Parameters", undefined); + + _defineProperty(this, "ResourcesDependencies", undefined); + } + /** + * Constructs a JobsJob from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsJob} obj Optional instance to populate. + * @return {module:model/JobsJob} The populated JobsJob instance. + */ + + + _createClass(JobsJob, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsJob(); + + if (data.hasOwnProperty('ID')) { + obj['ID'] = _ApiClient["default"].convertToType(data['ID'], 'String'); + } + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('Owner')) { + obj['Owner'] = _ApiClient["default"].convertToType(data['Owner'], 'String'); + } + + if (data.hasOwnProperty('Inactive')) { + obj['Inactive'] = _ApiClient["default"].convertToType(data['Inactive'], 'Boolean'); + } + + if (data.hasOwnProperty('Custom')) { + obj['Custom'] = _ApiClient["default"].convertToType(data['Custom'], 'Boolean'); + } + + if (data.hasOwnProperty('Languages')) { + obj['Languages'] = _ApiClient["default"].convertToType(data['Languages'], ['String']); + } + + if (data.hasOwnProperty('EventNames')) { + obj['EventNames'] = _ApiClient["default"].convertToType(data['EventNames'], ['String']); + } + + if (data.hasOwnProperty('Schedule')) { + obj['Schedule'] = _JobsSchedule["default"].constructFromObject(data['Schedule']); + } + + if (data.hasOwnProperty('AutoStart')) { + obj['AutoStart'] = _ApiClient["default"].convertToType(data['AutoStart'], 'Boolean'); + } + + if (data.hasOwnProperty('AutoClean')) { + obj['AutoClean'] = _ApiClient["default"].convertToType(data['AutoClean'], 'Boolean'); + } + + if (data.hasOwnProperty('Actions')) { + obj['Actions'] = _ApiClient["default"].convertToType(data['Actions'], [_JobsAction["default"]]); + } + + if (data.hasOwnProperty('MaxConcurrency')) { + obj['MaxConcurrency'] = _ApiClient["default"].convertToType(data['MaxConcurrency'], 'Number'); + } + + if (data.hasOwnProperty('TasksSilentUpdate')) { + obj['TasksSilentUpdate'] = _ApiClient["default"].convertToType(data['TasksSilentUpdate'], 'Boolean'); + } + + if (data.hasOwnProperty('Tasks')) { + obj['Tasks'] = _ApiClient["default"].convertToType(data['Tasks'], [_JobsTask["default"]]); + } + + if (data.hasOwnProperty('NodeEventFilter')) { + obj['NodeEventFilter'] = _JobsNodesSelector["default"].constructFromObject(data['NodeEventFilter']); + } + + if (data.hasOwnProperty('UserEventFilter')) { + obj['UserEventFilter'] = _JobsUsersSelector["default"].constructFromObject(data['UserEventFilter']); + } + + if (data.hasOwnProperty('IdmFilter')) { + obj['IdmFilter'] = _JobsIdmSelector["default"].constructFromObject(data['IdmFilter']); + } + + if (data.hasOwnProperty('ContextMetaFilter')) { + obj['ContextMetaFilter'] = _JobsContextMetaFilter["default"].constructFromObject(data['ContextMetaFilter']); + } + + if (data.hasOwnProperty('DataSourceFilter')) { + obj['DataSourceFilter'] = _JobsDataSourceSelector["default"].constructFromObject(data['DataSourceFilter']); + } + + if (data.hasOwnProperty('Parameters')) { + obj['Parameters'] = _ApiClient["default"].convertToType(data['Parameters'], [_JobsJobParameter["default"]]); + } + + if (data.hasOwnProperty('ResourcesDependencies')) { + obj['ResourcesDependencies'] = _ApiClient["default"].convertToType(data['ResourcesDependencies'], [_ProtobufAny["default"]]); + } + } + + return obj; + } + /** + * @member {String} ID + */ + + }]); + + return JobsJob; +}(); + +exports["default"] = JobsJob; +//# sourceMappingURL=JobsJob.js.map diff --git a/lib/model/JobsJob.js.map b/lib/model/JobsJob.js.map new file mode 100644 index 0000000..2b3fa9b --- /dev/null +++ b/lib/model/JobsJob.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsJob.js"],"names":["JobsJob","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","JobsSchedule","constructFromObject","JobsAction","JobsTask","JobsNodesSelector","JobsUsersSelector","JobsIdmSelector","JobsContextMetaFilter","JobsDataSourceSelector","JobsJobParameter","ProtobufAny"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsAction from './JobsAction';\nimport JobsContextMetaFilter from './JobsContextMetaFilter';\nimport JobsDataSourceSelector from './JobsDataSourceSelector';\nimport JobsIdmSelector from './JobsIdmSelector';\nimport JobsJobParameter from './JobsJobParameter';\nimport JobsNodesSelector from './JobsNodesSelector';\nimport JobsSchedule from './JobsSchedule';\nimport JobsTask from './JobsTask';\nimport JobsUsersSelector from './JobsUsersSelector';\nimport ProtobufAny from './ProtobufAny';\n\n\n\n\n\n/**\n* The JobsJob model module.\n* @module model/JobsJob\n* @version 2.0\n*/\nexport default class JobsJob {\n /**\n * Constructs a new JobsJob.\n * @alias module:model/JobsJob\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsJob from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsJob} obj Optional instance to populate.\n * @return {module:model/JobsJob} The populated JobsJob instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsJob();\n\n \n \n \n\n if (data.hasOwnProperty('ID')) {\n obj['ID'] = ApiClient.convertToType(data['ID'], 'String');\n }\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('Owner')) {\n obj['Owner'] = ApiClient.convertToType(data['Owner'], 'String');\n }\n if (data.hasOwnProperty('Inactive')) {\n obj['Inactive'] = ApiClient.convertToType(data['Inactive'], 'Boolean');\n }\n if (data.hasOwnProperty('Custom')) {\n obj['Custom'] = ApiClient.convertToType(data['Custom'], 'Boolean');\n }\n if (data.hasOwnProperty('Languages')) {\n obj['Languages'] = ApiClient.convertToType(data['Languages'], ['String']);\n }\n if (data.hasOwnProperty('EventNames')) {\n obj['EventNames'] = ApiClient.convertToType(data['EventNames'], ['String']);\n }\n if (data.hasOwnProperty('Schedule')) {\n obj['Schedule'] = JobsSchedule.constructFromObject(data['Schedule']);\n }\n if (data.hasOwnProperty('AutoStart')) {\n obj['AutoStart'] = ApiClient.convertToType(data['AutoStart'], 'Boolean');\n }\n if (data.hasOwnProperty('AutoClean')) {\n obj['AutoClean'] = ApiClient.convertToType(data['AutoClean'], 'Boolean');\n }\n if (data.hasOwnProperty('Actions')) {\n obj['Actions'] = ApiClient.convertToType(data['Actions'], [JobsAction]);\n }\n if (data.hasOwnProperty('MaxConcurrency')) {\n obj['MaxConcurrency'] = ApiClient.convertToType(data['MaxConcurrency'], 'Number');\n }\n if (data.hasOwnProperty('TasksSilentUpdate')) {\n obj['TasksSilentUpdate'] = ApiClient.convertToType(data['TasksSilentUpdate'], 'Boolean');\n }\n if (data.hasOwnProperty('Tasks')) {\n obj['Tasks'] = ApiClient.convertToType(data['Tasks'], [JobsTask]);\n }\n if (data.hasOwnProperty('NodeEventFilter')) {\n obj['NodeEventFilter'] = JobsNodesSelector.constructFromObject(data['NodeEventFilter']);\n }\n if (data.hasOwnProperty('UserEventFilter')) {\n obj['UserEventFilter'] = JobsUsersSelector.constructFromObject(data['UserEventFilter']);\n }\n if (data.hasOwnProperty('IdmFilter')) {\n obj['IdmFilter'] = JobsIdmSelector.constructFromObject(data['IdmFilter']);\n }\n if (data.hasOwnProperty('ContextMetaFilter')) {\n obj['ContextMetaFilter'] = JobsContextMetaFilter.constructFromObject(data['ContextMetaFilter']);\n }\n if (data.hasOwnProperty('DataSourceFilter')) {\n obj['DataSourceFilter'] = JobsDataSourceSelector.constructFromObject(data['DataSourceFilter']);\n }\n if (data.hasOwnProperty('Parameters')) {\n obj['Parameters'] = ApiClient.convertToType(data['Parameters'], [JobsJobParameter]);\n }\n if (data.hasOwnProperty('ResourcesDependencies')) {\n obj['ResourcesDependencies'] = ApiClient.convertToType(data['ResourcesDependencies'], [ProtobufAny]);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} ID\n */\n ID = undefined;\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {String} Owner\n */\n Owner = undefined;\n /**\n * @member {Boolean} Inactive\n */\n Inactive = undefined;\n /**\n * @member {Boolean} Custom\n */\n Custom = undefined;\n /**\n * @member {Array.} Languages\n */\n Languages = undefined;\n /**\n * @member {Array.} EventNames\n */\n EventNames = undefined;\n /**\n * @member {module:model/JobsSchedule} Schedule\n */\n Schedule = undefined;\n /**\n * @member {Boolean} AutoStart\n */\n AutoStart = undefined;\n /**\n * @member {Boolean} AutoClean\n */\n AutoClean = undefined;\n /**\n * @member {Array.} Actions\n */\n Actions = undefined;\n /**\n * @member {Number} MaxConcurrency\n */\n MaxConcurrency = undefined;\n /**\n * @member {Boolean} TasksSilentUpdate\n */\n TasksSilentUpdate = undefined;\n /**\n * @member {Array.} Tasks\n */\n Tasks = undefined;\n /**\n * @member {module:model/JobsNodesSelector} NodeEventFilter\n */\n NodeEventFilter = undefined;\n /**\n * @member {module:model/JobsUsersSelector} UserEventFilter\n */\n UserEventFilter = undefined;\n /**\n * @member {module:model/JobsIdmSelector} IdmFilter\n */\n IdmFilter = undefined;\n /**\n * @member {module:model/JobsContextMetaFilter} ContextMetaFilter\n */\n ContextMetaFilter = undefined;\n /**\n * @member {module:model/JobsDataSourceSelector} DataSourceFilter\n */\n DataSourceFilter = undefined;\n /**\n * @member {Array.} Parameters\n */\n Parameters = undefined;\n /**\n * @member {Array.} ResourcesDependencies\n */\n ResourcesDependencies = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsJob.js"} \ No newline at end of file diff --git a/lib/model/JobsJobParameter.js b/lib/model/JobsJobParameter.js new file mode 100644 index 0000000..3bd287a --- /dev/null +++ b/lib/model/JobsJobParameter.js @@ -0,0 +1,98 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsJobParameter model module. +* @module model/JobsJobParameter +* @version 2.0 +*/ +var JobsJobParameter = /*#__PURE__*/function () { + /** + * Constructs a new JobsJobParameter. + * @alias module:model/JobsJobParameter + * @class + */ + function JobsJobParameter() { + _classCallCheck(this, JobsJobParameter); + + _defineProperty(this, "Name", undefined); + + _defineProperty(this, "Description", undefined); + + _defineProperty(this, "Value", undefined); + + _defineProperty(this, "Mandatory", undefined); + + _defineProperty(this, "Type", undefined); + + _defineProperty(this, "JsonChoices", undefined); + } + /** + * Constructs a JobsJobParameter from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsJobParameter} obj Optional instance to populate. + * @return {module:model/JobsJobParameter} The populated JobsJobParameter instance. + */ + + + _createClass(JobsJobParameter, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsJobParameter(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + + if (data.hasOwnProperty('Value')) { + obj['Value'] = _ApiClient["default"].convertToType(data['Value'], 'String'); + } + + if (data.hasOwnProperty('Mandatory')) { + obj['Mandatory'] = _ApiClient["default"].convertToType(data['Mandatory'], 'Boolean'); + } + + if (data.hasOwnProperty('Type')) { + obj['Type'] = _ApiClient["default"].convertToType(data['Type'], 'String'); + } + + if (data.hasOwnProperty('JsonChoices')) { + obj['JsonChoices'] = _ApiClient["default"].convertToType(data['JsonChoices'], 'String'); + } + } + + return obj; + } + /** + * @member {String} Name + */ + + }]); + + return JobsJobParameter; +}(); + +exports["default"] = JobsJobParameter; +//# sourceMappingURL=JobsJobParameter.js.map diff --git a/lib/model/JobsJobParameter.js.map b/lib/model/JobsJobParameter.js.map new file mode 100644 index 0000000..4d20f51 --- /dev/null +++ b/lib/model/JobsJobParameter.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsJobParameter.js"],"names":["JobsJobParameter","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,gB;AACjB;AACJ;AACA;AACA;AACA;AAEI,8BAAc;AAAA;;AAAA,kCAmDPC,SAnDO;;AAAA,yCAuDAA,SAvDA;;AAAA,mCA2DNA,SA3DM;;AAAA,uCA+DFA,SA/DE;;AAAA,kCAmEPA,SAnEO;;AAAA,yCAuEAA,SAvEA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,gBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,SAA3C,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The JobsJobParameter model module.\n* @module model/JobsJobParameter\n* @version 2.0\n*/\nexport default class JobsJobParameter {\n /**\n * Constructs a new JobsJobParameter.\n * @alias module:model/JobsJobParameter\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsJobParameter from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsJobParameter} obj Optional instance to populate.\n * @return {module:model/JobsJobParameter} The populated JobsJobParameter instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsJobParameter();\n\n \n \n \n\n if (data.hasOwnProperty('Name')) {\n obj['Name'] = ApiClient.convertToType(data['Name'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n if (data.hasOwnProperty('Value')) {\n obj['Value'] = ApiClient.convertToType(data['Value'], 'String');\n }\n if (data.hasOwnProperty('Mandatory')) {\n obj['Mandatory'] = ApiClient.convertToType(data['Mandatory'], 'Boolean');\n }\n if (data.hasOwnProperty('Type')) {\n obj['Type'] = ApiClient.convertToType(data['Type'], 'String');\n }\n if (data.hasOwnProperty('JsonChoices')) {\n obj['JsonChoices'] = ApiClient.convertToType(data['JsonChoices'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Name\n */\n Name = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n /**\n * @member {String} Value\n */\n Value = undefined;\n /**\n * @member {Boolean} Mandatory\n */\n Mandatory = undefined;\n /**\n * @member {String} Type\n */\n Type = undefined;\n /**\n * @member {String} JsonChoices\n */\n JsonChoices = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsJobParameter.js"} \ No newline at end of file diff --git a/lib/model/JobsNodesSelector.js b/lib/model/JobsNodesSelector.js new file mode 100644 index 0000000..e758596 --- /dev/null +++ b/lib/model/JobsNodesSelector.js @@ -0,0 +1,100 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ServiceQuery = _interopRequireDefault(require("./ServiceQuery")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsNodesSelector model module. +* @module model/JobsNodesSelector +* @version 2.0 +*/ +var JobsNodesSelector = /*#__PURE__*/function () { + /** + * Constructs a new JobsNodesSelector. + * @alias module:model/JobsNodesSelector + * @class + */ + function JobsNodesSelector() { + _classCallCheck(this, JobsNodesSelector); + + _defineProperty(this, "All", undefined); + + _defineProperty(this, "Pathes", undefined); + + _defineProperty(this, "Query", undefined); + + _defineProperty(this, "Collect", undefined); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "Description", undefined); + } + /** + * Constructs a JobsNodesSelector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsNodesSelector} obj Optional instance to populate. + * @return {module:model/JobsNodesSelector} The populated JobsNodesSelector instance. + */ + + + _createClass(JobsNodesSelector, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsNodesSelector(); + + if (data.hasOwnProperty('All')) { + obj['All'] = _ApiClient["default"].convertToType(data['All'], 'Boolean'); + } + + if (data.hasOwnProperty('Pathes')) { + obj['Pathes'] = _ApiClient["default"].convertToType(data['Pathes'], ['String']); + } + + if (data.hasOwnProperty('Query')) { + obj['Query'] = _ServiceQuery["default"].constructFromObject(data['Query']); + } + + if (data.hasOwnProperty('Collect')) { + obj['Collect'] = _ApiClient["default"].convertToType(data['Collect'], 'Boolean'); + } + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + } + + return obj; + } + /** + * @member {Boolean} All + */ + + }]); + + return JobsNodesSelector; +}(); + +exports["default"] = JobsNodesSelector; +//# sourceMappingURL=JobsNodesSelector.js.map diff --git a/lib/model/JobsNodesSelector.js.map b/lib/model/JobsNodesSelector.js.map new file mode 100644 index 0000000..62af1f2 --- /dev/null +++ b/lib/model/JobsNodesSelector.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsNodesSelector.js"],"names":["JobsNodesSelector","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","ServiceQuery","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,iB;AACjB;AACJ;AACA;AACA;AACA;AAEI,+BAAc;AAAA;;AAAA,iCAmDRC,SAnDQ;;AAAA,oCAuDLA,SAvDK;;AAAA,mCA2DNA,SA3DM;;AAAA,qCA+DJA,SA/DI;;AAAA,mCAmENA,SAnEM;;AAAA,yCAuEAA,SAvEA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,iBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,KAApB,CAAJ,EAAgC;AAC5BD,UAAAA,GAAG,CAAC,KAAD,CAAH,GAAaE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,KAAD,CAA5B,EAAqC,SAArC,CAAb;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,CAAC,QAAD,CAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeI,yBAAaC,mBAAb,CAAiCN,IAAI,CAAC,OAAD,CAArC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport ServiceQuery from './ServiceQuery';\n\n\n\n\n\n/**\n* The JobsNodesSelector model module.\n* @module model/JobsNodesSelector\n* @version 2.0\n*/\nexport default class JobsNodesSelector {\n /**\n * Constructs a new JobsNodesSelector.\n * @alias module:model/JobsNodesSelector\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsNodesSelector from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsNodesSelector} obj Optional instance to populate.\n * @return {module:model/JobsNodesSelector} The populated JobsNodesSelector instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsNodesSelector();\n\n \n \n \n\n if (data.hasOwnProperty('All')) {\n obj['All'] = ApiClient.convertToType(data['All'], 'Boolean');\n }\n if (data.hasOwnProperty('Pathes')) {\n obj['Pathes'] = ApiClient.convertToType(data['Pathes'], ['String']);\n }\n if (data.hasOwnProperty('Query')) {\n obj['Query'] = ServiceQuery.constructFromObject(data['Query']);\n }\n if (data.hasOwnProperty('Collect')) {\n obj['Collect'] = ApiClient.convertToType(data['Collect'], 'Boolean');\n }\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} All\n */\n All = undefined;\n /**\n * @member {Array.} Pathes\n */\n Pathes = undefined;\n /**\n * @member {module:model/ServiceQuery} Query\n */\n Query = undefined;\n /**\n * @member {Boolean} Collect\n */\n Collect = undefined;\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsNodesSelector.js"} \ No newline at end of file diff --git a/lib/model/JobsPutJobRequest.js b/lib/model/JobsPutJobRequest.js new file mode 100644 index 0000000..ef2c186 --- /dev/null +++ b/lib/model/JobsPutJobRequest.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsJob = _interopRequireDefault(require("./JobsJob")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsPutJobRequest model module. +* @module model/JobsPutJobRequest +* @version 2.0 +*/ +var JobsPutJobRequest = /*#__PURE__*/function () { + /** + * Constructs a new JobsPutJobRequest. + * @alias module:model/JobsPutJobRequest + * @class + */ + function JobsPutJobRequest() { + _classCallCheck(this, JobsPutJobRequest); + + _defineProperty(this, "Job", undefined); + } + /** + * Constructs a JobsPutJobRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsPutJobRequest} obj Optional instance to populate. + * @return {module:model/JobsPutJobRequest} The populated JobsPutJobRequest instance. + */ + + + _createClass(JobsPutJobRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsPutJobRequest(); + + if (data.hasOwnProperty('Job')) { + obj['Job'] = _JobsJob["default"].constructFromObject(data['Job']); + } + } + + return obj; + } + /** + * @member {module:model/JobsJob} Job + */ + + }]); + + return JobsPutJobRequest; +}(); + +exports["default"] = JobsPutJobRequest; +//# sourceMappingURL=JobsPutJobRequest.js.map diff --git a/lib/model/JobsPutJobRequest.js.map b/lib/model/JobsPutJobRequest.js.map new file mode 100644 index 0000000..c495e1c --- /dev/null +++ b/lib/model/JobsPutJobRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsPutJobRequest.js"],"names":["JobsPutJobRequest","undefined","data","obj","hasOwnProperty","JobsJob","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,iB;AACjB;AACJ;AACA;AACA;AACA;AAEI,+BAAc;AAAA;;AAAA,iCAoCRC,SApCQ;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,iBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,KAApB,CAAJ,EAAgC;AAC5BD,UAAAA,GAAG,CAAC,KAAD,CAAH,GAAaE,oBAAQC,mBAAR,CAA4BJ,IAAI,CAAC,KAAD,CAAhC,CAAb;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsJob from './JobsJob';\n\n\n\n\n\n/**\n* The JobsPutJobRequest model module.\n* @module model/JobsPutJobRequest\n* @version 2.0\n*/\nexport default class JobsPutJobRequest {\n /**\n * Constructs a new JobsPutJobRequest.\n * @alias module:model/JobsPutJobRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsPutJobRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsPutJobRequest} obj Optional instance to populate.\n * @return {module:model/JobsPutJobRequest} The populated JobsPutJobRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsPutJobRequest();\n\n \n \n \n\n if (data.hasOwnProperty('Job')) {\n obj['Job'] = JobsJob.constructFromObject(data['Job']);\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/JobsJob} Job\n */\n Job = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsPutJobRequest.js"} \ No newline at end of file diff --git a/lib/model/JobsPutJobResponse.js b/lib/model/JobsPutJobResponse.js new file mode 100644 index 0000000..2c9cd95 --- /dev/null +++ b/lib/model/JobsPutJobResponse.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsJob = _interopRequireDefault(require("./JobsJob")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsPutJobResponse model module. +* @module model/JobsPutJobResponse +* @version 2.0 +*/ +var JobsPutJobResponse = /*#__PURE__*/function () { + /** + * Constructs a new JobsPutJobResponse. + * @alias module:model/JobsPutJobResponse + * @class + */ + function JobsPutJobResponse() { + _classCallCheck(this, JobsPutJobResponse); + + _defineProperty(this, "Job", undefined); + } + /** + * Constructs a JobsPutJobResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsPutJobResponse} obj Optional instance to populate. + * @return {module:model/JobsPutJobResponse} The populated JobsPutJobResponse instance. + */ + + + _createClass(JobsPutJobResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsPutJobResponse(); + + if (data.hasOwnProperty('Job')) { + obj['Job'] = _JobsJob["default"].constructFromObject(data['Job']); + } + } + + return obj; + } + /** + * @member {module:model/JobsJob} Job + */ + + }]); + + return JobsPutJobResponse; +}(); + +exports["default"] = JobsPutJobResponse; +//# sourceMappingURL=JobsPutJobResponse.js.map diff --git a/lib/model/JobsPutJobResponse.js.map b/lib/model/JobsPutJobResponse.js.map new file mode 100644 index 0000000..df29603 --- /dev/null +++ b/lib/model/JobsPutJobResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsPutJobResponse.js"],"names":["JobsPutJobResponse","undefined","data","obj","hasOwnProperty","JobsJob","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,kB;AACjB;AACJ;AACA;AACA;AACA;AAEI,gCAAc;AAAA;;AAAA,iCAoCRC,SApCQ;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,kBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,KAApB,CAAJ,EAAgC;AAC5BD,UAAAA,GAAG,CAAC,KAAD,CAAH,GAAaE,oBAAQC,mBAAR,CAA4BJ,IAAI,CAAC,KAAD,CAAhC,CAAb;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsJob from './JobsJob';\n\n\n\n\n\n/**\n* The JobsPutJobResponse model module.\n* @module model/JobsPutJobResponse\n* @version 2.0\n*/\nexport default class JobsPutJobResponse {\n /**\n * Constructs a new JobsPutJobResponse.\n * @alias module:model/JobsPutJobResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsPutJobResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsPutJobResponse} obj Optional instance to populate.\n * @return {module:model/JobsPutJobResponse} The populated JobsPutJobResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsPutJobResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Job')) {\n obj['Job'] = JobsJob.constructFromObject(data['Job']);\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/JobsJob} Job\n */\n Job = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsPutJobResponse.js"} \ No newline at end of file diff --git a/lib/model/JobsSchedule.js b/lib/model/JobsSchedule.js new file mode 100644 index 0000000..c063701 --- /dev/null +++ b/lib/model/JobsSchedule.js @@ -0,0 +1,75 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsSchedule model module. +* @module model/JobsSchedule +* @version 2.0 +*/ +var JobsSchedule = /*#__PURE__*/function () { + /** + * Constructs a new JobsSchedule. + * @alias module:model/JobsSchedule + * @class + */ + function JobsSchedule() { + _classCallCheck(this, JobsSchedule); + + _defineProperty(this, "Iso8601Schedule", undefined); + + _defineProperty(this, "Iso8601MinDelta", undefined); + } + /** + * Constructs a JobsSchedule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsSchedule} obj Optional instance to populate. + * @return {module:model/JobsSchedule} The populated JobsSchedule instance. + */ + + + _createClass(JobsSchedule, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsSchedule(); + + if (data.hasOwnProperty('Iso8601Schedule')) { + obj['Iso8601Schedule'] = _ApiClient["default"].convertToType(data['Iso8601Schedule'], 'String'); + } + + if (data.hasOwnProperty('Iso8601MinDelta')) { + obj['Iso8601MinDelta'] = _ApiClient["default"].convertToType(data['Iso8601MinDelta'], 'String'); + } + } + + return obj; + } + /** + * ISO 8601 Description of the scheduling for instance \"R2/2015-06-04T19:25:16.828696-07:00/PT4S\" where first part is the number of repetitions (if 0, infinite repetition), second part the starting date and last part, the duration between 2 occurrences. + * @member {String} Iso8601Schedule + */ + + }]); + + return JobsSchedule; +}(); + +exports["default"] = JobsSchedule; +//# sourceMappingURL=JobsSchedule.js.map diff --git a/lib/model/JobsSchedule.js.map b/lib/model/JobsSchedule.js.map new file mode 100644 index 0000000..535d14e --- /dev/null +++ b/lib/model/JobsSchedule.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsSchedule.js"],"names":["JobsSchedule","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,Y;AACjB;AACJ;AACA;AACA;AACA;AAEI,0BAAc;AAAA;;AAAA,6CAwCIC,SAxCJ;;AAAA,6CA4CIA,SA5CJ;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,YAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,iBAApB,CAAJ,EAA4C;AACxCD,UAAAA,GAAG,CAAC,iBAAD,CAAH,GAAyBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,iBAAD,CAA5B,EAAiD,QAAjD,CAAzB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,iBAApB,CAAJ,EAA4C;AACxCD,UAAAA,GAAG,CAAC,iBAAD,CAAH,GAAyBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,iBAAD,CAA5B,EAAiD,QAAjD,CAAzB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The JobsSchedule model module.\n* @module model/JobsSchedule\n* @version 2.0\n*/\nexport default class JobsSchedule {\n /**\n * Constructs a new JobsSchedule.\n * @alias module:model/JobsSchedule\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsSchedule from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsSchedule} obj Optional instance to populate.\n * @return {module:model/JobsSchedule} The populated JobsSchedule instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsSchedule();\n\n \n \n \n\n if (data.hasOwnProperty('Iso8601Schedule')) {\n obj['Iso8601Schedule'] = ApiClient.convertToType(data['Iso8601Schedule'], 'String');\n }\n if (data.hasOwnProperty('Iso8601MinDelta')) {\n obj['Iso8601MinDelta'] = ApiClient.convertToType(data['Iso8601MinDelta'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * ISO 8601 Description of the scheduling for instance \\\"R2/2015-06-04T19:25:16.828696-07:00/PT4S\\\" where first part is the number of repetitions (if 0, infinite repetition), second part the starting date and last part, the duration between 2 occurrences.\n * @member {String} Iso8601Schedule\n */\n Iso8601Schedule = undefined;\n /**\n * @member {String} Iso8601MinDelta\n */\n Iso8601MinDelta = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsSchedule.js"} \ No newline at end of file diff --git a/lib/model/JobsTask.js b/lib/model/JobsTask.js new file mode 100644 index 0000000..480e320 --- /dev/null +++ b/lib/model/JobsTask.js @@ -0,0 +1,138 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _JobsActionLog = _interopRequireDefault(require("./JobsActionLog")); + +var _JobsTaskStatus = _interopRequireDefault(require("./JobsTaskStatus")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsTask model module. +* @module model/JobsTask +* @version 2.0 +*/ +var JobsTask = /*#__PURE__*/function () { + /** + * Constructs a new JobsTask. + * @alias module:model/JobsTask + * @class + */ + function JobsTask() { + _classCallCheck(this, JobsTask); + + _defineProperty(this, "ID", undefined); + + _defineProperty(this, "JobID", undefined); + + _defineProperty(this, "Status", undefined); + + _defineProperty(this, "StatusMessage", undefined); + + _defineProperty(this, "TriggerOwner", undefined); + + _defineProperty(this, "StartTime", undefined); + + _defineProperty(this, "EndTime", undefined); + + _defineProperty(this, "CanStop", undefined); + + _defineProperty(this, "CanPause", undefined); + + _defineProperty(this, "HasProgress", undefined); + + _defineProperty(this, "Progress", undefined); + + _defineProperty(this, "ActionsLogs", undefined); + } + /** + * Constructs a JobsTask from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsTask} obj Optional instance to populate. + * @return {module:model/JobsTask} The populated JobsTask instance. + */ + + + _createClass(JobsTask, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsTask(); + + if (data.hasOwnProperty('ID')) { + obj['ID'] = _ApiClient["default"].convertToType(data['ID'], 'String'); + } + + if (data.hasOwnProperty('JobID')) { + obj['JobID'] = _ApiClient["default"].convertToType(data['JobID'], 'String'); + } + + if (data.hasOwnProperty('Status')) { + obj['Status'] = _JobsTaskStatus["default"].constructFromObject(data['Status']); + } + + if (data.hasOwnProperty('StatusMessage')) { + obj['StatusMessage'] = _ApiClient["default"].convertToType(data['StatusMessage'], 'String'); + } + + if (data.hasOwnProperty('TriggerOwner')) { + obj['TriggerOwner'] = _ApiClient["default"].convertToType(data['TriggerOwner'], 'String'); + } + + if (data.hasOwnProperty('StartTime')) { + obj['StartTime'] = _ApiClient["default"].convertToType(data['StartTime'], 'Number'); + } + + if (data.hasOwnProperty('EndTime')) { + obj['EndTime'] = _ApiClient["default"].convertToType(data['EndTime'], 'Number'); + } + + if (data.hasOwnProperty('CanStop')) { + obj['CanStop'] = _ApiClient["default"].convertToType(data['CanStop'], 'Boolean'); + } + + if (data.hasOwnProperty('CanPause')) { + obj['CanPause'] = _ApiClient["default"].convertToType(data['CanPause'], 'Boolean'); + } + + if (data.hasOwnProperty('HasProgress')) { + obj['HasProgress'] = _ApiClient["default"].convertToType(data['HasProgress'], 'Boolean'); + } + + if (data.hasOwnProperty('Progress')) { + obj['Progress'] = _ApiClient["default"].convertToType(data['Progress'], 'Number'); + } + + if (data.hasOwnProperty('ActionsLogs')) { + obj['ActionsLogs'] = _ApiClient["default"].convertToType(data['ActionsLogs'], [_JobsActionLog["default"]]); + } + } + + return obj; + } + /** + * @member {String} ID + */ + + }]); + + return JobsTask; +}(); + +exports["default"] = JobsTask; +//# sourceMappingURL=JobsTask.js.map diff --git a/lib/model/JobsTask.js.map b/lib/model/JobsTask.js.map new file mode 100644 index 0000000..c6e56ee --- /dev/null +++ b/lib/model/JobsTask.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsTask.js"],"names":["JobsTask","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","JobsTaskStatus","constructFromObject","JobsActionLog"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,Q;AACjB;AACJ;AACA;AACA;AACA;AAEI,sBAAc;AAAA;;AAAA,gCAqETC,SArES;;AAAA,mCAyENA,SAzEM;;AAAA,oCA6ELA,SA7EK;;AAAA,2CAiFEA,SAjFF;;AAAA,0CAqFCA,SArFD;;AAAA,uCAyFFA,SAzFE;;AAAA,qCA6FJA,SA7FI;;AAAA,qCAiGJA,SAjGI;;AAAA,sCAqGHA,SArGG;;AAAA,yCAyGAA,SAzGA;;AAAA,sCA6GHA,SA7GG;;AAAA,yCAiHAA,SAjHA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,QAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,IAApB,CAAJ,EAA+B;AAC3BD,UAAAA,GAAG,CAAC,IAAD,CAAH,GAAYE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,IAAD,CAA5B,EAAoC,QAApC,CAAZ;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBI,2BAAeC,mBAAf,CAAmCN,IAAI,CAAC,QAAD,CAAvC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,eAAD,CAA5B,EAA+C,QAA/C,CAAvB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,cAAD,CAA5B,EAA8C,QAA9C,CAAtB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,QAA3C,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,QAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,SAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,SAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,CAACO,yBAAD,CAA7C,CAArB;AACH;AACJ;;AACD,aAAON,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport JobsActionLog from './JobsActionLog';\nimport JobsTaskStatus from './JobsTaskStatus';\n\n\n\n\n\n/**\n* The JobsTask model module.\n* @module model/JobsTask\n* @version 2.0\n*/\nexport default class JobsTask {\n /**\n * Constructs a new JobsTask.\n * @alias module:model/JobsTask\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsTask from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsTask} obj Optional instance to populate.\n * @return {module:model/JobsTask} The populated JobsTask instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsTask();\n\n \n \n \n\n if (data.hasOwnProperty('ID')) {\n obj['ID'] = ApiClient.convertToType(data['ID'], 'String');\n }\n if (data.hasOwnProperty('JobID')) {\n obj['JobID'] = ApiClient.convertToType(data['JobID'], 'String');\n }\n if (data.hasOwnProperty('Status')) {\n obj['Status'] = JobsTaskStatus.constructFromObject(data['Status']);\n }\n if (data.hasOwnProperty('StatusMessage')) {\n obj['StatusMessage'] = ApiClient.convertToType(data['StatusMessage'], 'String');\n }\n if (data.hasOwnProperty('TriggerOwner')) {\n obj['TriggerOwner'] = ApiClient.convertToType(data['TriggerOwner'], 'String');\n }\n if (data.hasOwnProperty('StartTime')) {\n obj['StartTime'] = ApiClient.convertToType(data['StartTime'], 'Number');\n }\n if (data.hasOwnProperty('EndTime')) {\n obj['EndTime'] = ApiClient.convertToType(data['EndTime'], 'Number');\n }\n if (data.hasOwnProperty('CanStop')) {\n obj['CanStop'] = ApiClient.convertToType(data['CanStop'], 'Boolean');\n }\n if (data.hasOwnProperty('CanPause')) {\n obj['CanPause'] = ApiClient.convertToType(data['CanPause'], 'Boolean');\n }\n if (data.hasOwnProperty('HasProgress')) {\n obj['HasProgress'] = ApiClient.convertToType(data['HasProgress'], 'Boolean');\n }\n if (data.hasOwnProperty('Progress')) {\n obj['Progress'] = ApiClient.convertToType(data['Progress'], 'Number');\n }\n if (data.hasOwnProperty('ActionsLogs')) {\n obj['ActionsLogs'] = ApiClient.convertToType(data['ActionsLogs'], [JobsActionLog]);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} ID\n */\n ID = undefined;\n /**\n * @member {String} JobID\n */\n JobID = undefined;\n /**\n * @member {module:model/JobsTaskStatus} Status\n */\n Status = undefined;\n /**\n * @member {String} StatusMessage\n */\n StatusMessage = undefined;\n /**\n * @member {String} TriggerOwner\n */\n TriggerOwner = undefined;\n /**\n * @member {Number} StartTime\n */\n StartTime = undefined;\n /**\n * @member {Number} EndTime\n */\n EndTime = undefined;\n /**\n * @member {Boolean} CanStop\n */\n CanStop = undefined;\n /**\n * @member {Boolean} CanPause\n */\n CanPause = undefined;\n /**\n * @member {Boolean} HasProgress\n */\n HasProgress = undefined;\n /**\n * @member {Number} Progress\n */\n Progress = undefined;\n /**\n * @member {Array.} ActionsLogs\n */\n ActionsLogs = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsTask.js"} \ No newline at end of file diff --git a/lib/model/JobsTaskStatus.js b/lib/model/JobsTaskStatus.js new file mode 100644 index 0000000..6e03b18 --- /dev/null +++ b/lib/model/JobsTaskStatus.js @@ -0,0 +1,65 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class JobsTaskStatus. +* @enum {} +* @readonly +*/ +var JobsTaskStatus = /*#__PURE__*/function () { + function JobsTaskStatus() { + _classCallCheck(this, JobsTaskStatus); + + _defineProperty(this, "Unknown", "Unknown"); + + _defineProperty(this, "Idle", "Idle"); + + _defineProperty(this, "Running", "Running"); + + _defineProperty(this, "Finished", "Finished"); + + _defineProperty(this, "Interrupted", "Interrupted"); + + _defineProperty(this, "Paused", "Paused"); + + _defineProperty(this, "Any", "Any"); + + _defineProperty(this, "Error", "Error"); + + _defineProperty(this, "Queued", "Queued"); + } + + _createClass(JobsTaskStatus, null, [{ + key: "constructFromObject", + value: + /** + * Returns a JobsTaskStatus enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/JobsTaskStatus} The enum JobsTaskStatus value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return JobsTaskStatus; +}(); + +exports["default"] = JobsTaskStatus; +//# sourceMappingURL=JobsTaskStatus.js.map diff --git a/lib/model/JobsTaskStatus.js.map b/lib/model/JobsTaskStatus.js.map new file mode 100644 index 0000000..3a1b69d --- /dev/null +++ b/lib/model/JobsTaskStatus.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsTaskStatus.js"],"names":["JobsTaskStatus","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,c;;;;qCAMH,S;;kCAOH,M;;qCAOG,S;;sCAOC,U;;yCAOG,a;;oCAOL,Q;;iCAOH,K;;mCAOE,O;;oCAOC,Q;;;;;;AAIb;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class JobsTaskStatus.\n* @enum {}\n* @readonly\n*/\nexport default class JobsTaskStatus {\n \n /**\n * value: \"Unknown\"\n * @const\n */\n Unknown = \"Unknown\";\n\n \n /**\n * value: \"Idle\"\n * @const\n */\n Idle = \"Idle\";\n\n \n /**\n * value: \"Running\"\n * @const\n */\n Running = \"Running\";\n\n \n /**\n * value: \"Finished\"\n * @const\n */\n Finished = \"Finished\";\n\n \n /**\n * value: \"Interrupted\"\n * @const\n */\n Interrupted = \"Interrupted\";\n\n \n /**\n * value: \"Paused\"\n * @const\n */\n Paused = \"Paused\";\n\n \n /**\n * value: \"Any\"\n * @const\n */\n Any = \"Any\";\n\n \n /**\n * value: \"Error\"\n * @const\n */\n Error = \"Error\";\n\n \n /**\n * value: \"Queued\"\n * @const\n */\n Queued = \"Queued\";\n\n \n\n /**\n * Returns a JobsTaskStatus enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/JobsTaskStatus} The enum JobsTaskStatus value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"JobsTaskStatus.js"} \ No newline at end of file diff --git a/lib/model/JobsTriggerFilter.js b/lib/model/JobsTriggerFilter.js new file mode 100644 index 0000000..1102548 --- /dev/null +++ b/lib/model/JobsTriggerFilter.js @@ -0,0 +1,82 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ServiceQuery = _interopRequireDefault(require("./ServiceQuery")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsTriggerFilter model module. +* @module model/JobsTriggerFilter +* @version 2.0 +*/ +var JobsTriggerFilter = /*#__PURE__*/function () { + /** + * Constructs a new JobsTriggerFilter. + * @alias module:model/JobsTriggerFilter + * @class + */ + function JobsTriggerFilter() { + _classCallCheck(this, JobsTriggerFilter); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "Description", undefined); + + _defineProperty(this, "Query", undefined); + } + /** + * Constructs a JobsTriggerFilter from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsTriggerFilter} obj Optional instance to populate. + * @return {module:model/JobsTriggerFilter} The populated JobsTriggerFilter instance. + */ + + + _createClass(JobsTriggerFilter, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsTriggerFilter(); + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + + if (data.hasOwnProperty('Query')) { + obj['Query'] = _ServiceQuery["default"].constructFromObject(data['Query']); + } + } + + return obj; + } + /** + * @member {String} Label + */ + + }]); + + return JobsTriggerFilter; +}(); + +exports["default"] = JobsTriggerFilter; +//# sourceMappingURL=JobsTriggerFilter.js.map diff --git a/lib/model/JobsTriggerFilter.js.map b/lib/model/JobsTriggerFilter.js.map new file mode 100644 index 0000000..9110371 --- /dev/null +++ b/lib/model/JobsTriggerFilter.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsTriggerFilter.js"],"names":["JobsTriggerFilter","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","ServiceQuery","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,iB;AACjB;AACJ;AACA;AACA;AACA;AAEI,+BAAc;AAAA;;AAAA,mCA0CNC,SA1CM;;AAAA,yCA8CAA,SA9CA;;AAAA,mCAkDNA,SAlDM;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,iBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeI,yBAAaC,mBAAb,CAAiCN,IAAI,CAAC,OAAD,CAArC,CAAf;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport ServiceQuery from './ServiceQuery';\n\n\n\n\n\n/**\n* The JobsTriggerFilter model module.\n* @module model/JobsTriggerFilter\n* @version 2.0\n*/\nexport default class JobsTriggerFilter {\n /**\n * Constructs a new JobsTriggerFilter.\n * @alias module:model/JobsTriggerFilter\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsTriggerFilter from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsTriggerFilter} obj Optional instance to populate.\n * @return {module:model/JobsTriggerFilter} The populated JobsTriggerFilter instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsTriggerFilter();\n\n \n \n \n\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n if (data.hasOwnProperty('Query')) {\n obj['Query'] = ServiceQuery.constructFromObject(data['Query']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n /**\n * @member {module:model/ServiceQuery} Query\n */\n Query = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsTriggerFilter.js"} \ No newline at end of file diff --git a/lib/model/JobsUsersSelector.js b/lib/model/JobsUsersSelector.js new file mode 100644 index 0000000..0c222cf --- /dev/null +++ b/lib/model/JobsUsersSelector.js @@ -0,0 +1,102 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _IdmUser = _interopRequireDefault(require("./IdmUser")); + +var _ServiceQuery = _interopRequireDefault(require("./ServiceQuery")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The JobsUsersSelector model module. +* @module model/JobsUsersSelector +* @version 2.0 +*/ +var JobsUsersSelector = /*#__PURE__*/function () { + /** + * Constructs a new JobsUsersSelector. + * @alias module:model/JobsUsersSelector + * @class + */ + function JobsUsersSelector() { + _classCallCheck(this, JobsUsersSelector); + + _defineProperty(this, "All", undefined); + + _defineProperty(this, "Users", undefined); + + _defineProperty(this, "Query", undefined); + + _defineProperty(this, "Collect", undefined); + + _defineProperty(this, "Label", undefined); + + _defineProperty(this, "Description", undefined); + } + /** + * Constructs a JobsUsersSelector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsUsersSelector} obj Optional instance to populate. + * @return {module:model/JobsUsersSelector} The populated JobsUsersSelector instance. + */ + + + _createClass(JobsUsersSelector, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsUsersSelector(); + + if (data.hasOwnProperty('All')) { + obj['All'] = _ApiClient["default"].convertToType(data['All'], 'Boolean'); + } + + if (data.hasOwnProperty('Users')) { + obj['Users'] = _ApiClient["default"].convertToType(data['Users'], [_IdmUser["default"]]); + } + + if (data.hasOwnProperty('Query')) { + obj['Query'] = _ServiceQuery["default"].constructFromObject(data['Query']); + } + + if (data.hasOwnProperty('Collect')) { + obj['Collect'] = _ApiClient["default"].convertToType(data['Collect'], 'Boolean'); + } + + if (data.hasOwnProperty('Label')) { + obj['Label'] = _ApiClient["default"].convertToType(data['Label'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + } + + return obj; + } + /** + * @member {Boolean} All + */ + + }]); + + return JobsUsersSelector; +}(); + +exports["default"] = JobsUsersSelector; +//# sourceMappingURL=JobsUsersSelector.js.map diff --git a/lib/model/JobsUsersSelector.js.map b/lib/model/JobsUsersSelector.js.map new file mode 100644 index 0000000..ab73567 --- /dev/null +++ b/lib/model/JobsUsersSelector.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/JobsUsersSelector.js"],"names":["JobsUsersSelector","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","IdmUser","ServiceQuery","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,iB;AACjB;AACJ;AACA;AACA;AACA;AAEI,+BAAc;AAAA;;AAAA,iCAmDRC,SAnDQ;;AAAA,mCAuDNA,SAvDM;;AAAA,mCA2DNA,SA3DM;;AAAA,qCA+DJA,SA/DI;;AAAA,mCAmENA,SAnEM;;AAAA,yCAuEAA,SAvEA;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,iBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,KAApB,CAAJ,EAAgC;AAC5BD,UAAAA,GAAG,CAAC,KAAD,CAAH,GAAaE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,KAAD,CAA5B,EAAqC,SAArC,CAAb;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,CAACK,mBAAD,CAAvC,CAAf;AACH;;AACD,YAAIL,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeK,yBAAaC,mBAAb,CAAiCP,IAAI,CAAC,OAAD,CAArC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport IdmUser from './IdmUser';\nimport ServiceQuery from './ServiceQuery';\n\n\n\n\n\n/**\n* The JobsUsersSelector model module.\n* @module model/JobsUsersSelector\n* @version 2.0\n*/\nexport default class JobsUsersSelector {\n /**\n * Constructs a new JobsUsersSelector.\n * @alias module:model/JobsUsersSelector\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a JobsUsersSelector from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/JobsUsersSelector} obj Optional instance to populate.\n * @return {module:model/JobsUsersSelector} The populated JobsUsersSelector instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new JobsUsersSelector();\n\n \n \n \n\n if (data.hasOwnProperty('All')) {\n obj['All'] = ApiClient.convertToType(data['All'], 'Boolean');\n }\n if (data.hasOwnProperty('Users')) {\n obj['Users'] = ApiClient.convertToType(data['Users'], [IdmUser]);\n }\n if (data.hasOwnProperty('Query')) {\n obj['Query'] = ServiceQuery.constructFromObject(data['Query']);\n }\n if (data.hasOwnProperty('Collect')) {\n obj['Collect'] = ApiClient.convertToType(data['Collect'], 'Boolean');\n }\n if (data.hasOwnProperty('Label')) {\n obj['Label'] = ApiClient.convertToType(data['Label'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} All\n */\n All = undefined;\n /**\n * @member {Array.} Users\n */\n Users = undefined;\n /**\n * @member {module:model/ServiceQuery} Query\n */\n Query = undefined;\n /**\n * @member {Boolean} Collect\n */\n Collect = undefined;\n /**\n * @member {String} Label\n */\n Label = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"JobsUsersSelector.js"} \ No newline at end of file diff --git a/lib/model/ListLogRequestLogFormat.js b/lib/model/ListLogRequestLogFormat.js new file mode 100644 index 0000000..1c4d92c --- /dev/null +++ b/lib/model/ListLogRequestLogFormat.js @@ -0,0 +1,53 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class ListLogRequestLogFormat. +* @enum {} +* @readonly +*/ +var ListLogRequestLogFormat = /*#__PURE__*/function () { + function ListLogRequestLogFormat() { + _classCallCheck(this, ListLogRequestLogFormat); + + _defineProperty(this, "JSON", "JSON"); + + _defineProperty(this, "CSV", "CSV"); + + _defineProperty(this, "XLSX", "XLSX"); + } + + _createClass(ListLogRequestLogFormat, null, [{ + key: "constructFromObject", + value: + /** + * Returns a ListLogRequestLogFormat enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ListLogRequestLogFormat} The enum ListLogRequestLogFormat value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return ListLogRequestLogFormat; +}(); + +exports["default"] = ListLogRequestLogFormat; +//# sourceMappingURL=ListLogRequestLogFormat.js.map diff --git a/lib/model/ListLogRequestLogFormat.js.map b/lib/model/ListLogRequestLogFormat.js.map new file mode 100644 index 0000000..b858fb9 --- /dev/null +++ b/lib/model/ListLogRequestLogFormat.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ListLogRequestLogFormat.js"],"names":["ListLogRequestLogFormat","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,uB;;;;kCAMN,M;;iCAOD,K;;kCAOC,M;;;;;;AAIX;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class ListLogRequestLogFormat.\n* @enum {}\n* @readonly\n*/\nexport default class ListLogRequestLogFormat {\n \n /**\n * value: \"JSON\"\n * @const\n */\n JSON = \"JSON\";\n\n \n /**\n * value: \"CSV\"\n * @const\n */\n CSV = \"CSV\";\n\n \n /**\n * value: \"XLSX\"\n * @const\n */\n XLSX = \"XLSX\";\n\n \n\n /**\n * Returns a ListLogRequestLogFormat enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/ListLogRequestLogFormat} The enum ListLogRequestLogFormat value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"ListLogRequestLogFormat.js"} \ No newline at end of file diff --git a/lib/model/LogListLogRequest.js b/lib/model/LogListLogRequest.js new file mode 100644 index 0000000..c97fa2b --- /dev/null +++ b/lib/model/LogListLogRequest.js @@ -0,0 +1,89 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ListLogRequestLogFormat = _interopRequireDefault(require("./ListLogRequestLogFormat")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The LogListLogRequest model module. +* @module model/LogListLogRequest +* @version 2.0 +*/ +var LogListLogRequest = /*#__PURE__*/function () { + /** + * Constructs a new LogListLogRequest. + * ListLogRequest launches a parameterised query in the log repository and streams the results. + * @alias module:model/LogListLogRequest + * @class + */ + function LogListLogRequest() { + _classCallCheck(this, LogListLogRequest); + + _defineProperty(this, "Query", undefined); + + _defineProperty(this, "Page", undefined); + + _defineProperty(this, "Size", undefined); + + _defineProperty(this, "Format", undefined); + } + /** + * Constructs a LogListLogRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LogListLogRequest} obj Optional instance to populate. + * @return {module:model/LogListLogRequest} The populated LogListLogRequest instance. + */ + + + _createClass(LogListLogRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LogListLogRequest(); + + if (data.hasOwnProperty('Query')) { + obj['Query'] = _ApiClient["default"].convertToType(data['Query'], 'String'); + } + + if (data.hasOwnProperty('Page')) { + obj['Page'] = _ApiClient["default"].convertToType(data['Page'], 'Number'); + } + + if (data.hasOwnProperty('Size')) { + obj['Size'] = _ApiClient["default"].convertToType(data['Size'], 'Number'); + } + + if (data.hasOwnProperty('Format')) { + obj['Format'] = _ListLogRequestLogFormat["default"].constructFromObject(data['Format']); + } + } + + return obj; + } + /** + * @member {String} Query + */ + + }]); + + return LogListLogRequest; +}(); + +exports["default"] = LogListLogRequest; +//# sourceMappingURL=LogListLogRequest.js.map diff --git a/lib/model/LogListLogRequest.js.map b/lib/model/LogListLogRequest.js.map new file mode 100644 index 0000000..d39a4ec --- /dev/null +++ b/lib/model/LogListLogRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/LogListLogRequest.js"],"names":["LogListLogRequest","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","ListLogRequestLogFormat","constructFromObject"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,iB;AACjB;AACJ;AACA;AACA;AACA;AACA;AAEI,+BAAc;AAAA;;AAAA,mCA6CNC,SA7CM;;AAAA,kCAiDPA,SAjDO;;AAAA,kCAqDPA,SArDO;;AAAA,oCAyDLA,SAzDK;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,iBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBI,oCAAwBC,mBAAxB,CAA4CN,IAAI,CAAC,QAAD,CAAhD,CAAhB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport ListLogRequestLogFormat from './ListLogRequestLogFormat';\n\n\n\n\n\n/**\n* The LogListLogRequest model module.\n* @module model/LogListLogRequest\n* @version 2.0\n*/\nexport default class LogListLogRequest {\n /**\n * Constructs a new LogListLogRequest.\n * ListLogRequest launches a parameterised query in the log repository and streams the results.\n * @alias module:model/LogListLogRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a LogListLogRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/LogListLogRequest} obj Optional instance to populate.\n * @return {module:model/LogListLogRequest} The populated LogListLogRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new LogListLogRequest();\n\n \n \n \n\n if (data.hasOwnProperty('Query')) {\n obj['Query'] = ApiClient.convertToType(data['Query'], 'String');\n }\n if (data.hasOwnProperty('Page')) {\n obj['Page'] = ApiClient.convertToType(data['Page'], 'Number');\n }\n if (data.hasOwnProperty('Size')) {\n obj['Size'] = ApiClient.convertToType(data['Size'], 'Number');\n }\n if (data.hasOwnProperty('Format')) {\n obj['Format'] = ListLogRequestLogFormat.constructFromObject(data['Format']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Query\n */\n Query = undefined;\n /**\n * @member {Number} Page\n */\n Page = undefined;\n /**\n * @member {Number} Size\n */\n Size = undefined;\n /**\n * @member {module:model/ListLogRequestLogFormat} Format\n */\n Format = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"LogListLogRequest.js"} \ No newline at end of file diff --git a/lib/model/LogLogMessage.js b/lib/model/LogLogMessage.js new file mode 100644 index 0000000..14d6c63 --- /dev/null +++ b/lib/model/LogLogMessage.js @@ -0,0 +1,219 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The LogLogMessage model module. +* @module model/LogLogMessage +* @version 2.0 +*/ +var LogLogMessage = /*#__PURE__*/function () { + /** + * Constructs a new LogLogMessage. + * LogMessage is the format used to transmit log messages to clients via the REST API. + * @alias module:model/LogLogMessage + * @class + */ + function LogLogMessage() { + _classCallCheck(this, LogLogMessage); + + _defineProperty(this, "Ts", undefined); + + _defineProperty(this, "Level", undefined); + + _defineProperty(this, "Logger", undefined); + + _defineProperty(this, "Msg", undefined); + + _defineProperty(this, "MsgId", undefined); + + _defineProperty(this, "UserName", undefined); + + _defineProperty(this, "UserUuid", undefined); + + _defineProperty(this, "GroupPath", undefined); + + _defineProperty(this, "Profile", undefined); + + _defineProperty(this, "RoleUuids", undefined); + + _defineProperty(this, "RemoteAddress", undefined); + + _defineProperty(this, "UserAgent", undefined); + + _defineProperty(this, "HttpProtocol", undefined); + + _defineProperty(this, "NodeUuid", undefined); + + _defineProperty(this, "NodePath", undefined); + + _defineProperty(this, "WsUuid", undefined); + + _defineProperty(this, "WsScope", undefined); + + _defineProperty(this, "SpanUuid", undefined); + + _defineProperty(this, "SpanParentUuid", undefined); + + _defineProperty(this, "SpanRootUuid", undefined); + + _defineProperty(this, "OperationUuid", undefined); + + _defineProperty(this, "OperationLabel", undefined); + + _defineProperty(this, "SchedulerJobUuid", undefined); + + _defineProperty(this, "SchedulerTaskUuid", undefined); + + _defineProperty(this, "SchedulerTaskActionPath", undefined); + + _defineProperty(this, "JsonZaps", undefined); + } + /** + * Constructs a LogLogMessage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LogLogMessage} obj Optional instance to populate. + * @return {module:model/LogLogMessage} The populated LogLogMessage instance. + */ + + + _createClass(LogLogMessage, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LogLogMessage(); + + if (data.hasOwnProperty('Ts')) { + obj['Ts'] = _ApiClient["default"].convertToType(data['Ts'], 'Number'); + } + + if (data.hasOwnProperty('Level')) { + obj['Level'] = _ApiClient["default"].convertToType(data['Level'], 'String'); + } + + if (data.hasOwnProperty('Logger')) { + obj['Logger'] = _ApiClient["default"].convertToType(data['Logger'], 'String'); + } + + if (data.hasOwnProperty('Msg')) { + obj['Msg'] = _ApiClient["default"].convertToType(data['Msg'], 'String'); + } + + if (data.hasOwnProperty('MsgId')) { + obj['MsgId'] = _ApiClient["default"].convertToType(data['MsgId'], 'String'); + } + + if (data.hasOwnProperty('UserName')) { + obj['UserName'] = _ApiClient["default"].convertToType(data['UserName'], 'String'); + } + + if (data.hasOwnProperty('UserUuid')) { + obj['UserUuid'] = _ApiClient["default"].convertToType(data['UserUuid'], 'String'); + } + + if (data.hasOwnProperty('GroupPath')) { + obj['GroupPath'] = _ApiClient["default"].convertToType(data['GroupPath'], 'String'); + } + + if (data.hasOwnProperty('Profile')) { + obj['Profile'] = _ApiClient["default"].convertToType(data['Profile'], 'String'); + } + + if (data.hasOwnProperty('RoleUuids')) { + obj['RoleUuids'] = _ApiClient["default"].convertToType(data['RoleUuids'], ['String']); + } + + if (data.hasOwnProperty('RemoteAddress')) { + obj['RemoteAddress'] = _ApiClient["default"].convertToType(data['RemoteAddress'], 'String'); + } + + if (data.hasOwnProperty('UserAgent')) { + obj['UserAgent'] = _ApiClient["default"].convertToType(data['UserAgent'], 'String'); + } + + if (data.hasOwnProperty('HttpProtocol')) { + obj['HttpProtocol'] = _ApiClient["default"].convertToType(data['HttpProtocol'], 'String'); + } + + if (data.hasOwnProperty('NodeUuid')) { + obj['NodeUuid'] = _ApiClient["default"].convertToType(data['NodeUuid'], 'String'); + } + + if (data.hasOwnProperty('NodePath')) { + obj['NodePath'] = _ApiClient["default"].convertToType(data['NodePath'], 'String'); + } + + if (data.hasOwnProperty('WsUuid')) { + obj['WsUuid'] = _ApiClient["default"].convertToType(data['WsUuid'], 'String'); + } + + if (data.hasOwnProperty('WsScope')) { + obj['WsScope'] = _ApiClient["default"].convertToType(data['WsScope'], 'String'); + } + + if (data.hasOwnProperty('SpanUuid')) { + obj['SpanUuid'] = _ApiClient["default"].convertToType(data['SpanUuid'], 'String'); + } + + if (data.hasOwnProperty('SpanParentUuid')) { + obj['SpanParentUuid'] = _ApiClient["default"].convertToType(data['SpanParentUuid'], 'String'); + } + + if (data.hasOwnProperty('SpanRootUuid')) { + obj['SpanRootUuid'] = _ApiClient["default"].convertToType(data['SpanRootUuid'], 'String'); + } + + if (data.hasOwnProperty('OperationUuid')) { + obj['OperationUuid'] = _ApiClient["default"].convertToType(data['OperationUuid'], 'String'); + } + + if (data.hasOwnProperty('OperationLabel')) { + obj['OperationLabel'] = _ApiClient["default"].convertToType(data['OperationLabel'], 'String'); + } + + if (data.hasOwnProperty('SchedulerJobUuid')) { + obj['SchedulerJobUuid'] = _ApiClient["default"].convertToType(data['SchedulerJobUuid'], 'String'); + } + + if (data.hasOwnProperty('SchedulerTaskUuid')) { + obj['SchedulerTaskUuid'] = _ApiClient["default"].convertToType(data['SchedulerTaskUuid'], 'String'); + } + + if (data.hasOwnProperty('SchedulerTaskActionPath')) { + obj['SchedulerTaskActionPath'] = _ApiClient["default"].convertToType(data['SchedulerTaskActionPath'], 'String'); + } + + if (data.hasOwnProperty('JsonZaps')) { + obj['JsonZaps'] = _ApiClient["default"].convertToType(data['JsonZaps'], 'String'); + } + } + + return obj; + } + /** + * @member {Number} Ts + */ + + }]); + + return LogLogMessage; +}(); + +exports["default"] = LogLogMessage; +//# sourceMappingURL=LogLogMessage.js.map diff --git a/lib/model/LogLogMessage.js.map b/lib/model/LogLogMessage.js.map new file mode 100644 index 0000000..c21253e --- /dev/null +++ b/lib/model/LogLogMessage.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/LogLogMessage.js"],"names":["LogLogMessage","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The LogLogMessage model module.\n* @module model/LogLogMessage\n* @version 2.0\n*/\nexport default class LogLogMessage {\n /**\n * Constructs a new LogLogMessage.\n * LogMessage is the format used to transmit log messages to clients via the REST API.\n * @alias module:model/LogLogMessage\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a LogLogMessage from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/LogLogMessage} obj Optional instance to populate.\n * @return {module:model/LogLogMessage} The populated LogLogMessage instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new LogLogMessage();\n\n \n \n \n\n if (data.hasOwnProperty('Ts')) {\n obj['Ts'] = ApiClient.convertToType(data['Ts'], 'Number');\n }\n if (data.hasOwnProperty('Level')) {\n obj['Level'] = ApiClient.convertToType(data['Level'], 'String');\n }\n if (data.hasOwnProperty('Logger')) {\n obj['Logger'] = ApiClient.convertToType(data['Logger'], 'String');\n }\n if (data.hasOwnProperty('Msg')) {\n obj['Msg'] = ApiClient.convertToType(data['Msg'], 'String');\n }\n if (data.hasOwnProperty('MsgId')) {\n obj['MsgId'] = ApiClient.convertToType(data['MsgId'], 'String');\n }\n if (data.hasOwnProperty('UserName')) {\n obj['UserName'] = ApiClient.convertToType(data['UserName'], 'String');\n }\n if (data.hasOwnProperty('UserUuid')) {\n obj['UserUuid'] = ApiClient.convertToType(data['UserUuid'], 'String');\n }\n if (data.hasOwnProperty('GroupPath')) {\n obj['GroupPath'] = ApiClient.convertToType(data['GroupPath'], 'String');\n }\n if (data.hasOwnProperty('Profile')) {\n obj['Profile'] = ApiClient.convertToType(data['Profile'], 'String');\n }\n if (data.hasOwnProperty('RoleUuids')) {\n obj['RoleUuids'] = ApiClient.convertToType(data['RoleUuids'], ['String']);\n }\n if (data.hasOwnProperty('RemoteAddress')) {\n obj['RemoteAddress'] = ApiClient.convertToType(data['RemoteAddress'], 'String');\n }\n if (data.hasOwnProperty('UserAgent')) {\n obj['UserAgent'] = ApiClient.convertToType(data['UserAgent'], 'String');\n }\n if (data.hasOwnProperty('HttpProtocol')) {\n obj['HttpProtocol'] = ApiClient.convertToType(data['HttpProtocol'], 'String');\n }\n if (data.hasOwnProperty('NodeUuid')) {\n obj['NodeUuid'] = ApiClient.convertToType(data['NodeUuid'], 'String');\n }\n if (data.hasOwnProperty('NodePath')) {\n obj['NodePath'] = ApiClient.convertToType(data['NodePath'], 'String');\n }\n if (data.hasOwnProperty('WsUuid')) {\n obj['WsUuid'] = ApiClient.convertToType(data['WsUuid'], 'String');\n }\n if (data.hasOwnProperty('WsScope')) {\n obj['WsScope'] = ApiClient.convertToType(data['WsScope'], 'String');\n }\n if (data.hasOwnProperty('SpanUuid')) {\n obj['SpanUuid'] = ApiClient.convertToType(data['SpanUuid'], 'String');\n }\n if (data.hasOwnProperty('SpanParentUuid')) {\n obj['SpanParentUuid'] = ApiClient.convertToType(data['SpanParentUuid'], 'String');\n }\n if (data.hasOwnProperty('SpanRootUuid')) {\n obj['SpanRootUuid'] = ApiClient.convertToType(data['SpanRootUuid'], 'String');\n }\n if (data.hasOwnProperty('OperationUuid')) {\n obj['OperationUuid'] = ApiClient.convertToType(data['OperationUuid'], 'String');\n }\n if (data.hasOwnProperty('OperationLabel')) {\n obj['OperationLabel'] = ApiClient.convertToType(data['OperationLabel'], 'String');\n }\n if (data.hasOwnProperty('SchedulerJobUuid')) {\n obj['SchedulerJobUuid'] = ApiClient.convertToType(data['SchedulerJobUuid'], 'String');\n }\n if (data.hasOwnProperty('SchedulerTaskUuid')) {\n obj['SchedulerTaskUuid'] = ApiClient.convertToType(data['SchedulerTaskUuid'], 'String');\n }\n if (data.hasOwnProperty('SchedulerTaskActionPath')) {\n obj['SchedulerTaskActionPath'] = ApiClient.convertToType(data['SchedulerTaskActionPath'], 'String');\n }\n if (data.hasOwnProperty('JsonZaps')) {\n obj['JsonZaps'] = ApiClient.convertToType(data['JsonZaps'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {Number} Ts\n */\n Ts = undefined;\n /**\n * @member {String} Level\n */\n Level = undefined;\n /**\n * @member {String} Logger\n */\n Logger = undefined;\n /**\n * @member {String} Msg\n */\n Msg = undefined;\n /**\n * @member {String} MsgId\n */\n MsgId = undefined;\n /**\n * @member {String} UserName\n */\n UserName = undefined;\n /**\n * @member {String} UserUuid\n */\n UserUuid = undefined;\n /**\n * @member {String} GroupPath\n */\n GroupPath = undefined;\n /**\n * @member {String} Profile\n */\n Profile = undefined;\n /**\n * @member {Array.} RoleUuids\n */\n RoleUuids = undefined;\n /**\n * @member {String} RemoteAddress\n */\n RemoteAddress = undefined;\n /**\n * @member {String} UserAgent\n */\n UserAgent = undefined;\n /**\n * @member {String} HttpProtocol\n */\n HttpProtocol = undefined;\n /**\n * @member {String} NodeUuid\n */\n NodeUuid = undefined;\n /**\n * @member {String} NodePath\n */\n NodePath = undefined;\n /**\n * @member {String} WsUuid\n */\n WsUuid = undefined;\n /**\n * @member {String} WsScope\n */\n WsScope = undefined;\n /**\n * @member {String} SpanUuid\n */\n SpanUuid = undefined;\n /**\n * @member {String} SpanParentUuid\n */\n SpanParentUuid = undefined;\n /**\n * @member {String} SpanRootUuid\n */\n SpanRootUuid = undefined;\n /**\n * @member {String} OperationUuid\n */\n OperationUuid = undefined;\n /**\n * @member {String} OperationLabel\n */\n OperationLabel = undefined;\n /**\n * @member {String} SchedulerJobUuid\n */\n SchedulerJobUuid = undefined;\n /**\n * @member {String} SchedulerTaskUuid\n */\n SchedulerTaskUuid = undefined;\n /**\n * @member {String} SchedulerTaskActionPath\n */\n SchedulerTaskActionPath = undefined;\n /**\n * @member {String} JsonZaps\n */\n JsonZaps = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"LogLogMessage.js"} \ No newline at end of file diff --git a/lib/model/LogRelType.js b/lib/model/LogRelType.js new file mode 100644 index 0000000..34d691e --- /dev/null +++ b/lib/model/LogRelType.js @@ -0,0 +1,57 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class LogRelType. +* @enum {} +* @readonly +*/ +var LogRelType = /*#__PURE__*/function () { + function LogRelType() { + _classCallCheck(this, LogRelType); + + _defineProperty(this, "NONE", "NONE"); + + _defineProperty(this, "FIRST", "FIRST"); + + _defineProperty(this, "PREV", "PREV"); + + _defineProperty(this, "NEXT", "NEXT"); + + _defineProperty(this, "LAST", "LAST"); + } + + _createClass(LogRelType, null, [{ + key: "constructFromObject", + value: + /** + * Returns a LogRelType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/LogRelType} The enum LogRelType value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return LogRelType; +}(); + +exports["default"] = LogRelType; +//# sourceMappingURL=LogRelType.js.map diff --git a/lib/model/LogRelType.js.map b/lib/model/LogRelType.js.map new file mode 100644 index 0000000..ca6c33c --- /dev/null +++ b/lib/model/LogRelType.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/LogRelType.js"],"names":["LogRelType","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,U;;;;kCAMN,M;;mCAOC,O;;kCAOD,M;;kCAOA,M;;kCAOA,M;;;;;;AAIX;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class LogRelType.\n* @enum {}\n* @readonly\n*/\nexport default class LogRelType {\n \n /**\n * value: \"NONE\"\n * @const\n */\n NONE = \"NONE\";\n\n \n /**\n * value: \"FIRST\"\n * @const\n */\n FIRST = \"FIRST\";\n\n \n /**\n * value: \"PREV\"\n * @const\n */\n PREV = \"PREV\";\n\n \n /**\n * value: \"NEXT\"\n * @const\n */\n NEXT = \"NEXT\";\n\n \n /**\n * value: \"LAST\"\n * @const\n */\n LAST = \"LAST\";\n\n \n\n /**\n * Returns a LogRelType enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/LogRelType} The enum LogRelType value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"LogRelType.js"} \ No newline at end of file diff --git a/lib/model/LogTimeRangeCursor.js b/lib/model/LogTimeRangeCursor.js new file mode 100644 index 0000000..326bbc9 --- /dev/null +++ b/lib/model/LogTimeRangeCursor.js @@ -0,0 +1,83 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _LogRelType = _interopRequireDefault(require("./LogRelType")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The LogTimeRangeCursor model module. +* @module model/LogTimeRangeCursor +* @version 2.0 +*/ +var LogTimeRangeCursor = /*#__PURE__*/function () { + /** + * Constructs a new LogTimeRangeCursor. + * Ease implementation of data navigation for a chart. + * @alias module:model/LogTimeRangeCursor + * @class + */ + function LogTimeRangeCursor() { + _classCallCheck(this, LogTimeRangeCursor); + + _defineProperty(this, "Rel", undefined); + + _defineProperty(this, "RefTime", undefined); + + _defineProperty(this, "Count", undefined); + } + /** + * Constructs a LogTimeRangeCursor from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LogTimeRangeCursor} obj Optional instance to populate. + * @return {module:model/LogTimeRangeCursor} The populated LogTimeRangeCursor instance. + */ + + + _createClass(LogTimeRangeCursor, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LogTimeRangeCursor(); + + if (data.hasOwnProperty('Rel')) { + obj['Rel'] = _LogRelType["default"].constructFromObject(data['Rel']); + } + + if (data.hasOwnProperty('RefTime')) { + obj['RefTime'] = _ApiClient["default"].convertToType(data['RefTime'], 'Number'); + } + + if (data.hasOwnProperty('Count')) { + obj['Count'] = _ApiClient["default"].convertToType(data['Count'], 'Number'); + } + } + + return obj; + } + /** + * @member {module:model/LogRelType} Rel + */ + + }]); + + return LogTimeRangeCursor; +}(); + +exports["default"] = LogTimeRangeCursor; +//# sourceMappingURL=LogTimeRangeCursor.js.map diff --git a/lib/model/LogTimeRangeCursor.js.map b/lib/model/LogTimeRangeCursor.js.map new file mode 100644 index 0000000..b9d559b --- /dev/null +++ b/lib/model/LogTimeRangeCursor.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/LogTimeRangeCursor.js"],"names":["LogTimeRangeCursor","undefined","data","obj","hasOwnProperty","LogRelType","constructFromObject","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,kB;AACjB;AACJ;AACA;AACA;AACA;AACA;AAEI,gCAAc;AAAA;;AAAA,iCA0CRC,SA1CQ;;AAAA,qCA8CJA,SA9CI;;AAAA,mCAkDNA,SAlDM;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,kBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,KAApB,CAAJ,EAAgC;AAC5BD,UAAAA,GAAG,CAAC,KAAD,CAAH,GAAaE,uBAAWC,mBAAX,CAA+BJ,IAAI,CAAC,KAAD,CAAnC,CAAb;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,SAAD,CAA5B,EAAyC,QAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport LogRelType from './LogRelType';\n\n\n\n\n\n/**\n* The LogTimeRangeCursor model module.\n* @module model/LogTimeRangeCursor\n* @version 2.0\n*/\nexport default class LogTimeRangeCursor {\n /**\n * Constructs a new LogTimeRangeCursor.\n * Ease implementation of data navigation for a chart.\n * @alias module:model/LogTimeRangeCursor\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a LogTimeRangeCursor from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/LogTimeRangeCursor} obj Optional instance to populate.\n * @return {module:model/LogTimeRangeCursor} The populated LogTimeRangeCursor instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new LogTimeRangeCursor();\n\n \n \n \n\n if (data.hasOwnProperty('Rel')) {\n obj['Rel'] = LogRelType.constructFromObject(data['Rel']);\n }\n if (data.hasOwnProperty('RefTime')) {\n obj['RefTime'] = ApiClient.convertToType(data['RefTime'], 'Number');\n }\n if (data.hasOwnProperty('Count')) {\n obj['Count'] = ApiClient.convertToType(data['Count'], 'Number');\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/LogRelType} Rel\n */\n Rel = undefined;\n /**\n * @member {Number} RefTime\n */\n RefTime = undefined;\n /**\n * @member {Number} Count\n */\n Count = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"LogTimeRangeCursor.js"} \ No newline at end of file diff --git a/lib/model/LogTimeRangeRequest.js b/lib/model/LogTimeRangeRequest.js new file mode 100644 index 0000000..d26ad20 --- /dev/null +++ b/lib/model/LogTimeRangeRequest.js @@ -0,0 +1,81 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The LogTimeRangeRequest model module. +* @module model/LogTimeRangeRequest +* @version 2.0 +*/ +var LogTimeRangeRequest = /*#__PURE__*/function () { + /** + * Constructs a new LogTimeRangeRequest. + * TimeRangeRequest contains the parameter to configure the query to retrieve the number of audit events of this type for a given time range defined by last timestamp and a range type. + * @alias module:model/LogTimeRangeRequest + * @class + */ + function LogTimeRangeRequest() { + _classCallCheck(this, LogTimeRangeRequest); + + _defineProperty(this, "MsgId", undefined); + + _defineProperty(this, "TimeRangeType", undefined); + + _defineProperty(this, "RefTime", undefined); + } + /** + * Constructs a LogTimeRangeRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LogTimeRangeRequest} obj Optional instance to populate. + * @return {module:model/LogTimeRangeRequest} The populated LogTimeRangeRequest instance. + */ + + + _createClass(LogTimeRangeRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LogTimeRangeRequest(); + + if (data.hasOwnProperty('MsgId')) { + obj['MsgId'] = _ApiClient["default"].convertToType(data['MsgId'], 'String'); + } + + if (data.hasOwnProperty('TimeRangeType')) { + obj['TimeRangeType'] = _ApiClient["default"].convertToType(data['TimeRangeType'], 'String'); + } + + if (data.hasOwnProperty('RefTime')) { + obj['RefTime'] = _ApiClient["default"].convertToType(data['RefTime'], 'Number'); + } + } + + return obj; + } + /** + * @member {String} MsgId + */ + + }]); + + return LogTimeRangeRequest; +}(); + +exports["default"] = LogTimeRangeRequest; +//# sourceMappingURL=LogTimeRangeRequest.js.map diff --git a/lib/model/LogTimeRangeRequest.js.map b/lib/model/LogTimeRangeRequest.js.map new file mode 100644 index 0000000..ede8f97 --- /dev/null +++ b/lib/model/LogTimeRangeRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/LogTimeRangeRequest.js"],"names":["LogTimeRangeRequest","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,mB;AACjB;AACJ;AACA;AACA;AACA;AACA;AAEI,iCAAc;AAAA;;AAAA,mCA0CNC,SA1CM;;AAAA,2CA8CEA,SA9CF;;AAAA,qCAkDJA,SAlDI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,mBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,eAAD,CAA5B,EAA+C,QAA/C,CAAvB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,QAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The LogTimeRangeRequest model module.\n* @module model/LogTimeRangeRequest\n* @version 2.0\n*/\nexport default class LogTimeRangeRequest {\n /**\n * Constructs a new LogTimeRangeRequest.\n * TimeRangeRequest contains the parameter to configure the query to retrieve the number of audit events of this type for a given time range defined by last timestamp and a range type.\n * @alias module:model/LogTimeRangeRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a LogTimeRangeRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/LogTimeRangeRequest} obj Optional instance to populate.\n * @return {module:model/LogTimeRangeRequest} The populated LogTimeRangeRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new LogTimeRangeRequest();\n\n \n \n \n\n if (data.hasOwnProperty('MsgId')) {\n obj['MsgId'] = ApiClient.convertToType(data['MsgId'], 'String');\n }\n if (data.hasOwnProperty('TimeRangeType')) {\n obj['TimeRangeType'] = ApiClient.convertToType(data['TimeRangeType'], 'String');\n }\n if (data.hasOwnProperty('RefTime')) {\n obj['RefTime'] = ApiClient.convertToType(data['RefTime'], 'Number');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} MsgId\n */\n MsgId = undefined;\n /**\n * @member {String} TimeRangeType\n */\n TimeRangeType = undefined;\n /**\n * @member {Number} RefTime\n */\n RefTime = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"LogTimeRangeRequest.js"} \ No newline at end of file diff --git a/lib/model/LogTimeRangeResult.js b/lib/model/LogTimeRangeResult.js new file mode 100644 index 0000000..f86939d --- /dev/null +++ b/lib/model/LogTimeRangeResult.js @@ -0,0 +1,93 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The LogTimeRangeResult model module. +* @module model/LogTimeRangeResult +* @version 2.0 +*/ +var LogTimeRangeResult = /*#__PURE__*/function () { + /** + * Constructs a new LogTimeRangeResult. + * TimeRangeResult represents one point of a graph. + * @alias module:model/LogTimeRangeResult + * @class + */ + function LogTimeRangeResult() { + _classCallCheck(this, LogTimeRangeResult); + + _defineProperty(this, "Name", undefined); + + _defineProperty(this, "Start", undefined); + + _defineProperty(this, "End", undefined); + + _defineProperty(this, "Count", undefined); + + _defineProperty(this, "Relevance", undefined); + } + /** + * Constructs a LogTimeRangeResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LogTimeRangeResult} obj Optional instance to populate. + * @return {module:model/LogTimeRangeResult} The populated LogTimeRangeResult instance. + */ + + + _createClass(LogTimeRangeResult, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LogTimeRangeResult(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('Start')) { + obj['Start'] = _ApiClient["default"].convertToType(data['Start'], 'Number'); + } + + if (data.hasOwnProperty('End')) { + obj['End'] = _ApiClient["default"].convertToType(data['End'], 'Number'); + } + + if (data.hasOwnProperty('Count')) { + obj['Count'] = _ApiClient["default"].convertToType(data['Count'], 'Number'); + } + + if (data.hasOwnProperty('Relevance')) { + obj['Relevance'] = _ApiClient["default"].convertToType(data['Relevance'], 'Number'); + } + } + + return obj; + } + /** + * @member {String} Name + */ + + }]); + + return LogTimeRangeResult; +}(); + +exports["default"] = LogTimeRangeResult; +//# sourceMappingURL=LogTimeRangeResult.js.map diff --git a/lib/model/LogTimeRangeResult.js.map b/lib/model/LogTimeRangeResult.js.map new file mode 100644 index 0000000..b5541d9 --- /dev/null +++ b/lib/model/LogTimeRangeResult.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/LogTimeRangeResult.js"],"names":["LogTimeRangeResult","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,kB;AACjB;AACJ;AACA;AACA;AACA;AACA;AAEI,gCAAc;AAAA;;AAAA,kCAgDPC,SAhDO;;AAAA,mCAoDNA,SApDM;;AAAA,iCAwDRA,SAxDQ;;AAAA,mCA4DNA,SA5DM;;AAAA,uCAgEFA,SAhEE;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,kBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,KAApB,CAAJ,EAAgC;AAC5BD,UAAAA,GAAG,CAAC,KAAD,CAAH,GAAaE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,KAAD,CAA5B,EAAqC,QAArC,CAAb;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,QAA3C,CAAnB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The LogTimeRangeResult model module.\n* @module model/LogTimeRangeResult\n* @version 2.0\n*/\nexport default class LogTimeRangeResult {\n /**\n * Constructs a new LogTimeRangeResult.\n * TimeRangeResult represents one point of a graph.\n * @alias module:model/LogTimeRangeResult\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a LogTimeRangeResult from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/LogTimeRangeResult} obj Optional instance to populate.\n * @return {module:model/LogTimeRangeResult} The populated LogTimeRangeResult instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new LogTimeRangeResult();\n\n \n \n \n\n if (data.hasOwnProperty('Name')) {\n obj['Name'] = ApiClient.convertToType(data['Name'], 'String');\n }\n if (data.hasOwnProperty('Start')) {\n obj['Start'] = ApiClient.convertToType(data['Start'], 'Number');\n }\n if (data.hasOwnProperty('End')) {\n obj['End'] = ApiClient.convertToType(data['End'], 'Number');\n }\n if (data.hasOwnProperty('Count')) {\n obj['Count'] = ApiClient.convertToType(data['Count'], 'Number');\n }\n if (data.hasOwnProperty('Relevance')) {\n obj['Relevance'] = ApiClient.convertToType(data['Relevance'], 'Number');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Name\n */\n Name = undefined;\n /**\n * @member {Number} Start\n */\n Start = undefined;\n /**\n * @member {Number} End\n */\n End = undefined;\n /**\n * @member {Number} Count\n */\n Count = undefined;\n /**\n * @member {Number} Relevance\n */\n Relevance = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"LogTimeRangeResult.js"} \ No newline at end of file diff --git a/lib/model/NodeChangeEventEventType.js b/lib/model/NodeChangeEventEventType.js new file mode 100644 index 0000000..e260900 --- /dev/null +++ b/lib/model/NodeChangeEventEventType.js @@ -0,0 +1,61 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class NodeChangeEventEventType. +* @enum {} +* @readonly +*/ +var NodeChangeEventEventType = /*#__PURE__*/function () { + function NodeChangeEventEventType() { + _classCallCheck(this, NodeChangeEventEventType); + + _defineProperty(this, "CREATE", "CREATE"); + + _defineProperty(this, "READ", "READ"); + + _defineProperty(this, "UPDATE_PATH", "UPDATE_PATH"); + + _defineProperty(this, "UPDATE_CONTENT", "UPDATE_CONTENT"); + + _defineProperty(this, "UPDATE_META", "UPDATE_META"); + + _defineProperty(this, "UPDATE_USER_META", "UPDATE_USER_META"); + + _defineProperty(this, "DELETE", "DELETE"); + } + + _createClass(NodeChangeEventEventType, null, [{ + key: "constructFromObject", + value: + /** + * Returns a NodeChangeEventEventType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/NodeChangeEventEventType} The enum NodeChangeEventEventType value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return NodeChangeEventEventType; +}(); + +exports["default"] = NodeChangeEventEventType; +//# sourceMappingURL=NodeChangeEventEventType.js.map diff --git a/lib/model/NodeChangeEventEventType.js.map b/lib/model/NodeChangeEventEventType.js.map new file mode 100644 index 0000000..0710d31 --- /dev/null +++ b/lib/model/NodeChangeEventEventType.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/NodeChangeEventEventType.js"],"names":["NodeChangeEventEventType","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,wB;;;;oCAMJ,Q;;kCAOF,M;;yCAOO,a;;4CAOG,gB;;yCAOH,a;;8CAOK,kB;;oCAOV,Q;;;;;;AAIb;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class NodeChangeEventEventType.\n* @enum {}\n* @readonly\n*/\nexport default class NodeChangeEventEventType {\n \n /**\n * value: \"CREATE\"\n * @const\n */\n CREATE = \"CREATE\";\n\n \n /**\n * value: \"READ\"\n * @const\n */\n READ = \"READ\";\n\n \n /**\n * value: \"UPDATE_PATH\"\n * @const\n */\n UPDATE_PATH = \"UPDATE_PATH\";\n\n \n /**\n * value: \"UPDATE_CONTENT\"\n * @const\n */\n UPDATE_CONTENT = \"UPDATE_CONTENT\";\n\n \n /**\n * value: \"UPDATE_META\"\n * @const\n */\n UPDATE_META = \"UPDATE_META\";\n\n \n /**\n * value: \"UPDATE_USER_META\"\n * @const\n */\n UPDATE_USER_META = \"UPDATE_USER_META\";\n\n \n /**\n * value: \"DELETE\"\n * @const\n */\n DELETE = \"DELETE\";\n\n \n\n /**\n * Returns a NodeChangeEventEventType enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/NodeChangeEventEventType} The enum NodeChangeEventEventType value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"NodeChangeEventEventType.js"} \ No newline at end of file diff --git a/lib/model/ObjectDataSource.js b/lib/model/ObjectDataSource.js new file mode 100644 index 0000000..81b6131 --- /dev/null +++ b/lib/model/ObjectDataSource.js @@ -0,0 +1,194 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ObjectEncryptionMode = _interopRequireDefault(require("./ObjectEncryptionMode")); + +var _ObjectStorageType = _interopRequireDefault(require("./ObjectStorageType")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The ObjectDataSource model module. +* @module model/ObjectDataSource +* @version 2.0 +*/ +var ObjectDataSource = /*#__PURE__*/function () { + /** + * Constructs a new ObjectDataSource. + * @alias module:model/ObjectDataSource + * @class + */ + function ObjectDataSource() { + _classCallCheck(this, ObjectDataSource); + + _defineProperty(this, "Name", undefined); + + _defineProperty(this, "Disabled", undefined); + + _defineProperty(this, "StorageType", undefined); + + _defineProperty(this, "StorageConfiguration", undefined); + + _defineProperty(this, "ObjectsServiceName", undefined); + + _defineProperty(this, "ObjectsHost", undefined); + + _defineProperty(this, "ObjectsPort", undefined); + + _defineProperty(this, "ObjectsSecure", undefined); + + _defineProperty(this, "ObjectsBucket", undefined); + + _defineProperty(this, "ObjectsBaseFolder", undefined); + + _defineProperty(this, "ApiKey", undefined); + + _defineProperty(this, "ApiSecret", undefined); + + _defineProperty(this, "PeerAddress", undefined); + + _defineProperty(this, "Watch", undefined); + + _defineProperty(this, "FlatStorage", undefined); + + _defineProperty(this, "SkipSyncOnRestart", undefined); + + _defineProperty(this, "EncryptionMode", undefined); + + _defineProperty(this, "EncryptionKey", undefined); + + _defineProperty(this, "VersioningPolicyName", undefined); + + _defineProperty(this, "CreationDate", undefined); + + _defineProperty(this, "LastSynchronizationDate", undefined); + } + /** + * Constructs a ObjectDataSource from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ObjectDataSource} obj Optional instance to populate. + * @return {module:model/ObjectDataSource} The populated ObjectDataSource instance. + */ + + + _createClass(ObjectDataSource, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectDataSource(); + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('Disabled')) { + obj['Disabled'] = _ApiClient["default"].convertToType(data['Disabled'], 'Boolean'); + } + + if (data.hasOwnProperty('StorageType')) { + obj['StorageType'] = _ObjectStorageType["default"].constructFromObject(data['StorageType']); + } + + if (data.hasOwnProperty('StorageConfiguration')) { + obj['StorageConfiguration'] = _ApiClient["default"].convertToType(data['StorageConfiguration'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('ObjectsServiceName')) { + obj['ObjectsServiceName'] = _ApiClient["default"].convertToType(data['ObjectsServiceName'], 'String'); + } + + if (data.hasOwnProperty('ObjectsHost')) { + obj['ObjectsHost'] = _ApiClient["default"].convertToType(data['ObjectsHost'], 'String'); + } + + if (data.hasOwnProperty('ObjectsPort')) { + obj['ObjectsPort'] = _ApiClient["default"].convertToType(data['ObjectsPort'], 'Number'); + } + + if (data.hasOwnProperty('ObjectsSecure')) { + obj['ObjectsSecure'] = _ApiClient["default"].convertToType(data['ObjectsSecure'], 'Boolean'); + } + + if (data.hasOwnProperty('ObjectsBucket')) { + obj['ObjectsBucket'] = _ApiClient["default"].convertToType(data['ObjectsBucket'], 'String'); + } + + if (data.hasOwnProperty('ObjectsBaseFolder')) { + obj['ObjectsBaseFolder'] = _ApiClient["default"].convertToType(data['ObjectsBaseFolder'], 'String'); + } + + if (data.hasOwnProperty('ApiKey')) { + obj['ApiKey'] = _ApiClient["default"].convertToType(data['ApiKey'], 'String'); + } + + if (data.hasOwnProperty('ApiSecret')) { + obj['ApiSecret'] = _ApiClient["default"].convertToType(data['ApiSecret'], 'String'); + } + + if (data.hasOwnProperty('PeerAddress')) { + obj['PeerAddress'] = _ApiClient["default"].convertToType(data['PeerAddress'], 'String'); + } + + if (data.hasOwnProperty('Watch')) { + obj['Watch'] = _ApiClient["default"].convertToType(data['Watch'], 'Boolean'); + } + + if (data.hasOwnProperty('FlatStorage')) { + obj['FlatStorage'] = _ApiClient["default"].convertToType(data['FlatStorage'], 'Boolean'); + } + + if (data.hasOwnProperty('SkipSyncOnRestart')) { + obj['SkipSyncOnRestart'] = _ApiClient["default"].convertToType(data['SkipSyncOnRestart'], 'Boolean'); + } + + if (data.hasOwnProperty('EncryptionMode')) { + obj['EncryptionMode'] = _ObjectEncryptionMode["default"].constructFromObject(data['EncryptionMode']); + } + + if (data.hasOwnProperty('EncryptionKey')) { + obj['EncryptionKey'] = _ApiClient["default"].convertToType(data['EncryptionKey'], 'String'); + } + + if (data.hasOwnProperty('VersioningPolicyName')) { + obj['VersioningPolicyName'] = _ApiClient["default"].convertToType(data['VersioningPolicyName'], 'String'); + } + + if (data.hasOwnProperty('CreationDate')) { + obj['CreationDate'] = _ApiClient["default"].convertToType(data['CreationDate'], 'Number'); + } + + if (data.hasOwnProperty('LastSynchronizationDate')) { + obj['LastSynchronizationDate'] = _ApiClient["default"].convertToType(data['LastSynchronizationDate'], 'Number'); + } + } + + return obj; + } + /** + * @member {String} Name + */ + + }]); + + return ObjectDataSource; +}(); + +exports["default"] = ObjectDataSource; +//# sourceMappingURL=ObjectDataSource.js.map diff --git a/lib/model/ObjectDataSource.js.map b/lib/model/ObjectDataSource.js.map new file mode 100644 index 0000000..de5e1fb --- /dev/null +++ b/lib/model/ObjectDataSource.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ObjectDataSource.js"],"names":["ObjectDataSource","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","ObjectStorageType","constructFromObject","ObjectEncryptionMode"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,gB;AACjB;AACJ;AACA;AACA;AACA;AAEI,8BAAc;AAAA;;AAAA,kCAgGPC,SAhGO;;AAAA,sCAoGHA,SApGG;;AAAA,yCAwGAA,SAxGA;;AAAA,kDA4GSA,SA5GT;;AAAA,gDAgHOA,SAhHP;;AAAA,yCAoHAA,SApHA;;AAAA,yCAwHAA,SAxHA;;AAAA,2CA4HEA,SA5HF;;AAAA,2CAgIEA,SAhIF;;AAAA,+CAoIMA,SApIN;;AAAA,oCAwILA,SAxIK;;AAAA,uCA4IFA,SA5IE;;AAAA,yCAgJAA,SAhJA;;AAAA,mCAoJNA,SApJM;;AAAA,yCAwJAA,SAxJA;;AAAA,+CA4JMA,SA5JN;;AAAA,4CAgKGA,SAhKH;;AAAA,2CAoKEA,SApKF;;AAAA,kDAwKSA,SAxKT;;AAAA,0CA4KCA,SA5KD;;AAAA,qDAgLYA,SAhLZ;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,gBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,SAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBI,8BAAkBC,mBAAlB,CAAsCN,IAAI,CAAC,aAAD,CAA1C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,sBAApB,CAAJ,EAAiD;AAC7CD,UAAAA,GAAG,CAAC,sBAAD,CAAH,GAA8BE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,sBAAD,CAA5B,EAAsD;AAAC,sBAAU;AAAX,WAAtD,CAA9B;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,oBAApB,CAAJ,EAA+C;AAC3CD,UAAAA,GAAG,CAAC,oBAAD,CAAH,GAA4BE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,oBAAD,CAA5B,EAAoD,QAApD,CAA5B;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,eAAD,CAA5B,EAA+C,SAA/C,CAAvB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,eAAD,CAA5B,EAA+C,QAA/C,CAAvB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,mBAApB,CAAJ,EAA8C;AAC1CD,UAAAA,GAAG,CAAC,mBAAD,CAAH,GAA2BE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,mBAAD,CAA5B,EAAmD,QAAnD,CAA3B;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,QAA3C,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,SAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,SAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,mBAApB,CAAJ,EAA8C;AAC1CD,UAAAA,GAAG,CAAC,mBAAD,CAAH,GAA2BE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,mBAAD,CAA5B,EAAmD,SAAnD,CAA3B;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,gBAApB,CAAJ,EAA2C;AACvCD,UAAAA,GAAG,CAAC,gBAAD,CAAH,GAAwBM,iCAAqBD,mBAArB,CAAyCN,IAAI,CAAC,gBAAD,CAA7C,CAAxB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,eAAD,CAA5B,EAA+C,QAA/C,CAAvB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,sBAApB,CAAJ,EAAiD;AAC7CD,UAAAA,GAAG,CAAC,sBAAD,CAAH,GAA8BE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,sBAAD,CAA5B,EAAsD,QAAtD,CAA9B;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,cAApB,CAAJ,EAAyC;AACrCD,UAAAA,GAAG,CAAC,cAAD,CAAH,GAAsBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,cAAD,CAA5B,EAA8C,QAA9C,CAAtB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,yBAApB,CAAJ,EAAoD;AAChDD,UAAAA,GAAG,CAAC,yBAAD,CAAH,GAAiCE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,yBAAD,CAA5B,EAAyD,QAAzD,CAAjC;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport ObjectEncryptionMode from './ObjectEncryptionMode';\nimport ObjectStorageType from './ObjectStorageType';\n\n\n\n\n\n/**\n* The ObjectDataSource model module.\n* @module model/ObjectDataSource\n* @version 2.0\n*/\nexport default class ObjectDataSource {\n /**\n * Constructs a new ObjectDataSource.\n * @alias module:model/ObjectDataSource\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a ObjectDataSource from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ObjectDataSource} obj Optional instance to populate.\n * @return {module:model/ObjectDataSource} The populated ObjectDataSource instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new ObjectDataSource();\n\n \n \n \n\n if (data.hasOwnProperty('Name')) {\n obj['Name'] = ApiClient.convertToType(data['Name'], 'String');\n }\n if (data.hasOwnProperty('Disabled')) {\n obj['Disabled'] = ApiClient.convertToType(data['Disabled'], 'Boolean');\n }\n if (data.hasOwnProperty('StorageType')) {\n obj['StorageType'] = ObjectStorageType.constructFromObject(data['StorageType']);\n }\n if (data.hasOwnProperty('StorageConfiguration')) {\n obj['StorageConfiguration'] = ApiClient.convertToType(data['StorageConfiguration'], {'String': 'String'});\n }\n if (data.hasOwnProperty('ObjectsServiceName')) {\n obj['ObjectsServiceName'] = ApiClient.convertToType(data['ObjectsServiceName'], 'String');\n }\n if (data.hasOwnProperty('ObjectsHost')) {\n obj['ObjectsHost'] = ApiClient.convertToType(data['ObjectsHost'], 'String');\n }\n if (data.hasOwnProperty('ObjectsPort')) {\n obj['ObjectsPort'] = ApiClient.convertToType(data['ObjectsPort'], 'Number');\n }\n if (data.hasOwnProperty('ObjectsSecure')) {\n obj['ObjectsSecure'] = ApiClient.convertToType(data['ObjectsSecure'], 'Boolean');\n }\n if (data.hasOwnProperty('ObjectsBucket')) {\n obj['ObjectsBucket'] = ApiClient.convertToType(data['ObjectsBucket'], 'String');\n }\n if (data.hasOwnProperty('ObjectsBaseFolder')) {\n obj['ObjectsBaseFolder'] = ApiClient.convertToType(data['ObjectsBaseFolder'], 'String');\n }\n if (data.hasOwnProperty('ApiKey')) {\n obj['ApiKey'] = ApiClient.convertToType(data['ApiKey'], 'String');\n }\n if (data.hasOwnProperty('ApiSecret')) {\n obj['ApiSecret'] = ApiClient.convertToType(data['ApiSecret'], 'String');\n }\n if (data.hasOwnProperty('PeerAddress')) {\n obj['PeerAddress'] = ApiClient.convertToType(data['PeerAddress'], 'String');\n }\n if (data.hasOwnProperty('Watch')) {\n obj['Watch'] = ApiClient.convertToType(data['Watch'], 'Boolean');\n }\n if (data.hasOwnProperty('FlatStorage')) {\n obj['FlatStorage'] = ApiClient.convertToType(data['FlatStorage'], 'Boolean');\n }\n if (data.hasOwnProperty('SkipSyncOnRestart')) {\n obj['SkipSyncOnRestart'] = ApiClient.convertToType(data['SkipSyncOnRestart'], 'Boolean');\n }\n if (data.hasOwnProperty('EncryptionMode')) {\n obj['EncryptionMode'] = ObjectEncryptionMode.constructFromObject(data['EncryptionMode']);\n }\n if (data.hasOwnProperty('EncryptionKey')) {\n obj['EncryptionKey'] = ApiClient.convertToType(data['EncryptionKey'], 'String');\n }\n if (data.hasOwnProperty('VersioningPolicyName')) {\n obj['VersioningPolicyName'] = ApiClient.convertToType(data['VersioningPolicyName'], 'String');\n }\n if (data.hasOwnProperty('CreationDate')) {\n obj['CreationDate'] = ApiClient.convertToType(data['CreationDate'], 'Number');\n }\n if (data.hasOwnProperty('LastSynchronizationDate')) {\n obj['LastSynchronizationDate'] = ApiClient.convertToType(data['LastSynchronizationDate'], 'Number');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Name\n */\n Name = undefined;\n /**\n * @member {Boolean} Disabled\n */\n Disabled = undefined;\n /**\n * @member {module:model/ObjectStorageType} StorageType\n */\n StorageType = undefined;\n /**\n * @member {Object.} StorageConfiguration\n */\n StorageConfiguration = undefined;\n /**\n * @member {String} ObjectsServiceName\n */\n ObjectsServiceName = undefined;\n /**\n * @member {String} ObjectsHost\n */\n ObjectsHost = undefined;\n /**\n * @member {Number} ObjectsPort\n */\n ObjectsPort = undefined;\n /**\n * @member {Boolean} ObjectsSecure\n */\n ObjectsSecure = undefined;\n /**\n * @member {String} ObjectsBucket\n */\n ObjectsBucket = undefined;\n /**\n * @member {String} ObjectsBaseFolder\n */\n ObjectsBaseFolder = undefined;\n /**\n * @member {String} ApiKey\n */\n ApiKey = undefined;\n /**\n * @member {String} ApiSecret\n */\n ApiSecret = undefined;\n /**\n * @member {String} PeerAddress\n */\n PeerAddress = undefined;\n /**\n * @member {Boolean} Watch\n */\n Watch = undefined;\n /**\n * @member {Boolean} FlatStorage\n */\n FlatStorage = undefined;\n /**\n * @member {Boolean} SkipSyncOnRestart\n */\n SkipSyncOnRestart = undefined;\n /**\n * @member {module:model/ObjectEncryptionMode} EncryptionMode\n */\n EncryptionMode = undefined;\n /**\n * @member {String} EncryptionKey\n */\n EncryptionKey = undefined;\n /**\n * @member {String} VersioningPolicyName\n */\n VersioningPolicyName = undefined;\n /**\n * @member {Number} CreationDate\n */\n CreationDate = undefined;\n /**\n * @member {Number} LastSynchronizationDate\n */\n LastSynchronizationDate = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"ObjectDataSource.js"} \ No newline at end of file diff --git a/lib/model/ObjectEncryptionMode.js b/lib/model/ObjectEncryptionMode.js new file mode 100644 index 0000000..9843f3c --- /dev/null +++ b/lib/model/ObjectEncryptionMode.js @@ -0,0 +1,55 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class ObjectEncryptionMode. +* @enum {} +* @readonly +*/ +var ObjectEncryptionMode = /*#__PURE__*/function () { + function ObjectEncryptionMode() { + _classCallCheck(this, ObjectEncryptionMode); + + _defineProperty(this, "CLEAR", "CLEAR"); + + _defineProperty(this, "MASTER", "MASTER"); + + _defineProperty(this, "USER", "USER"); + + _defineProperty(this, "USER_PWD", "USER_PWD"); + } + + _createClass(ObjectEncryptionMode, null, [{ + key: "constructFromObject", + value: + /** + * Returns a ObjectEncryptionMode enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ObjectEncryptionMode} The enum ObjectEncryptionMode value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return ObjectEncryptionMode; +}(); + +exports["default"] = ObjectEncryptionMode; +//# sourceMappingURL=ObjectEncryptionMode.js.map diff --git a/lib/model/ObjectEncryptionMode.js.map b/lib/model/ObjectEncryptionMode.js.map new file mode 100644 index 0000000..d913a32 --- /dev/null +++ b/lib/model/ObjectEncryptionMode.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ObjectEncryptionMode.js"],"names":["ObjectEncryptionMode","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,oB;;;;mCAML,O;;oCAOC,Q;;kCAOF,M;;sCAOI,U;;;;;;AAIf;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class ObjectEncryptionMode.\n* @enum {}\n* @readonly\n*/\nexport default class ObjectEncryptionMode {\n \n /**\n * value: \"CLEAR\"\n * @const\n */\n CLEAR = \"CLEAR\";\n\n \n /**\n * value: \"MASTER\"\n * @const\n */\n MASTER = \"MASTER\";\n\n \n /**\n * value: \"USER\"\n * @const\n */\n USER = \"USER\";\n\n \n /**\n * value: \"USER_PWD\"\n * @const\n */\n USER_PWD = \"USER_PWD\";\n\n \n\n /**\n * Returns a ObjectEncryptionMode enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/ObjectEncryptionMode} The enum ObjectEncryptionMode value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"ObjectEncryptionMode.js"} \ No newline at end of file diff --git a/lib/model/ObjectStorageType.js b/lib/model/ObjectStorageType.js new file mode 100644 index 0000000..090b512 --- /dev/null +++ b/lib/model/ObjectStorageType.js @@ -0,0 +1,65 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class ObjectStorageType. +* @enum {} +* @readonly +*/ +var ObjectStorageType = /*#__PURE__*/function () { + function ObjectStorageType() { + _classCallCheck(this, ObjectStorageType); + + _defineProperty(this, "LOCAL", "LOCAL"); + + _defineProperty(this, "S3", "S3"); + + _defineProperty(this, "SMB", "SMB"); + + _defineProperty(this, "CELLS", "CELLS"); + + _defineProperty(this, "AZURE", "AZURE"); + + _defineProperty(this, "GCS", "GCS"); + + _defineProperty(this, "B2", "B2"); + + _defineProperty(this, "MANTA", "MANTA"); + + _defineProperty(this, "SIA", "SIA"); + } + + _createClass(ObjectStorageType, null, [{ + key: "constructFromObject", + value: + /** + * Returns a ObjectStorageType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ObjectStorageType} The enum ObjectStorageType value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return ObjectStorageType; +}(); + +exports["default"] = ObjectStorageType; +//# sourceMappingURL=ObjectStorageType.js.map diff --git a/lib/model/ObjectStorageType.js.map b/lib/model/ObjectStorageType.js.map new file mode 100644 index 0000000..4c432db --- /dev/null +++ b/lib/model/ObjectStorageType.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ObjectStorageType.js"],"names":["ObjectStorageType","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,iB;;;;mCAML,O;;gCAOH,I;;iCAOC,K;;mCAOE,O;;mCAOA,O;;iCAOF,K;;gCAOD,I;;mCAOG,O;;iCAOF,K;;;;;;AAIV;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class ObjectStorageType.\n* @enum {}\n* @readonly\n*/\nexport default class ObjectStorageType {\n \n /**\n * value: \"LOCAL\"\n * @const\n */\n LOCAL = \"LOCAL\";\n\n \n /**\n * value: \"S3\"\n * @const\n */\n S3 = \"S3\";\n\n \n /**\n * value: \"SMB\"\n * @const\n */\n SMB = \"SMB\";\n\n \n /**\n * value: \"CELLS\"\n * @const\n */\n CELLS = \"CELLS\";\n\n \n /**\n * value: \"AZURE\"\n * @const\n */\n AZURE = \"AZURE\";\n\n \n /**\n * value: \"GCS\"\n * @const\n */\n GCS = \"GCS\";\n\n \n /**\n * value: \"B2\"\n * @const\n */\n B2 = \"B2\";\n\n \n /**\n * value: \"MANTA\"\n * @const\n */\n MANTA = \"MANTA\";\n\n \n /**\n * value: \"SIA\"\n * @const\n */\n SIA = \"SIA\";\n\n \n\n /**\n * Returns a ObjectStorageType enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/ObjectStorageType} The enum ObjectStorageType value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"ObjectStorageType.js"} \ No newline at end of file diff --git a/lib/model/ProtobufAny.js b/lib/model/ProtobufAny.js new file mode 100644 index 0000000..d89fe9f --- /dev/null +++ b/lib/model/ProtobufAny.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** + * The ProtobufAny model module. + * @module model/ProtobufAny + * @version 1.0 + */ +var ProtobufAny = /*#__PURE__*/function () { + /** + * Constructs a new ProtobufAny. + * `Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message. Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type. Example 1: Pack and unpack a message in C++. Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... } Example 2: Pack and unpack a message in Java. Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any.Unpack(foo) ... Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := ptypes.MarshalAny(foo) ... foo := &pb.Foo{} if err := ptypes.UnmarshalAny(any, foo); err != nil { ... } The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example \"foo.bar.com/x/y.z\" will yield type name \"y.z\". JSON ==== The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example: package google.profile; message Person { string first_name = 1; string last_name = 2; } { \"@type\": \"type.googleapis.com/google.profile.Person\", \"firstName\": <string>, \"lastName\": <string> } If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]): { \"@type\": \"type.googleapis.com/google.protobuf.Duration\", \"value\": \"1.212s\" } + * @alias module:model/ProtobufAny + * @class + */ + function ProtobufAny() { + _classCallCheck(this, ProtobufAny); + + _defineProperty(this, "type_url", undefined); + + _defineProperty(this, "value", undefined); + } + /** + * Constructs a ProtobufAny from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProtobufAny} obj Optional instance to populate. + * @return {module:model/ProtobufAny} The populated ProtobufAny instance. + */ + + + _createClass(ProtobufAny, [{ + key: "toJSON", + value: + /** + * Overrides standard serialization function + */ + function toJSON() { + // Expand this.value keys to a unique array + return _objectSpread({ + '@type': this.type_url + }, this.value); + } + }], [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ProtobufAny(); + obj.value = {}; + Object.keys(data).forEach(function (k) { + if (k === '@type') { + obj.type_url = data[k]; + } else if (k === 'SubQueries' && data[k].map) { + obj.value[k] = data[k].map(function (d) { + return ProtobufAny.constructFromObject(d); + }); + } else { + obj.value[k] = data[k]; + } + }); + } + + return obj; + } + /** + * A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. + * @member {String} type_url + */ + + }]); + + return ProtobufAny; +}(); + +exports["default"] = ProtobufAny; +//# sourceMappingURL=ProtobufAny.js.map diff --git a/lib/model/ProtobufAny.js.map b/lib/model/ProtobufAny.js.map new file mode 100644 index 0000000..c6823a8 --- /dev/null +++ b/lib/model/ProtobufAny.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ProtobufAny.js"],"names":["ProtobufAny","undefined","type_url","value","data","obj","Object","keys","forEach","k","map","d","constructFromObject"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,W;AACjB;AACJ;AACA;AACA;AACA;AACA;AAEI,yBAAc;AAAA;;AAAA,sCAyCHC,SAzCG;;AAAA,mCA8CNA,SA9CM;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;;AAgCI;AACJ;AACA;AACI,sBAAQ;AACJ;AACA;AACI,iBAAS,KAAKC;AADlB,SAEO,KAAKC,KAFZ;AAIH;;;WAxCD,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIL,WAAJ,EAAb;AAEAK,QAAAA,GAAG,CAACF,KAAJ,GAAY,EAAZ;AACAG,QAAAA,MAAM,CAACC,IAAP,CAAYH,IAAZ,EAAkBI,OAAlB,CAA0B,UAAAC,CAAC,EAAI;AAC3B,cAAGA,CAAC,KAAK,OAAT,EAAkB;AACdJ,YAAAA,GAAG,CAACH,QAAJ,GAAeE,IAAI,CAACK,CAAD,CAAnB;AACH,WAFD,MAEO,IAAIA,CAAC,KAAK,YAAN,IAAsBL,IAAI,CAACK,CAAD,CAAJ,CAAQC,GAAlC,EAAuC;AAC1CL,YAAAA,GAAG,CAACF,KAAJ,CAAUM,CAAV,IAAeL,IAAI,CAACK,CAAD,CAAJ,CAAQC,GAAR,CAAY,UAAAC,CAAC;AAAA,qBAAIX,WAAW,CAACY,mBAAZ,CAAgCD,CAAhC,CAAJ;AAAA,aAAb,CAAf;AACH,WAFM,MAEA;AACHN,YAAAA,GAAG,CAACF,KAAJ,CAAUM,CAAV,IAAeL,IAAI,CAACK,CAAD,CAAnB;AACH;AACJ,SARD;AAUH;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA;AACA","sourcesContent":["/**\n * Pydio Cells Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 1.0\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n * The ProtobufAny model module.\n * @module model/ProtobufAny\n * @version 1.0\n */\nexport default class ProtobufAny {\n /**\n * Constructs a new ProtobufAny.\n * `Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message. Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type. Example 1: Pack and unpack a message in C++. Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... } Example 2: Pack and unpack a message in Java. Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any.Unpack(foo) ... Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := ptypes.MarshalAny(foo) ... foo := &pb.Foo{} if err := ptypes.UnmarshalAny(any, foo); err != nil { ... } The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example \\"foo.bar.com/x/y.z\\" will yield type name \\"y.z\\". JSON ==== The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example: package google.profile; message Person { string first_name = 1; string last_name = 2; } { \\"@type\\": \\"type.googleapis.com/google.profile.Person\\", \\"firstName\\": <string>, \\"lastName\\": <string> } If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]): { \\"@type\\": \\"type.googleapis.com/google.protobuf.Duration\\", \\"value\\": \\"1.212s\\" }\n * @alias module:model/ProtobufAny\n * @class\n */\n\n constructor() {\n\n\n\n\n\n\n\n\n }\n\n /**\n * Constructs a ProtobufAny from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ProtobufAny} obj Optional instance to populate.\n * @return {module:model/ProtobufAny} The populated ProtobufAny instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new ProtobufAny();\n\n obj.value = {};\n Object.keys(data).forEach(k => {\n if(k === '@type') {\n obj.type_url = data[k];\n } else if (k === 'SubQueries' && data[k].map) {\n obj.value[k] = data[k].map(d => ProtobufAny.constructFromObject(d));\n } else {\n obj.value[k] = data[k];\n }\n });\n\n }\n return obj;\n }\n\n /**\n * A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \\\"/\\\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \\\".\\\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics.\n * @member {String} type_url\n */\n type_url = undefined;\n /**\n * Must be a valid serialized protocol buffer of the above specified type.\n * @member {Blob} value\n */\n value = undefined;\n\n\n /**\n * Overrides standard serialization function\n */\n toJSON(){\n // Expand this.value keys to a unique array\n return {\n '@type': this.type_url,\n ...this.value\n };\n }\n\n\n\n\n}\n\n\n"],"file":"ProtobufAny.js"} \ No newline at end of file diff --git a/lib/model/ReportsAuditedWorkspace.js b/lib/model/ReportsAuditedWorkspace.js new file mode 100644 index 0000000..abb4145 --- /dev/null +++ b/lib/model/ReportsAuditedWorkspace.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _IdmRole = _interopRequireDefault(require("./IdmRole")); + +var _IdmUser = _interopRequireDefault(require("./IdmUser")); + +var _IdmWorkspace = _interopRequireDefault(require("./IdmWorkspace")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The ReportsAuditedWorkspace model module. +* @module model/ReportsAuditedWorkspace +* @version 2.0 +*/ +var ReportsAuditedWorkspace = /*#__PURE__*/function () { + /** + * Constructs a new ReportsAuditedWorkspace. + * @alias module:model/ReportsAuditedWorkspace + * @class + */ + function ReportsAuditedWorkspace() { + _classCallCheck(this, ReportsAuditedWorkspace); + + _defineProperty(this, "Workspace", undefined); + + _defineProperty(this, "UsersReadCount", undefined); + + _defineProperty(this, "UsersWriteCount", undefined); + + _defineProperty(this, "OwnerUser", undefined); + + _defineProperty(this, "RolesRead", undefined); + + _defineProperty(this, "RolesWrite", undefined); + + _defineProperty(this, "BrokenLink", undefined); + } + /** + * Constructs a ReportsAuditedWorkspace from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReportsAuditedWorkspace} obj Optional instance to populate. + * @return {module:model/ReportsAuditedWorkspace} The populated ReportsAuditedWorkspace instance. + */ + + + _createClass(ReportsAuditedWorkspace, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ReportsAuditedWorkspace(); + + if (data.hasOwnProperty('Workspace')) { + obj['Workspace'] = _IdmWorkspace["default"].constructFromObject(data['Workspace']); + } + + if (data.hasOwnProperty('UsersReadCount')) { + obj['UsersReadCount'] = _ApiClient["default"].convertToType(data['UsersReadCount'], 'Number'); + } + + if (data.hasOwnProperty('UsersWriteCount')) { + obj['UsersWriteCount'] = _ApiClient["default"].convertToType(data['UsersWriteCount'], 'Number'); + } + + if (data.hasOwnProperty('OwnerUser')) { + obj['OwnerUser'] = _IdmUser["default"].constructFromObject(data['OwnerUser']); + } + + if (data.hasOwnProperty('RolesRead')) { + obj['RolesRead'] = _ApiClient["default"].convertToType(data['RolesRead'], [_IdmRole["default"]]); + } + + if (data.hasOwnProperty('RolesWrite')) { + obj['RolesWrite'] = _ApiClient["default"].convertToType(data['RolesWrite'], [_IdmRole["default"]]); + } + + if (data.hasOwnProperty('BrokenLink')) { + obj['BrokenLink'] = _ApiClient["default"].convertToType(data['BrokenLink'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {module:model/IdmWorkspace} Workspace + */ + + }]); + + return ReportsAuditedWorkspace; +}(); + +exports["default"] = ReportsAuditedWorkspace; +//# sourceMappingURL=ReportsAuditedWorkspace.js.map diff --git a/lib/model/ReportsAuditedWorkspace.js.map b/lib/model/ReportsAuditedWorkspace.js.map new file mode 100644 index 0000000..664a566 --- /dev/null +++ b/lib/model/ReportsAuditedWorkspace.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ReportsAuditedWorkspace.js"],"names":["ReportsAuditedWorkspace","undefined","data","obj","hasOwnProperty","IdmWorkspace","constructFromObject","ApiClient","convertToType","IdmUser","IdmRole"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,uB;AACjB;AACJ;AACA;AACA;AACA;AAEI,qCAAc;AAAA;;AAAA,uCAsDFC,SAtDE;;AAAA,4CA0DGA,SA1DH;;AAAA,6CA8DIA,SA9DJ;;AAAA,uCAkEFA,SAlEE;;AAAA,uCAsEFA,SAtEE;;AAAA,wCA0EDA,SA1EC;;AAAA,wCA8EDA,SA9EC;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,uBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,yBAAaC,mBAAb,CAAiCJ,IAAI,CAAC,WAAD,CAArC,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,gBAApB,CAAJ,EAA2C;AACvCD,UAAAA,GAAG,CAAC,gBAAD,CAAH,GAAwBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,gBAAD,CAA5B,EAAgD,QAAhD,CAAxB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,iBAApB,CAAJ,EAA4C;AACxCD,UAAAA,GAAG,CAAC,iBAAD,CAAH,GAAyBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,iBAAD,CAA5B,EAAiD,QAAjD,CAAzB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBM,oBAAQH,mBAAR,CAA4BJ,IAAI,CAAC,WAAD,CAAhC,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,WAAD,CAA5B,EAA2C,CAACQ,mBAAD,CAA3C,CAAnB;AACH;;AACD,YAAIR,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,YAAD,CAA5B,EAA4C,CAACQ,mBAAD,CAA5C,CAApB;AACH;;AACD,YAAIR,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,YAAD,CAA5B,EAA4C,SAA5C,CAApB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport IdmRole from './IdmRole';\nimport IdmUser from './IdmUser';\nimport IdmWorkspace from './IdmWorkspace';\n\n\n\n\n\n/**\n* The ReportsAuditedWorkspace model module.\n* @module model/ReportsAuditedWorkspace\n* @version 2.0\n*/\nexport default class ReportsAuditedWorkspace {\n /**\n * Constructs a new ReportsAuditedWorkspace.\n * @alias module:model/ReportsAuditedWorkspace\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a ReportsAuditedWorkspace from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ReportsAuditedWorkspace} obj Optional instance to populate.\n * @return {module:model/ReportsAuditedWorkspace} The populated ReportsAuditedWorkspace instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new ReportsAuditedWorkspace();\n\n \n \n \n\n if (data.hasOwnProperty('Workspace')) {\n obj['Workspace'] = IdmWorkspace.constructFromObject(data['Workspace']);\n }\n if (data.hasOwnProperty('UsersReadCount')) {\n obj['UsersReadCount'] = ApiClient.convertToType(data['UsersReadCount'], 'Number');\n }\n if (data.hasOwnProperty('UsersWriteCount')) {\n obj['UsersWriteCount'] = ApiClient.convertToType(data['UsersWriteCount'], 'Number');\n }\n if (data.hasOwnProperty('OwnerUser')) {\n obj['OwnerUser'] = IdmUser.constructFromObject(data['OwnerUser']);\n }\n if (data.hasOwnProperty('RolesRead')) {\n obj['RolesRead'] = ApiClient.convertToType(data['RolesRead'], [IdmRole]);\n }\n if (data.hasOwnProperty('RolesWrite')) {\n obj['RolesWrite'] = ApiClient.convertToType(data['RolesWrite'], [IdmRole]);\n }\n if (data.hasOwnProperty('BrokenLink')) {\n obj['BrokenLink'] = ApiClient.convertToType(data['BrokenLink'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/IdmWorkspace} Workspace\n */\n Workspace = undefined;\n /**\n * @member {Number} UsersReadCount\n */\n UsersReadCount = undefined;\n /**\n * @member {Number} UsersWriteCount\n */\n UsersWriteCount = undefined;\n /**\n * @member {module:model/IdmUser} OwnerUser\n */\n OwnerUser = undefined;\n /**\n * @member {Array.} RolesRead\n */\n RolesRead = undefined;\n /**\n * @member {Array.} RolesWrite\n */\n RolesWrite = undefined;\n /**\n * @member {Boolean} BrokenLink\n */\n BrokenLink = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"ReportsAuditedWorkspace.js"} \ No newline at end of file diff --git a/lib/model/ReportsSharedResource.js b/lib/model/ReportsSharedResource.js new file mode 100644 index 0000000..6df4d26 --- /dev/null +++ b/lib/model/ReportsSharedResource.js @@ -0,0 +1,84 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ReportsAuditedWorkspace = _interopRequireDefault(require("./ReportsAuditedWorkspace")); + +var _TreeNode = _interopRequireDefault(require("./TreeNode")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The ReportsSharedResource model module. +* @module model/ReportsSharedResource +* @version 2.0 +*/ +var ReportsSharedResource = /*#__PURE__*/function () { + /** + * Constructs a new ReportsSharedResource. + * @alias module:model/ReportsSharedResource + * @class + */ + function ReportsSharedResource() { + _classCallCheck(this, ReportsSharedResource); + + _defineProperty(this, "Node", undefined); + + _defineProperty(this, "Workspaces", undefined); + + _defineProperty(this, "ChildrenSharedResources", undefined); + } + /** + * Constructs a ReportsSharedResource from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReportsSharedResource} obj Optional instance to populate. + * @return {module:model/ReportsSharedResource} The populated ReportsSharedResource instance. + */ + + + _createClass(ReportsSharedResource, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ReportsSharedResource(); + + if (data.hasOwnProperty('Node')) { + obj['Node'] = _TreeNode["default"].constructFromObject(data['Node']); + } + + if (data.hasOwnProperty('Workspaces')) { + obj['Workspaces'] = _ApiClient["default"].convertToType(data['Workspaces'], [_ReportsAuditedWorkspace["default"]]); + } + + if (data.hasOwnProperty('ChildrenSharedResources')) { + obj['ChildrenSharedResources'] = _ApiClient["default"].convertToType(data['ChildrenSharedResources'], 'Number'); + } + } + + return obj; + } + /** + * @member {module:model/TreeNode} Node + */ + + }]); + + return ReportsSharedResource; +}(); + +exports["default"] = ReportsSharedResource; +//# sourceMappingURL=ReportsSharedResource.js.map diff --git a/lib/model/ReportsSharedResource.js.map b/lib/model/ReportsSharedResource.js.map new file mode 100644 index 0000000..fce5b94 --- /dev/null +++ b/lib/model/ReportsSharedResource.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ReportsSharedResource.js"],"names":["ReportsSharedResource","undefined","data","obj","hasOwnProperty","TreeNode","constructFromObject","ApiClient","convertToType","ReportsAuditedWorkspace"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,qB;AACjB;AACJ;AACA;AACA;AACA;AAEI,mCAAc;AAAA;;AAAA,kCA0CPC,SA1CO;;AAAA,wCA8CDA,SA9CC;;AAAA,qDAkDYA,SAlDZ;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,qBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,qBAASC,mBAAT,CAA6BJ,IAAI,CAAC,MAAD,CAAjC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,YAAD,CAA5B,EAA4C,CAACO,mCAAD,CAA5C,CAApB;AACH;;AACD,YAAIP,IAAI,CAACE,cAAL,CAAoB,yBAApB,CAAJ,EAAoD;AAChDD,UAAAA,GAAG,CAAC,yBAAD,CAAH,GAAiCI,sBAAUC,aAAV,CAAwBN,IAAI,CAAC,yBAAD,CAA5B,EAAyD,QAAzD,CAAjC;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport ReportsAuditedWorkspace from './ReportsAuditedWorkspace';\nimport TreeNode from './TreeNode';\n\n\n\n\n\n/**\n* The ReportsSharedResource model module.\n* @module model/ReportsSharedResource\n* @version 2.0\n*/\nexport default class ReportsSharedResource {\n /**\n * Constructs a new ReportsSharedResource.\n * @alias module:model/ReportsSharedResource\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a ReportsSharedResource from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ReportsSharedResource} obj Optional instance to populate.\n * @return {module:model/ReportsSharedResource} The populated ReportsSharedResource instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new ReportsSharedResource();\n\n \n \n \n\n if (data.hasOwnProperty('Node')) {\n obj['Node'] = TreeNode.constructFromObject(data['Node']);\n }\n if (data.hasOwnProperty('Workspaces')) {\n obj['Workspaces'] = ApiClient.convertToType(data['Workspaces'], [ReportsAuditedWorkspace]);\n }\n if (data.hasOwnProperty('ChildrenSharedResources')) {\n obj['ChildrenSharedResources'] = ApiClient.convertToType(data['ChildrenSharedResources'], 'Number');\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/TreeNode} Node\n */\n Node = undefined;\n /**\n * @member {Array.} Workspaces\n */\n Workspaces = undefined;\n /**\n * @member {Number} ChildrenSharedResources\n */\n ChildrenSharedResources = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"ReportsSharedResource.js"} \ No newline at end of file diff --git a/lib/model/ReportsSharedResourceShareType.js b/lib/model/ReportsSharedResourceShareType.js new file mode 100644 index 0000000..0b98cf2 --- /dev/null +++ b/lib/model/ReportsSharedResourceShareType.js @@ -0,0 +1,55 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class ReportsSharedResourceShareType. +* @enum {} +* @readonly +*/ +var ReportsSharedResourceShareType = /*#__PURE__*/function () { + function ReportsSharedResourceShareType() { + _classCallCheck(this, ReportsSharedResourceShareType); + + _defineProperty(this, "ANY", "ANY"); + + _defineProperty(this, "WORKSPACE", "WORKSPACE"); + + _defineProperty(this, "CELL", "CELL"); + + _defineProperty(this, "LINK", "LINK"); + } + + _createClass(ReportsSharedResourceShareType, null, [{ + key: "constructFromObject", + value: + /** + * Returns a ReportsSharedResourceShareType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ReportsSharedResourceShareType} The enum ReportsSharedResourceShareType value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return ReportsSharedResourceShareType; +}(); + +exports["default"] = ReportsSharedResourceShareType; +//# sourceMappingURL=ReportsSharedResourceShareType.js.map diff --git a/lib/model/ReportsSharedResourceShareType.js.map b/lib/model/ReportsSharedResourceShareType.js.map new file mode 100644 index 0000000..0915d05 --- /dev/null +++ b/lib/model/ReportsSharedResourceShareType.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ReportsSharedResourceShareType.js"],"names":["ReportsSharedResourceShareType","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,8B;;;;iCAMP,K;;uCAOM,W;;kCAOL,M;;kCAOA,M;;;;;;AAIX;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class ReportsSharedResourceShareType.\n* @enum {}\n* @readonly\n*/\nexport default class ReportsSharedResourceShareType {\n \n /**\n * value: \"ANY\"\n * @const\n */\n ANY = \"ANY\";\n\n \n /**\n * value: \"WORKSPACE\"\n * @const\n */\n WORKSPACE = \"WORKSPACE\";\n\n \n /**\n * value: \"CELL\"\n * @const\n */\n CELL = \"CELL\";\n\n \n /**\n * value: \"LINK\"\n * @const\n */\n LINK = \"LINK\";\n\n \n\n /**\n * Returns a ReportsSharedResourceShareType enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/ReportsSharedResourceShareType} The enum ReportsSharedResourceShareType value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"ReportsSharedResourceShareType.js"} \ No newline at end of file diff --git a/lib/model/ReportsSharedResourcesRequest.js b/lib/model/ReportsSharedResourcesRequest.js new file mode 100644 index 0000000..d176d04 --- /dev/null +++ b/lib/model/ReportsSharedResourcesRequest.js @@ -0,0 +1,144 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ReportsSharedResourceShareType = _interopRequireDefault(require("./ReportsSharedResourceShareType")); + +var _TreeNodeType = _interopRequireDefault(require("./TreeNodeType")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The ReportsSharedResourcesRequest model module. +* @module model/ReportsSharedResourcesRequest +* @version 2.0 +*/ +var ReportsSharedResourcesRequest = /*#__PURE__*/function () { + /** + * Constructs a new ReportsSharedResourcesRequest. + * @alias module:model/ReportsSharedResourcesRequest + * @class + */ + function ReportsSharedResourcesRequest() { + _classCallCheck(this, ReportsSharedResourcesRequest); + + _defineProperty(this, "RootPath", undefined); + + _defineProperty(this, "ShareType", undefined); + + _defineProperty(this, "OwnerUUID", undefined); + + _defineProperty(this, "UsersReadCountMin", undefined); + + _defineProperty(this, "UsersReadCountMax", undefined); + + _defineProperty(this, "LastUpdatedBefore", undefined); + + _defineProperty(this, "LastUpdatedSince", undefined); + + _defineProperty(this, "RolesReadUUIDs", undefined); + + _defineProperty(this, "RolesReadAND", undefined); + + _defineProperty(this, "NodeType", undefined); + + _defineProperty(this, "NodeSizeMin", undefined); + + _defineProperty(this, "Offset", undefined); + + _defineProperty(this, "Limit", undefined); + } + /** + * Constructs a ReportsSharedResourcesRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReportsSharedResourcesRequest} obj Optional instance to populate. + * @return {module:model/ReportsSharedResourcesRequest} The populated ReportsSharedResourcesRequest instance. + */ + + + _createClass(ReportsSharedResourcesRequest, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ReportsSharedResourcesRequest(); + + if (data.hasOwnProperty('RootPath')) { + obj['RootPath'] = _ApiClient["default"].convertToType(data['RootPath'], 'String'); + } + + if (data.hasOwnProperty('ShareType')) { + obj['ShareType'] = _ReportsSharedResourceShareType["default"].constructFromObject(data['ShareType']); + } + + if (data.hasOwnProperty('OwnerUUID')) { + obj['OwnerUUID'] = _ApiClient["default"].convertToType(data['OwnerUUID'], 'String'); + } + + if (data.hasOwnProperty('UsersReadCountMin')) { + obj['UsersReadCountMin'] = _ApiClient["default"].convertToType(data['UsersReadCountMin'], 'Number'); + } + + if (data.hasOwnProperty('UsersReadCountMax')) { + obj['UsersReadCountMax'] = _ApiClient["default"].convertToType(data['UsersReadCountMax'], 'Number'); + } + + if (data.hasOwnProperty('LastUpdatedBefore')) { + obj['LastUpdatedBefore'] = _ApiClient["default"].convertToType(data['LastUpdatedBefore'], 'Number'); + } + + if (data.hasOwnProperty('LastUpdatedSince')) { + obj['LastUpdatedSince'] = _ApiClient["default"].convertToType(data['LastUpdatedSince'], 'Number'); + } + + if (data.hasOwnProperty('RolesReadUUIDs')) { + obj['RolesReadUUIDs'] = _ApiClient["default"].convertToType(data['RolesReadUUIDs'], ['String']); + } + + if (data.hasOwnProperty('RolesReadAND')) { + obj['RolesReadAND'] = _ApiClient["default"].convertToType(data['RolesReadAND'], 'Boolean'); + } + + if (data.hasOwnProperty('NodeType')) { + obj['NodeType'] = _TreeNodeType["default"].constructFromObject(data['NodeType']); + } + + if (data.hasOwnProperty('NodeSizeMin')) { + obj['NodeSizeMin'] = _ApiClient["default"].convertToType(data['NodeSizeMin'], 'Number'); + } + + if (data.hasOwnProperty('Offset')) { + obj['Offset'] = _ApiClient["default"].convertToType(data['Offset'], 'Number'); + } + + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = _ApiClient["default"].convertToType(data['Limit'], 'Number'); + } + } + + return obj; + } + /** + * @member {String} RootPath + */ + + }]); + + return ReportsSharedResourcesRequest; +}(); + +exports["default"] = ReportsSharedResourcesRequest; +//# sourceMappingURL=ReportsSharedResourcesRequest.js.map diff --git a/lib/model/ReportsSharedResourcesRequest.js.map b/lib/model/ReportsSharedResourcesRequest.js.map new file mode 100644 index 0000000..32791ee --- /dev/null +++ b/lib/model/ReportsSharedResourcesRequest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ReportsSharedResourcesRequest.js"],"names":["ReportsSharedResourcesRequest","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","ReportsSharedResourceShareType","constructFromObject","TreeNodeType"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport ReportsSharedResourceShareType from './ReportsSharedResourceShareType';\nimport TreeNodeType from './TreeNodeType';\n\n\n\n\n\n/**\n* The ReportsSharedResourcesRequest model module.\n* @module model/ReportsSharedResourcesRequest\n* @version 2.0\n*/\nexport default class ReportsSharedResourcesRequest {\n /**\n * Constructs a new ReportsSharedResourcesRequest.\n * @alias module:model/ReportsSharedResourcesRequest\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a ReportsSharedResourcesRequest from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ReportsSharedResourcesRequest} obj Optional instance to populate.\n * @return {module:model/ReportsSharedResourcesRequest} The populated ReportsSharedResourcesRequest instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new ReportsSharedResourcesRequest();\n\n \n \n \n\n if (data.hasOwnProperty('RootPath')) {\n obj['RootPath'] = ApiClient.convertToType(data['RootPath'], 'String');\n }\n if (data.hasOwnProperty('ShareType')) {\n obj['ShareType'] = ReportsSharedResourceShareType.constructFromObject(data['ShareType']);\n }\n if (data.hasOwnProperty('OwnerUUID')) {\n obj['OwnerUUID'] = ApiClient.convertToType(data['OwnerUUID'], 'String');\n }\n if (data.hasOwnProperty('UsersReadCountMin')) {\n obj['UsersReadCountMin'] = ApiClient.convertToType(data['UsersReadCountMin'], 'Number');\n }\n if (data.hasOwnProperty('UsersReadCountMax')) {\n obj['UsersReadCountMax'] = ApiClient.convertToType(data['UsersReadCountMax'], 'Number');\n }\n if (data.hasOwnProperty('LastUpdatedBefore')) {\n obj['LastUpdatedBefore'] = ApiClient.convertToType(data['LastUpdatedBefore'], 'Number');\n }\n if (data.hasOwnProperty('LastUpdatedSince')) {\n obj['LastUpdatedSince'] = ApiClient.convertToType(data['LastUpdatedSince'], 'Number');\n }\n if (data.hasOwnProperty('RolesReadUUIDs')) {\n obj['RolesReadUUIDs'] = ApiClient.convertToType(data['RolesReadUUIDs'], ['String']);\n }\n if (data.hasOwnProperty('RolesReadAND')) {\n obj['RolesReadAND'] = ApiClient.convertToType(data['RolesReadAND'], 'Boolean');\n }\n if (data.hasOwnProperty('NodeType')) {\n obj['NodeType'] = TreeNodeType.constructFromObject(data['NodeType']);\n }\n if (data.hasOwnProperty('NodeSizeMin')) {\n obj['NodeSizeMin'] = ApiClient.convertToType(data['NodeSizeMin'], 'Number');\n }\n if (data.hasOwnProperty('Offset')) {\n obj['Offset'] = ApiClient.convertToType(data['Offset'], 'Number');\n }\n if (data.hasOwnProperty('Limit')) {\n obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} RootPath\n */\n RootPath = undefined;\n /**\n * @member {module:model/ReportsSharedResourceShareType} ShareType\n */\n ShareType = undefined;\n /**\n * @member {String} OwnerUUID\n */\n OwnerUUID = undefined;\n /**\n * @member {Number} UsersReadCountMin\n */\n UsersReadCountMin = undefined;\n /**\n * @member {Number} UsersReadCountMax\n */\n UsersReadCountMax = undefined;\n /**\n * @member {Number} LastUpdatedBefore\n */\n LastUpdatedBefore = undefined;\n /**\n * @member {Number} LastUpdatedSince\n */\n LastUpdatedSince = undefined;\n /**\n * @member {Array.} RolesReadUUIDs\n */\n RolesReadUUIDs = undefined;\n /**\n * @member {Boolean} RolesReadAND\n */\n RolesReadAND = undefined;\n /**\n * @member {module:model/TreeNodeType} NodeType\n */\n NodeType = undefined;\n /**\n * @member {Number} NodeSizeMin\n */\n NodeSizeMin = undefined;\n /**\n * @member {Number} Offset\n */\n Offset = undefined;\n /**\n * @member {Number} Limit\n */\n Limit = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"ReportsSharedResourcesRequest.js"} \ No newline at end of file diff --git a/lib/model/ReportsSharedResourcesResponse.js b/lib/model/ReportsSharedResourcesResponse.js new file mode 100644 index 0000000..44c0045 --- /dev/null +++ b/lib/model/ReportsSharedResourcesResponse.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ReportsSharedResource = _interopRequireDefault(require("./ReportsSharedResource")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The ReportsSharedResourcesResponse model module. +* @module model/ReportsSharedResourcesResponse +* @version 2.0 +*/ +var ReportsSharedResourcesResponse = /*#__PURE__*/function () { + /** + * Constructs a new ReportsSharedResourcesResponse. + * @alias module:model/ReportsSharedResourcesResponse + * @class + */ + function ReportsSharedResourcesResponse() { + _classCallCheck(this, ReportsSharedResourcesResponse); + + _defineProperty(this, "Resources", undefined); + + _defineProperty(this, "Offset", undefined); + + _defineProperty(this, "Limit", undefined); + + _defineProperty(this, "Total", undefined); + + _defineProperty(this, "Facets", undefined); + } + /** + * Constructs a ReportsSharedResourcesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReportsSharedResourcesResponse} obj Optional instance to populate. + * @return {module:model/ReportsSharedResourcesResponse} The populated ReportsSharedResourcesResponse instance. + */ + + + _createClass(ReportsSharedResourcesResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ReportsSharedResourcesResponse(); + + if (data.hasOwnProperty('Resources')) { + obj['Resources'] = _ApiClient["default"].convertToType(data['Resources'], [_ReportsSharedResource["default"]]); + } + + if (data.hasOwnProperty('Offset')) { + obj['Offset'] = _ApiClient["default"].convertToType(data['Offset'], 'Number'); + } + + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = _ApiClient["default"].convertToType(data['Limit'], 'Number'); + } + + if (data.hasOwnProperty('Total')) { + obj['Total'] = _ApiClient["default"].convertToType(data['Total'], 'Number'); + } + + if (data.hasOwnProperty('Facets')) { + obj['Facets'] = _ApiClient["default"].convertToType(data['Facets'], { + 'String': 'Number' + }); + } + } + + return obj; + } + /** + * @member {Array.} Resources + */ + + }]); + + return ReportsSharedResourcesResponse; +}(); + +exports["default"] = ReportsSharedResourcesResponse; +//# sourceMappingURL=ReportsSharedResourcesResponse.js.map diff --git a/lib/model/ReportsSharedResourcesResponse.js.map b/lib/model/ReportsSharedResourcesResponse.js.map new file mode 100644 index 0000000..76ce1bc --- /dev/null +++ b/lib/model/ReportsSharedResourcesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ReportsSharedResourcesResponse.js"],"names":["ReportsSharedResourcesResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","ReportsSharedResource"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,8B;AACjB;AACJ;AACA;AACA;AACA;AAEI,4CAAc;AAAA;;AAAA,uCAgDFC,SAhDE;;AAAA,oCAoDLA,SApDK;;AAAA,mCAwDNA,SAxDM;;AAAA,mCA4DNA,SA5DM;;AAAA,oCAgELA,SAhEK;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,8BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,CAACK,iCAAD,CAA3C,CAAnB;AACH;;AACD,YAAIL,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC;AAAC,sBAAU;AAAX,WAAxC,CAAhB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport ReportsSharedResource from './ReportsSharedResource';\n\n\n\n\n\n/**\n* The ReportsSharedResourcesResponse model module.\n* @module model/ReportsSharedResourcesResponse\n* @version 2.0\n*/\nexport default class ReportsSharedResourcesResponse {\n /**\n * Constructs a new ReportsSharedResourcesResponse.\n * @alias module:model/ReportsSharedResourcesResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a ReportsSharedResourcesResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ReportsSharedResourcesResponse} obj Optional instance to populate.\n * @return {module:model/ReportsSharedResourcesResponse} The populated ReportsSharedResourcesResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new ReportsSharedResourcesResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Resources')) {\n obj['Resources'] = ApiClient.convertToType(data['Resources'], [ReportsSharedResource]);\n }\n if (data.hasOwnProperty('Offset')) {\n obj['Offset'] = ApiClient.convertToType(data['Offset'], 'Number');\n }\n if (data.hasOwnProperty('Limit')) {\n obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number');\n }\n if (data.hasOwnProperty('Total')) {\n obj['Total'] = ApiClient.convertToType(data['Total'], 'Number');\n }\n if (data.hasOwnProperty('Facets')) {\n obj['Facets'] = ApiClient.convertToType(data['Facets'], {'String': 'Number'});\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Resources\n */\n Resources = undefined;\n /**\n * @member {Number} Offset\n */\n Offset = undefined;\n /**\n * @member {Number} Limit\n */\n Limit = undefined;\n /**\n * @member {Number} Total\n */\n Total = undefined;\n /**\n * @member {Object.} Facets\n */\n Facets = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"ReportsSharedResourcesResponse.js"} \ No newline at end of file diff --git a/lib/model/RestDeleteResponse.js b/lib/model/RestDeleteResponse.js new file mode 100644 index 0000000..2d3fe06 --- /dev/null +++ b/lib/model/RestDeleteResponse.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The RestDeleteResponse model module. +* @module model/RestDeleteResponse +* @version 2.0 +*/ +var RestDeleteResponse = /*#__PURE__*/function () { + /** + * Constructs a new RestDeleteResponse. + * @alias module:model/RestDeleteResponse + * @class + */ + function RestDeleteResponse() { + _classCallCheck(this, RestDeleteResponse); + + _defineProperty(this, "Success", undefined); + + _defineProperty(this, "NumRows", undefined); + } + /** + * Constructs a RestDeleteResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestDeleteResponse} obj Optional instance to populate. + * @return {module:model/RestDeleteResponse} The populated RestDeleteResponse instance. + */ + + + _createClass(RestDeleteResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RestDeleteResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + + if (data.hasOwnProperty('NumRows')) { + obj['NumRows'] = _ApiClient["default"].convertToType(data['NumRows'], 'String'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return RestDeleteResponse; +}(); + +exports["default"] = RestDeleteResponse; +//# sourceMappingURL=RestDeleteResponse.js.map diff --git a/lib/model/RestDeleteResponse.js.map b/lib/model/RestDeleteResponse.js.map new file mode 100644 index 0000000..69f6b0d --- /dev/null +++ b/lib/model/RestDeleteResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/RestDeleteResponse.js"],"names":["RestDeleteResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,kB;AACjB;AACJ;AACA;AACA;AACA;AAEI,gCAAc;AAAA;;AAAA,qCAuCJC,SAvCI;;AAAA,qCA2CJA,SA3CI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,kBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,QAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The RestDeleteResponse model module.\n* @module model/RestDeleteResponse\n* @version 2.0\n*/\nexport default class RestDeleteResponse {\n /**\n * Constructs a new RestDeleteResponse.\n * @alias module:model/RestDeleteResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a RestDeleteResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/RestDeleteResponse} obj Optional instance to populate.\n * @return {module:model/RestDeleteResponse} The populated RestDeleteResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new RestDeleteResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n if (data.hasOwnProperty('NumRows')) {\n obj['NumRows'] = ApiClient.convertToType(data['NumRows'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n /**\n * @member {String} NumRows\n */\n NumRows = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"RestDeleteResponse.js"} \ No newline at end of file diff --git a/lib/model/RestError.js b/lib/model/RestError.js new file mode 100644 index 0000000..1f765c4 --- /dev/null +++ b/lib/model/RestError.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The RestError model module. +* @module model/RestError +* @version 2.0 +*/ +var RestError = /*#__PURE__*/function () { + /** + * Constructs a new RestError. + * @alias module:model/RestError + * @class + */ + function RestError() { + _classCallCheck(this, RestError); + + _defineProperty(this, "Code", undefined); + + _defineProperty(this, "Title", undefined); + + _defineProperty(this, "Detail", undefined); + + _defineProperty(this, "Source", undefined); + + _defineProperty(this, "Meta", undefined); + } + /** + * Constructs a RestError from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestError} obj Optional instance to populate. + * @return {module:model/RestError} The populated RestError instance. + */ + + + _createClass(RestError, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RestError(); + + if (data.hasOwnProperty('Code')) { + obj['Code'] = _ApiClient["default"].convertToType(data['Code'], 'String'); + } + + if (data.hasOwnProperty('Title')) { + obj['Title'] = _ApiClient["default"].convertToType(data['Title'], 'String'); + } + + if (data.hasOwnProperty('Detail')) { + obj['Detail'] = _ApiClient["default"].convertToType(data['Detail'], 'String'); + } + + if (data.hasOwnProperty('Source')) { + obj['Source'] = _ApiClient["default"].convertToType(data['Source'], 'String'); + } + + if (data.hasOwnProperty('Meta')) { + obj['Meta'] = _ApiClient["default"].convertToType(data['Meta'], { + 'String': 'String' + }); + } + } + + return obj; + } + /** + * @member {String} Code + */ + + }]); + + return RestError; +}(); + +exports["default"] = RestError; +//# sourceMappingURL=RestError.js.map diff --git a/lib/model/RestError.js.map b/lib/model/RestError.js.map new file mode 100644 index 0000000..6abc9ae --- /dev/null +++ b/lib/model/RestError.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/RestError.js"],"names":["RestError","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,S;AACjB;AACJ;AACA;AACA;AACA;AAEI,uBAAc;AAAA;;AAAA,kCAgDPC,SAhDO;;AAAA,mCAoDNA,SApDM;;AAAA,oCAwDLA,SAxDK;;AAAA,oCA4DLA,SA5DK;;AAAA,kCAgEPA,SAhEO;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,SAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC;AAAC,sBAAU;AAAX,WAAtC,CAAd;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The RestError model module.\n* @module model/RestError\n* @version 2.0\n*/\nexport default class RestError {\n /**\n * Constructs a new RestError.\n * @alias module:model/RestError\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a RestError from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/RestError} obj Optional instance to populate.\n * @return {module:model/RestError} The populated RestError instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new RestError();\n\n \n \n \n\n if (data.hasOwnProperty('Code')) {\n obj['Code'] = ApiClient.convertToType(data['Code'], 'String');\n }\n if (data.hasOwnProperty('Title')) {\n obj['Title'] = ApiClient.convertToType(data['Title'], 'String');\n }\n if (data.hasOwnProperty('Detail')) {\n obj['Detail'] = ApiClient.convertToType(data['Detail'], 'String');\n }\n if (data.hasOwnProperty('Source')) {\n obj['Source'] = ApiClient.convertToType(data['Source'], 'String');\n }\n if (data.hasOwnProperty('Meta')) {\n obj['Meta'] = ApiClient.convertToType(data['Meta'], {'String': 'String'});\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Code\n */\n Code = undefined;\n /**\n * @member {String} Title\n */\n Title = undefined;\n /**\n * @member {String} Detail\n */\n Detail = undefined;\n /**\n * @member {String} Source\n */\n Source = undefined;\n /**\n * @member {Object.} Meta\n */\n Meta = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"RestError.js"} \ No newline at end of file diff --git a/lib/model/RestLogMessageCollection.js b/lib/model/RestLogMessageCollection.js new file mode 100644 index 0000000..50ba474 --- /dev/null +++ b/lib/model/RestLogMessageCollection.js @@ -0,0 +1,70 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _LogLogMessage = _interopRequireDefault(require("./LogLogMessage")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The RestLogMessageCollection model module. +* @module model/RestLogMessageCollection +* @version 2.0 +*/ +var RestLogMessageCollection = /*#__PURE__*/function () { + /** + * Constructs a new RestLogMessageCollection. + * @alias module:model/RestLogMessageCollection + * @class + */ + function RestLogMessageCollection() { + _classCallCheck(this, RestLogMessageCollection); + + _defineProperty(this, "Logs", undefined); + } + /** + * Constructs a RestLogMessageCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestLogMessageCollection} obj Optional instance to populate. + * @return {module:model/RestLogMessageCollection} The populated RestLogMessageCollection instance. + */ + + + _createClass(RestLogMessageCollection, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RestLogMessageCollection(); + + if (data.hasOwnProperty('Logs')) { + obj['Logs'] = _ApiClient["default"].convertToType(data['Logs'], [_LogLogMessage["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} Logs + */ + + }]); + + return RestLogMessageCollection; +}(); + +exports["default"] = RestLogMessageCollection; +//# sourceMappingURL=RestLogMessageCollection.js.map diff --git a/lib/model/RestLogMessageCollection.js.map b/lib/model/RestLogMessageCollection.js.map new file mode 100644 index 0000000..725cf93 --- /dev/null +++ b/lib/model/RestLogMessageCollection.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/RestLogMessageCollection.js"],"names":["RestLogMessageCollection","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","LogLogMessage"],"mappings":";;;;;;;AAcA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,wB;AACjB;AACJ;AACA;AACA;AACA;AAEI,sCAAc;AAAA;;AAAA,kCAoCPC,SApCO;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,wBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,CAACK,yBAAD,CAAtC,CAAd;AACH;AACJ;;AACD,aAAOJ,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport LogLogMessage from './LogLogMessage';\n\n\n\n\n\n/**\n* The RestLogMessageCollection model module.\n* @module model/RestLogMessageCollection\n* @version 2.0\n*/\nexport default class RestLogMessageCollection {\n /**\n * Constructs a new RestLogMessageCollection.\n * @alias module:model/RestLogMessageCollection\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a RestLogMessageCollection from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/RestLogMessageCollection} obj Optional instance to populate.\n * @return {module:model/RestLogMessageCollection} The populated RestLogMessageCollection instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new RestLogMessageCollection();\n\n \n \n \n\n if (data.hasOwnProperty('Logs')) {\n obj['Logs'] = ApiClient.convertToType(data['Logs'], [LogLogMessage]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Logs\n */\n Logs = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"RestLogMessageCollection.js"} \ No newline at end of file diff --git a/lib/model/RestRevokeResponse.js b/lib/model/RestRevokeResponse.js new file mode 100644 index 0000000..69bb0f2 --- /dev/null +++ b/lib/model/RestRevokeResponse.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The RestRevokeResponse model module. +* @module model/RestRevokeResponse +* @version 2.0 +*/ +var RestRevokeResponse = /*#__PURE__*/function () { + /** + * Constructs a new RestRevokeResponse. + * @alias module:model/RestRevokeResponse + * @class + */ + function RestRevokeResponse() { + _classCallCheck(this, RestRevokeResponse); + + _defineProperty(this, "Success", undefined); + + _defineProperty(this, "Message", undefined); + } + /** + * Constructs a RestRevokeResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestRevokeResponse} obj Optional instance to populate. + * @return {module:model/RestRevokeResponse} The populated RestRevokeResponse instance. + */ + + + _createClass(RestRevokeResponse, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RestRevokeResponse(); + + if (data.hasOwnProperty('Success')) { + obj['Success'] = _ApiClient["default"].convertToType(data['Success'], 'Boolean'); + } + + if (data.hasOwnProperty('Message')) { + obj['Message'] = _ApiClient["default"].convertToType(data['Message'], 'String'); + } + } + + return obj; + } + /** + * @member {Boolean} Success + */ + + }]); + + return RestRevokeResponse; +}(); + +exports["default"] = RestRevokeResponse; +//# sourceMappingURL=RestRevokeResponse.js.map diff --git a/lib/model/RestRevokeResponse.js.map b/lib/model/RestRevokeResponse.js.map new file mode 100644 index 0000000..004a490 --- /dev/null +++ b/lib/model/RestRevokeResponse.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/RestRevokeResponse.js"],"names":["RestRevokeResponse","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,kB;AACjB;AACJ;AACA;AACA;AACA;AAEI,gCAAc;AAAA;;AAAA,qCAuCJC,SAvCI;;AAAA,qCA2CJA,SA3CI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,kBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,SAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,QAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The RestRevokeResponse model module.\n* @module model/RestRevokeResponse\n* @version 2.0\n*/\nexport default class RestRevokeResponse {\n /**\n * Constructs a new RestRevokeResponse.\n * @alias module:model/RestRevokeResponse\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a RestRevokeResponse from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/RestRevokeResponse} obj Optional instance to populate.\n * @return {module:model/RestRevokeResponse} The populated RestRevokeResponse instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new RestRevokeResponse();\n\n \n \n \n\n if (data.hasOwnProperty('Success')) {\n obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean');\n }\n if (data.hasOwnProperty('Message')) {\n obj['Message'] = ApiClient.convertToType(data['Message'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {Boolean} Success\n */\n Success = undefined;\n /**\n * @member {String} Message\n */\n Message = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"RestRevokeResponse.js"} \ No newline at end of file diff --git a/lib/model/RestTimeRangeResultCollection.js b/lib/model/RestTimeRangeResultCollection.js new file mode 100644 index 0000000..50cd648 --- /dev/null +++ b/lib/model/RestTimeRangeResultCollection.js @@ -0,0 +1,78 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _LogTimeRangeCursor = _interopRequireDefault(require("./LogTimeRangeCursor")); + +var _LogTimeRangeResult = _interopRequireDefault(require("./LogTimeRangeResult")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The RestTimeRangeResultCollection model module. +* @module model/RestTimeRangeResultCollection +* @version 2.0 +*/ +var RestTimeRangeResultCollection = /*#__PURE__*/function () { + /** + * Constructs a new RestTimeRangeResultCollection. + * @alias module:model/RestTimeRangeResultCollection + * @class + */ + function RestTimeRangeResultCollection() { + _classCallCheck(this, RestTimeRangeResultCollection); + + _defineProperty(this, "Results", undefined); + + _defineProperty(this, "Links", undefined); + } + /** + * Constructs a RestTimeRangeResultCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestTimeRangeResultCollection} obj Optional instance to populate. + * @return {module:model/RestTimeRangeResultCollection} The populated RestTimeRangeResultCollection instance. + */ + + + _createClass(RestTimeRangeResultCollection, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RestTimeRangeResultCollection(); + + if (data.hasOwnProperty('Results')) { + obj['Results'] = _ApiClient["default"].convertToType(data['Results'], [_LogTimeRangeResult["default"]]); + } + + if (data.hasOwnProperty('Links')) { + obj['Links'] = _ApiClient["default"].convertToType(data['Links'], [_LogTimeRangeCursor["default"]]); + } + } + + return obj; + } + /** + * @member {Array.} Results + */ + + }]); + + return RestTimeRangeResultCollection; +}(); + +exports["default"] = RestTimeRangeResultCollection; +//# sourceMappingURL=RestTimeRangeResultCollection.js.map diff --git a/lib/model/RestTimeRangeResultCollection.js.map b/lib/model/RestTimeRangeResultCollection.js.map new file mode 100644 index 0000000..50ee217 --- /dev/null +++ b/lib/model/RestTimeRangeResultCollection.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/RestTimeRangeResultCollection.js"],"names":["RestTimeRangeResultCollection","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","LogTimeRangeResult","LogTimeRangeCursor"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,6B;AACjB;AACJ;AACA;AACA;AACA;AAEI,2CAAc;AAAA;;AAAA,qCAuCJC,SAvCI;;AAAA,mCA2CNA,SA3CM;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,6BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,CAACK,8BAAD,CAAzC,CAAjB;AACH;;AACD,YAAIL,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,CAACM,8BAAD,CAAvC,CAAf;AACH;AACJ;;AACD,aAAOL,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport LogTimeRangeCursor from './LogTimeRangeCursor';\nimport LogTimeRangeResult from './LogTimeRangeResult';\n\n\n\n\n\n/**\n* The RestTimeRangeResultCollection model module.\n* @module model/RestTimeRangeResultCollection\n* @version 2.0\n*/\nexport default class RestTimeRangeResultCollection {\n /**\n * Constructs a new RestTimeRangeResultCollection.\n * @alias module:model/RestTimeRangeResultCollection\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a RestTimeRangeResultCollection from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/RestTimeRangeResultCollection} obj Optional instance to populate.\n * @return {module:model/RestTimeRangeResultCollection} The populated RestTimeRangeResultCollection instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new RestTimeRangeResultCollection();\n\n \n \n \n\n if (data.hasOwnProperty('Results')) {\n obj['Results'] = ApiClient.convertToType(data['Results'], [LogTimeRangeResult]);\n }\n if (data.hasOwnProperty('Links')) {\n obj['Links'] = ApiClient.convertToType(data['Links'], [LogTimeRangeCursor]);\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Results\n */\n Results = undefined;\n /**\n * @member {Array.} Links\n */\n Links = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"RestTimeRangeResultCollection.js"} \ No newline at end of file diff --git a/lib/model/ServiceOperationType.js b/lib/model/ServiceOperationType.js new file mode 100644 index 0000000..a1594fc --- /dev/null +++ b/lib/model/ServiceOperationType.js @@ -0,0 +1,51 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class ServiceOperationType. +* @enum {} +* @readonly +*/ +var ServiceOperationType = /*#__PURE__*/function () { + function ServiceOperationType() { + _classCallCheck(this, ServiceOperationType); + + _defineProperty(this, "OR", "OR"); + + _defineProperty(this, "AND", "AND"); + } + + _createClass(ServiceOperationType, null, [{ + key: "constructFromObject", + value: + /** + * Returns a ServiceOperationType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ServiceOperationType} The enum ServiceOperationType value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return ServiceOperationType; +}(); + +exports["default"] = ServiceOperationType; +//# sourceMappingURL=ServiceOperationType.js.map diff --git a/lib/model/ServiceOperationType.js.map b/lib/model/ServiceOperationType.js.map new file mode 100644 index 0000000..dd83726 --- /dev/null +++ b/lib/model/ServiceOperationType.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ServiceOperationType.js"],"names":["ServiceOperationType","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,oB;;;;gCAMR,I;;iCAOC,K;;;;;;AAIV;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class ServiceOperationType.\n* @enum {}\n* @readonly\n*/\nexport default class ServiceOperationType {\n \n /**\n * value: \"OR\"\n * @const\n */\n OR = \"OR\";\n\n \n /**\n * value: \"AND\"\n * @const\n */\n AND = \"AND\";\n\n \n\n /**\n * Returns a ServiceOperationType enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/ServiceOperationType} The enum ServiceOperationType value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"ServiceOperationType.js"} \ No newline at end of file diff --git a/lib/model/ServiceQuery.js b/lib/model/ServiceQuery.js new file mode 100644 index 0000000..f200a31 --- /dev/null +++ b/lib/model/ServiceQuery.js @@ -0,0 +1,104 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ProtobufAny = _interopRequireDefault(require("./ProtobufAny")); + +var _ServiceOperationType = _interopRequireDefault(require("./ServiceOperationType")); + +var _ServiceResourcePolicyQuery = _interopRequireDefault(require("./ServiceResourcePolicyQuery")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The ServiceQuery model module. +* @module model/ServiceQuery +* @version 2.0 +*/ +var ServiceQuery = /*#__PURE__*/function () { + /** + * Constructs a new ServiceQuery. + * @alias module:model/ServiceQuery + * @class + */ + function ServiceQuery() { + _classCallCheck(this, ServiceQuery); + + _defineProperty(this, "SubQueries", undefined); + + _defineProperty(this, "Operation", undefined); + + _defineProperty(this, "ResourcePolicyQuery", undefined); + + _defineProperty(this, "Offset", undefined); + + _defineProperty(this, "Limit", undefined); + + _defineProperty(this, "groupBy", undefined); + } + /** + * Constructs a ServiceQuery from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ServiceQuery} obj Optional instance to populate. + * @return {module:model/ServiceQuery} The populated ServiceQuery instance. + */ + + + _createClass(ServiceQuery, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ServiceQuery(); + + if (data.hasOwnProperty('SubQueries')) { + obj['SubQueries'] = _ApiClient["default"].convertToType(data['SubQueries'], [_ProtobufAny["default"]]); + } + + if (data.hasOwnProperty('Operation')) { + obj['Operation'] = _ServiceOperationType["default"].constructFromObject(data['Operation']); + } + + if (data.hasOwnProperty('ResourcePolicyQuery')) { + obj['ResourcePolicyQuery'] = _ServiceResourcePolicyQuery["default"].constructFromObject(data['ResourcePolicyQuery']); + } + + if (data.hasOwnProperty('Offset')) { + obj['Offset'] = _ApiClient["default"].convertToType(data['Offset'], 'String'); + } + + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = _ApiClient["default"].convertToType(data['Limit'], 'String'); + } + + if (data.hasOwnProperty('groupBy')) { + obj['groupBy'] = _ApiClient["default"].convertToType(data['groupBy'], 'Number'); + } + } + + return obj; + } + /** + * @member {Array.} SubQueries + */ + + }]); + + return ServiceQuery; +}(); + +exports["default"] = ServiceQuery; +//# sourceMappingURL=ServiceQuery.js.map diff --git a/lib/model/ServiceQuery.js.map b/lib/model/ServiceQuery.js.map new file mode 100644 index 0000000..d9875fd --- /dev/null +++ b/lib/model/ServiceQuery.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ServiceQuery.js"],"names":["ServiceQuery","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","ProtobufAny","ServiceOperationType","constructFromObject","ServiceResourcePolicyQuery"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,Y;AACjB;AACJ;AACA;AACA;AACA;AAEI,0BAAc;AAAA;;AAAA,wCAmDDC,SAnDC;;AAAA,uCAuDFA,SAvDE;;AAAA,iDA2DQA,SA3DR;;AAAA,oCA+DLA,SA/DK;;AAAA,mCAmENA,SAnEM;;AAAA,qCAuEJA,SAvEI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,YAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,YAAD,CAA5B,EAA4C,CAACK,uBAAD,CAA5C,CAApB;AACH;;AACD,YAAIL,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBK,iCAAqBC,mBAArB,CAAyCP,IAAI,CAAC,WAAD,CAA7C,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,qBAApB,CAAJ,EAAgD;AAC5CD,UAAAA,GAAG,CAAC,qBAAD,CAAH,GAA6BO,uCAA2BD,mBAA3B,CAA+CP,IAAI,CAAC,qBAAD,CAAnD,CAA7B;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,QAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport ProtobufAny from './ProtobufAny';\nimport ServiceOperationType from './ServiceOperationType';\nimport ServiceResourcePolicyQuery from './ServiceResourcePolicyQuery';\n\n\n\n\n\n/**\n* The ServiceQuery model module.\n* @module model/ServiceQuery\n* @version 2.0\n*/\nexport default class ServiceQuery {\n /**\n * Constructs a new ServiceQuery.\n * @alias module:model/ServiceQuery\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a ServiceQuery from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ServiceQuery} obj Optional instance to populate.\n * @return {module:model/ServiceQuery} The populated ServiceQuery instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new ServiceQuery();\n\n \n \n \n\n if (data.hasOwnProperty('SubQueries')) {\n obj['SubQueries'] = ApiClient.convertToType(data['SubQueries'], [ProtobufAny]);\n }\n if (data.hasOwnProperty('Operation')) {\n obj['Operation'] = ServiceOperationType.constructFromObject(data['Operation']);\n }\n if (data.hasOwnProperty('ResourcePolicyQuery')) {\n obj['ResourcePolicyQuery'] = ServiceResourcePolicyQuery.constructFromObject(data['ResourcePolicyQuery']);\n }\n if (data.hasOwnProperty('Offset')) {\n obj['Offset'] = ApiClient.convertToType(data['Offset'], 'String');\n }\n if (data.hasOwnProperty('Limit')) {\n obj['Limit'] = ApiClient.convertToType(data['Limit'], 'String');\n }\n if (data.hasOwnProperty('groupBy')) {\n obj['groupBy'] = ApiClient.convertToType(data['groupBy'], 'Number');\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} SubQueries\n */\n SubQueries = undefined;\n /**\n * @member {module:model/ServiceOperationType} Operation\n */\n Operation = undefined;\n /**\n * @member {module:model/ServiceResourcePolicyQuery} ResourcePolicyQuery\n */\n ResourcePolicyQuery = undefined;\n /**\n * @member {String} Offset\n */\n Offset = undefined;\n /**\n * @member {String} Limit\n */\n Limit = undefined;\n /**\n * @member {Number} groupBy\n */\n groupBy = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"ServiceQuery.js"} \ No newline at end of file diff --git a/lib/model/ServiceResourcePolicy.js b/lib/model/ServiceResourcePolicy.js new file mode 100644 index 0000000..e650049 --- /dev/null +++ b/lib/model/ServiceResourcePolicy.js @@ -0,0 +1,102 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _ServiceResourcePolicyAction = _interopRequireDefault(require("./ServiceResourcePolicyAction")); + +var _ServiceResourcePolicyPolicyEffect = _interopRequireDefault(require("./ServiceResourcePolicyPolicyEffect")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The ServiceResourcePolicy model module. +* @module model/ServiceResourcePolicy +* @version 2.0 +*/ +var ServiceResourcePolicy = /*#__PURE__*/function () { + /** + * Constructs a new ServiceResourcePolicy. + * @alias module:model/ServiceResourcePolicy + * @class + */ + function ServiceResourcePolicy() { + _classCallCheck(this, ServiceResourcePolicy); + + _defineProperty(this, "id", undefined); + + _defineProperty(this, "Resource", undefined); + + _defineProperty(this, "Action", undefined); + + _defineProperty(this, "Subject", undefined); + + _defineProperty(this, "Effect", undefined); + + _defineProperty(this, "JsonConditions", undefined); + } + /** + * Constructs a ServiceResourcePolicy from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ServiceResourcePolicy} obj Optional instance to populate. + * @return {module:model/ServiceResourcePolicy} The populated ServiceResourcePolicy instance. + */ + + + _createClass(ServiceResourcePolicy, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ServiceResourcePolicy(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('Resource')) { + obj['Resource'] = _ApiClient["default"].convertToType(data['Resource'], 'String'); + } + + if (data.hasOwnProperty('Action')) { + obj['Action'] = _ServiceResourcePolicyAction["default"].constructFromObject(data['Action']); + } + + if (data.hasOwnProperty('Subject')) { + obj['Subject'] = _ApiClient["default"].convertToType(data['Subject'], 'String'); + } + + if (data.hasOwnProperty('Effect')) { + obj['Effect'] = _ServiceResourcePolicyPolicyEffect["default"].constructFromObject(data['Effect']); + } + + if (data.hasOwnProperty('JsonConditions')) { + obj['JsonConditions'] = _ApiClient["default"].convertToType(data['JsonConditions'], 'String'); + } + } + + return obj; + } + /** + * @member {String} id + */ + + }]); + + return ServiceResourcePolicy; +}(); + +exports["default"] = ServiceResourcePolicy; +//# sourceMappingURL=ServiceResourcePolicy.js.map diff --git a/lib/model/ServiceResourcePolicy.js.map b/lib/model/ServiceResourcePolicy.js.map new file mode 100644 index 0000000..b720449 --- /dev/null +++ b/lib/model/ServiceResourcePolicy.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ServiceResourcePolicy.js"],"names":["ServiceResourcePolicy","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","ServiceResourcePolicyAction","constructFromObject","ServiceResourcePolicyPolicyEffect"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,qB;AACjB;AACJ;AACA;AACA;AACA;AAEI,mCAAc;AAAA;;AAAA,gCAmDTC,SAnDS;;AAAA,sCAuDHA,SAvDG;;AAAA,oCA2DLA,SA3DK;;AAAA,qCA+DJA,SA/DI;;AAAA,oCAmELA,SAnEK;;AAAA,4CAuEGA,SAvEH;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,qBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,IAApB,CAAJ,EAA+B;AAC3BD,UAAAA,GAAG,CAAC,IAAD,CAAH,GAAYE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,IAAD,CAA5B,EAAoC,QAApC,CAAZ;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,QAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBI,wCAA4BC,mBAA5B,CAAgDN,IAAI,CAAC,QAAD,CAApD,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,QAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBM,8CAAkCD,mBAAlC,CAAsDN,IAAI,CAAC,QAAD,CAA1D,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,gBAApB,CAAJ,EAA2C;AACvCD,UAAAA,GAAG,CAAC,gBAAD,CAAH,GAAwBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,gBAAD,CAA5B,EAAgD,QAAhD,CAAxB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport ServiceResourcePolicyAction from './ServiceResourcePolicyAction';\nimport ServiceResourcePolicyPolicyEffect from './ServiceResourcePolicyPolicyEffect';\n\n\n\n\n\n/**\n* The ServiceResourcePolicy model module.\n* @module model/ServiceResourcePolicy\n* @version 2.0\n*/\nexport default class ServiceResourcePolicy {\n /**\n * Constructs a new ServiceResourcePolicy.\n * @alias module:model/ServiceResourcePolicy\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a ServiceResourcePolicy from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ServiceResourcePolicy} obj Optional instance to populate.\n * @return {module:model/ServiceResourcePolicy} The populated ServiceResourcePolicy instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new ServiceResourcePolicy();\n\n \n \n \n\n if (data.hasOwnProperty('id')) {\n obj['id'] = ApiClient.convertToType(data['id'], 'String');\n }\n if (data.hasOwnProperty('Resource')) {\n obj['Resource'] = ApiClient.convertToType(data['Resource'], 'String');\n }\n if (data.hasOwnProperty('Action')) {\n obj['Action'] = ServiceResourcePolicyAction.constructFromObject(data['Action']);\n }\n if (data.hasOwnProperty('Subject')) {\n obj['Subject'] = ApiClient.convertToType(data['Subject'], 'String');\n }\n if (data.hasOwnProperty('Effect')) {\n obj['Effect'] = ServiceResourcePolicyPolicyEffect.constructFromObject(data['Effect']);\n }\n if (data.hasOwnProperty('JsonConditions')) {\n obj['JsonConditions'] = ApiClient.convertToType(data['JsonConditions'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} id\n */\n id = undefined;\n /**\n * @member {String} Resource\n */\n Resource = undefined;\n /**\n * @member {module:model/ServiceResourcePolicyAction} Action\n */\n Action = undefined;\n /**\n * @member {String} Subject\n */\n Subject = undefined;\n /**\n * @member {module:model/ServiceResourcePolicyPolicyEffect} Effect\n */\n Effect = undefined;\n /**\n * @member {String} JsonConditions\n */\n JsonConditions = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"ServiceResourcePolicy.js"} \ No newline at end of file diff --git a/lib/model/ServiceResourcePolicyAction.js b/lib/model/ServiceResourcePolicyAction.js new file mode 100644 index 0000000..cc9dda6 --- /dev/null +++ b/lib/model/ServiceResourcePolicyAction.js @@ -0,0 +1,57 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class ServiceResourcePolicyAction. +* @enum {} +* @readonly +*/ +var ServiceResourcePolicyAction = /*#__PURE__*/function () { + function ServiceResourcePolicyAction() { + _classCallCheck(this, ServiceResourcePolicyAction); + + _defineProperty(this, "ANY", "ANY"); + + _defineProperty(this, "OWNER", "OWNER"); + + _defineProperty(this, "READ", "READ"); + + _defineProperty(this, "WRITE", "WRITE"); + + _defineProperty(this, "EDIT_RULES", "EDIT_RULES"); + } + + _createClass(ServiceResourcePolicyAction, null, [{ + key: "constructFromObject", + value: + /** + * Returns a ServiceResourcePolicyAction enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ServiceResourcePolicyAction} The enum ServiceResourcePolicyAction value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return ServiceResourcePolicyAction; +}(); + +exports["default"] = ServiceResourcePolicyAction; +//# sourceMappingURL=ServiceResourcePolicyAction.js.map diff --git a/lib/model/ServiceResourcePolicyAction.js.map b/lib/model/ServiceResourcePolicyAction.js.map new file mode 100644 index 0000000..c98dd19 --- /dev/null +++ b/lib/model/ServiceResourcePolicyAction.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ServiceResourcePolicyAction.js"],"names":["ServiceResourcePolicyAction","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,2B;;;;iCAMP,K;;mCAOE,O;;kCAOD,M;;mCAOC,O;;wCAOK,Y;;;;;;AAIjB;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class ServiceResourcePolicyAction.\n* @enum {}\n* @readonly\n*/\nexport default class ServiceResourcePolicyAction {\n \n /**\n * value: \"ANY\"\n * @const\n */\n ANY = \"ANY\";\n\n \n /**\n * value: \"OWNER\"\n * @const\n */\n OWNER = \"OWNER\";\n\n \n /**\n * value: \"READ\"\n * @const\n */\n READ = \"READ\";\n\n \n /**\n * value: \"WRITE\"\n * @const\n */\n WRITE = \"WRITE\";\n\n \n /**\n * value: \"EDIT_RULES\"\n * @const\n */\n EDIT_RULES = \"EDIT_RULES\";\n\n \n\n /**\n * Returns a ServiceResourcePolicyAction enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/ServiceResourcePolicyAction} The enum ServiceResourcePolicyAction value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"ServiceResourcePolicyAction.js"} \ No newline at end of file diff --git a/lib/model/ServiceResourcePolicyPolicyEffect.js b/lib/model/ServiceResourcePolicyPolicyEffect.js new file mode 100644 index 0000000..0025c48 --- /dev/null +++ b/lib/model/ServiceResourcePolicyPolicyEffect.js @@ -0,0 +1,51 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class ServiceResourcePolicyPolicyEffect. +* @enum {} +* @readonly +*/ +var ServiceResourcePolicyPolicyEffect = /*#__PURE__*/function () { + function ServiceResourcePolicyPolicyEffect() { + _classCallCheck(this, ServiceResourcePolicyPolicyEffect); + + _defineProperty(this, "deny", "deny"); + + _defineProperty(this, "allow", "allow"); + } + + _createClass(ServiceResourcePolicyPolicyEffect, null, [{ + key: "constructFromObject", + value: + /** + * Returns a ServiceResourcePolicyPolicyEffect enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ServiceResourcePolicyPolicyEffect} The enum ServiceResourcePolicyPolicyEffect value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return ServiceResourcePolicyPolicyEffect; +}(); + +exports["default"] = ServiceResourcePolicyPolicyEffect; +//# sourceMappingURL=ServiceResourcePolicyPolicyEffect.js.map diff --git a/lib/model/ServiceResourcePolicyPolicyEffect.js.map b/lib/model/ServiceResourcePolicyPolicyEffect.js.map new file mode 100644 index 0000000..280463c --- /dev/null +++ b/lib/model/ServiceResourcePolicyPolicyEffect.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ServiceResourcePolicyPolicyEffect.js"],"names":["ServiceResourcePolicyPolicyEffect","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,iC;;;;kCAMN,M;;mCAOC,O;;;;;;AAIZ;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class ServiceResourcePolicyPolicyEffect.\n* @enum {}\n* @readonly\n*/\nexport default class ServiceResourcePolicyPolicyEffect {\n \n /**\n * value: \"deny\"\n * @const\n */\n deny = \"deny\";\n\n \n /**\n * value: \"allow\"\n * @const\n */\n allow = \"allow\";\n\n \n\n /**\n * Returns a ServiceResourcePolicyPolicyEffect enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/ServiceResourcePolicyPolicyEffect} The enum ServiceResourcePolicyPolicyEffect value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"ServiceResourcePolicyPolicyEffect.js"} \ No newline at end of file diff --git a/lib/model/ServiceResourcePolicyQuery.js b/lib/model/ServiceResourcePolicyQuery.js new file mode 100644 index 0000000..32919da --- /dev/null +++ b/lib/model/ServiceResourcePolicyQuery.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The ServiceResourcePolicyQuery model module. +* @module model/ServiceResourcePolicyQuery +* @version 2.0 +*/ +var ServiceResourcePolicyQuery = /*#__PURE__*/function () { + /** + * Constructs a new ServiceResourcePolicyQuery. + * @alias module:model/ServiceResourcePolicyQuery + * @class + */ + function ServiceResourcePolicyQuery() { + _classCallCheck(this, ServiceResourcePolicyQuery); + + _defineProperty(this, "Subjects", undefined); + + _defineProperty(this, "Empty", undefined); + + _defineProperty(this, "Any", undefined); + } + /** + * Constructs a ServiceResourcePolicyQuery from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ServiceResourcePolicyQuery} obj Optional instance to populate. + * @return {module:model/ServiceResourcePolicyQuery} The populated ServiceResourcePolicyQuery instance. + */ + + + _createClass(ServiceResourcePolicyQuery, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ServiceResourcePolicyQuery(); + + if (data.hasOwnProperty('Subjects')) { + obj['Subjects'] = _ApiClient["default"].convertToType(data['Subjects'], ['String']); + } + + if (data.hasOwnProperty('Empty')) { + obj['Empty'] = _ApiClient["default"].convertToType(data['Empty'], 'Boolean'); + } + + if (data.hasOwnProperty('Any')) { + obj['Any'] = _ApiClient["default"].convertToType(data['Any'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {Array.} Subjects + */ + + }]); + + return ServiceResourcePolicyQuery; +}(); + +exports["default"] = ServiceResourcePolicyQuery; +//# sourceMappingURL=ServiceResourcePolicyQuery.js.map diff --git a/lib/model/ServiceResourcePolicyQuery.js.map b/lib/model/ServiceResourcePolicyQuery.js.map new file mode 100644 index 0000000..30222d0 --- /dev/null +++ b/lib/model/ServiceResourcePolicyQuery.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/ServiceResourcePolicyQuery.js"],"names":["ServiceResourcePolicyQuery","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,0B;AACjB;AACJ;AACA;AACA;AACA;AAEI,wCAAc;AAAA;;AAAA,sCA0CHC,SA1CG;;AAAA,mCA8CNA,SA9CM;;AAAA,iCAkDRA,SAlDQ;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,0BAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,UAAD,CAA5B,EAA0C,CAAC,QAAD,CAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,SAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,KAApB,CAAJ,EAAgC;AAC5BD,UAAAA,GAAG,CAAC,KAAD,CAAH,GAAaE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,KAAD,CAA5B,EAAqC,SAArC,CAAb;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The ServiceResourcePolicyQuery model module.\n* @module model/ServiceResourcePolicyQuery\n* @version 2.0\n*/\nexport default class ServiceResourcePolicyQuery {\n /**\n * Constructs a new ServiceResourcePolicyQuery.\n * @alias module:model/ServiceResourcePolicyQuery\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a ServiceResourcePolicyQuery from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/ServiceResourcePolicyQuery} obj Optional instance to populate.\n * @return {module:model/ServiceResourcePolicyQuery} The populated ServiceResourcePolicyQuery instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new ServiceResourcePolicyQuery();\n\n \n \n \n\n if (data.hasOwnProperty('Subjects')) {\n obj['Subjects'] = ApiClient.convertToType(data['Subjects'], ['String']);\n }\n if (data.hasOwnProperty('Empty')) {\n obj['Empty'] = ApiClient.convertToType(data['Empty'], 'Boolean');\n }\n if (data.hasOwnProperty('Any')) {\n obj['Any'] = ApiClient.convertToType(data['Any'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {Array.} Subjects\n */\n Subjects = undefined;\n /**\n * @member {Boolean} Empty\n */\n Empty = undefined;\n /**\n * @member {Boolean} Any\n */\n Any = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"ServiceResourcePolicyQuery.js"} \ No newline at end of file diff --git a/lib/model/TreeChangeLog.js b/lib/model/TreeChangeLog.js new file mode 100644 index 0000000..1f69f66 --- /dev/null +++ b/lib/model/TreeChangeLog.js @@ -0,0 +1,114 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _TreeNode = _interopRequireDefault(require("./TreeNode")); + +var _TreeNodeChangeEvent = _interopRequireDefault(require("./TreeNodeChangeEvent")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The TreeChangeLog model module. +* @module model/TreeChangeLog +* @version 2.0 +*/ +var TreeChangeLog = /*#__PURE__*/function () { + /** + * Constructs a new TreeChangeLog. + * @alias module:model/TreeChangeLog + * @class + */ + function TreeChangeLog() { + _classCallCheck(this, TreeChangeLog); + + _defineProperty(this, "Uuid", undefined); + + _defineProperty(this, "Description", undefined); + + _defineProperty(this, "MTime", undefined); + + _defineProperty(this, "Size", undefined); + + _defineProperty(this, "Data", undefined); + + _defineProperty(this, "OwnerUuid", undefined); + + _defineProperty(this, "Event", undefined); + + _defineProperty(this, "Location", undefined); + } + /** + * Constructs a TreeChangeLog from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TreeChangeLog} obj Optional instance to populate. + * @return {module:model/TreeChangeLog} The populated TreeChangeLog instance. + */ + + + _createClass(TreeChangeLog, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TreeChangeLog(); + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = _ApiClient["default"].convertToType(data['Uuid'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + + if (data.hasOwnProperty('MTime')) { + obj['MTime'] = _ApiClient["default"].convertToType(data['MTime'], 'String'); + } + + if (data.hasOwnProperty('Size')) { + obj['Size'] = _ApiClient["default"].convertToType(data['Size'], 'String'); + } + + if (data.hasOwnProperty('Data')) { + obj['Data'] = _ApiClient["default"].convertToType(data['Data'], 'Blob'); + } + + if (data.hasOwnProperty('OwnerUuid')) { + obj['OwnerUuid'] = _ApiClient["default"].convertToType(data['OwnerUuid'], 'String'); + } + + if (data.hasOwnProperty('Event')) { + obj['Event'] = _TreeNodeChangeEvent["default"].constructFromObject(data['Event']); + } + + if (data.hasOwnProperty('Location')) { + obj['Location'] = _TreeNode["default"].constructFromObject(data['Location']); + } + } + + return obj; + } + /** + * @member {String} Uuid + */ + + }]); + + return TreeChangeLog; +}(); + +exports["default"] = TreeChangeLog; +//# sourceMappingURL=TreeChangeLog.js.map diff --git a/lib/model/TreeChangeLog.js.map b/lib/model/TreeChangeLog.js.map new file mode 100644 index 0000000..92acb8a --- /dev/null +++ b/lib/model/TreeChangeLog.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/TreeChangeLog.js"],"names":["TreeChangeLog","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","TreeNodeChangeEvent","constructFromObject","TreeNode"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,a;AACjB;AACJ;AACA;AACA;AACA;AAEI,2BAAc;AAAA;;AAAA,kCAyDPC,SAzDO;;AAAA,yCA6DAA,SA7DA;;AAAA,mCAiENA,SAjEM;;AAAA,kCAqEPA,SArEO;;AAAA,kCAyEPA,SAzEO;;AAAA,uCA6EFA,SA7EE;;AAAA,mCAiFNA,SAjFM;;AAAA,sCAqFHA,SArFG;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,aAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,aAApB,CAAJ,EAAwC;AACpCD,UAAAA,GAAG,CAAC,aAAD,CAAH,GAAqBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,aAAD,CAA5B,EAA6C,QAA7C,CAArB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,OAAD,CAA5B,EAAuC,QAAvC,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,MAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,QAA3C,CAAnB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,OAApB,CAAJ,EAAkC;AAC9BD,UAAAA,GAAG,CAAC,OAAD,CAAH,GAAeI,gCAAoBC,mBAApB,CAAwCN,IAAI,CAAC,OAAD,CAA5C,CAAf;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBM,qBAASD,mBAAT,CAA6BN,IAAI,CAAC,UAAD,CAAjC,CAAlB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport TreeNode from './TreeNode';\nimport TreeNodeChangeEvent from './TreeNodeChangeEvent';\n\n\n\n\n\n/**\n* The TreeChangeLog model module.\n* @module model/TreeChangeLog\n* @version 2.0\n*/\nexport default class TreeChangeLog {\n /**\n * Constructs a new TreeChangeLog.\n * @alias module:model/TreeChangeLog\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a TreeChangeLog from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/TreeChangeLog} obj Optional instance to populate.\n * @return {module:model/TreeChangeLog} The populated TreeChangeLog instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new TreeChangeLog();\n\n \n \n \n\n if (data.hasOwnProperty('Uuid')) {\n obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n if (data.hasOwnProperty('MTime')) {\n obj['MTime'] = ApiClient.convertToType(data['MTime'], 'String');\n }\n if (data.hasOwnProperty('Size')) {\n obj['Size'] = ApiClient.convertToType(data['Size'], 'String');\n }\n if (data.hasOwnProperty('Data')) {\n obj['Data'] = ApiClient.convertToType(data['Data'], 'Blob');\n }\n if (data.hasOwnProperty('OwnerUuid')) {\n obj['OwnerUuid'] = ApiClient.convertToType(data['OwnerUuid'], 'String');\n }\n if (data.hasOwnProperty('Event')) {\n obj['Event'] = TreeNodeChangeEvent.constructFromObject(data['Event']);\n }\n if (data.hasOwnProperty('Location')) {\n obj['Location'] = TreeNode.constructFromObject(data['Location']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Uuid\n */\n Uuid = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n /**\n * @member {String} MTime\n */\n MTime = undefined;\n /**\n * @member {String} Size\n */\n Size = undefined;\n /**\n * @member {Blob} Data\n */\n Data = undefined;\n /**\n * @member {String} OwnerUuid\n */\n OwnerUuid = undefined;\n /**\n * @member {module:model/TreeNodeChangeEvent} Event\n */\n Event = undefined;\n /**\n * @member {module:model/TreeNode} Location\n */\n Location = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"TreeChangeLog.js"} \ No newline at end of file diff --git a/lib/model/TreeNode.js b/lib/model/TreeNode.js new file mode 100644 index 0000000..eb2814c --- /dev/null +++ b/lib/model/TreeNode.js @@ -0,0 +1,130 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _TreeChangeLog = _interopRequireDefault(require("./TreeChangeLog")); + +var _TreeNodeType = _interopRequireDefault(require("./TreeNodeType")); + +var _TreeWorkspaceRelativePath = _interopRequireDefault(require("./TreeWorkspaceRelativePath")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The TreeNode model module. +* @module model/TreeNode +* @version 2.0 +*/ +var TreeNode = /*#__PURE__*/function () { + /** + * Constructs a new TreeNode. + * @alias module:model/TreeNode + * @class + */ + function TreeNode() { + _classCallCheck(this, TreeNode); + + _defineProperty(this, "Uuid", undefined); + + _defineProperty(this, "Path", undefined); + + _defineProperty(this, "Type", undefined); + + _defineProperty(this, "Size", undefined); + + _defineProperty(this, "MTime", undefined); + + _defineProperty(this, "Mode", undefined); + + _defineProperty(this, "Etag", undefined); + + _defineProperty(this, "Commits", undefined); + + _defineProperty(this, "MetaStore", undefined); + + _defineProperty(this, "AppearsIn", undefined); + } + /** + * Constructs a TreeNode from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TreeNode} obj Optional instance to populate. + * @return {module:model/TreeNode} The populated TreeNode instance. + */ + + + _createClass(TreeNode, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TreeNode(); + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = _ApiClient["default"].convertToType(data['Uuid'], 'String'); + } + + if (data.hasOwnProperty('Path')) { + obj['Path'] = _ApiClient["default"].convertToType(data['Path'], 'String'); + } + + if (data.hasOwnProperty('Type')) { + obj['Type'] = _TreeNodeType["default"].constructFromObject(data['Type']); + } + + if (data.hasOwnProperty('Size')) { + obj['Size'] = _ApiClient["default"].convertToType(data['Size'], 'String'); + } + + if (data.hasOwnProperty('MTime')) { + obj['MTime'] = _ApiClient["default"].convertToType(data['MTime'], 'String'); + } + + if (data.hasOwnProperty('Mode')) { + obj['Mode'] = _ApiClient["default"].convertToType(data['Mode'], 'Number'); + } + + if (data.hasOwnProperty('Etag')) { + obj['Etag'] = _ApiClient["default"].convertToType(data['Etag'], 'String'); + } + + if (data.hasOwnProperty('Commits')) { + obj['Commits'] = _ApiClient["default"].convertToType(data['Commits'], [_TreeChangeLog["default"]]); + } + + if (data.hasOwnProperty('MetaStore')) { + obj['MetaStore'] = _ApiClient["default"].convertToType(data['MetaStore'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('AppearsIn')) { + obj['AppearsIn'] = _ApiClient["default"].convertToType(data['AppearsIn'], [_TreeWorkspaceRelativePath["default"]]); + } + } + + return obj; + } + /** + * @member {String} Uuid + */ + + }]); + + return TreeNode; +}(); + +exports["default"] = TreeNode; +//# sourceMappingURL=TreeNode.js.map diff --git a/lib/model/TreeNode.js.map b/lib/model/TreeNode.js.map new file mode 100644 index 0000000..de42fb2 --- /dev/null +++ b/lib/model/TreeNode.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/TreeNode.js"],"names":["TreeNode","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","TreeNodeType","constructFromObject","TreeChangeLog","TreeWorkspaceRelativePath"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport TreeChangeLog from './TreeChangeLog';\nimport TreeNodeType from './TreeNodeType';\nimport TreeWorkspaceRelativePath from './TreeWorkspaceRelativePath';\n\n\n\n\n\n/**\n* The TreeNode model module.\n* @module model/TreeNode\n* @version 2.0\n*/\nexport default class TreeNode {\n /**\n * Constructs a new TreeNode.\n * @alias module:model/TreeNode\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a TreeNode from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/TreeNode} obj Optional instance to populate.\n * @return {module:model/TreeNode} The populated TreeNode instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new TreeNode();\n\n \n \n \n\n if (data.hasOwnProperty('Uuid')) {\n obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String');\n }\n if (data.hasOwnProperty('Path')) {\n obj['Path'] = ApiClient.convertToType(data['Path'], 'String');\n }\n if (data.hasOwnProperty('Type')) {\n obj['Type'] = TreeNodeType.constructFromObject(data['Type']);\n }\n if (data.hasOwnProperty('Size')) {\n obj['Size'] = ApiClient.convertToType(data['Size'], 'String');\n }\n if (data.hasOwnProperty('MTime')) {\n obj['MTime'] = ApiClient.convertToType(data['MTime'], 'String');\n }\n if (data.hasOwnProperty('Mode')) {\n obj['Mode'] = ApiClient.convertToType(data['Mode'], 'Number');\n }\n if (data.hasOwnProperty('Etag')) {\n obj['Etag'] = ApiClient.convertToType(data['Etag'], 'String');\n }\n if (data.hasOwnProperty('Commits')) {\n obj['Commits'] = ApiClient.convertToType(data['Commits'], [TreeChangeLog]);\n }\n if (data.hasOwnProperty('MetaStore')) {\n obj['MetaStore'] = ApiClient.convertToType(data['MetaStore'], {'String': 'String'});\n }\n if (data.hasOwnProperty('AppearsIn')) {\n obj['AppearsIn'] = ApiClient.convertToType(data['AppearsIn'], [TreeWorkspaceRelativePath]);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Uuid\n */\n Uuid = undefined;\n /**\n * @member {String} Path\n */\n Path = undefined;\n /**\n * @member {module:model/TreeNodeType} Type\n */\n Type = undefined;\n /**\n * @member {String} Size\n */\n Size = undefined;\n /**\n * @member {String} MTime\n */\n MTime = undefined;\n /**\n * @member {Number} Mode\n */\n Mode = undefined;\n /**\n * @member {String} Etag\n */\n Etag = undefined;\n /**\n * @member {Array.} Commits\n */\n Commits = undefined;\n /**\n * @member {Object.} MetaStore\n */\n MetaStore = undefined;\n /**\n * @member {Array.} AppearsIn\n */\n AppearsIn = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"TreeNode.js"} \ No newline at end of file diff --git a/lib/model/TreeNodeChangeEvent.js b/lib/model/TreeNodeChangeEvent.js new file mode 100644 index 0000000..63e91e6 --- /dev/null +++ b/lib/model/TreeNodeChangeEvent.js @@ -0,0 +1,104 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _NodeChangeEventEventType = _interopRequireDefault(require("./NodeChangeEventEventType")); + +var _TreeNode = _interopRequireDefault(require("./TreeNode")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The TreeNodeChangeEvent model module. +* @module model/TreeNodeChangeEvent +* @version 2.0 +*/ +var TreeNodeChangeEvent = /*#__PURE__*/function () { + /** + * Constructs a new TreeNodeChangeEvent. + * @alias module:model/TreeNodeChangeEvent + * @class + */ + function TreeNodeChangeEvent() { + _classCallCheck(this, TreeNodeChangeEvent); + + _defineProperty(this, "Type", undefined); + + _defineProperty(this, "Source", undefined); + + _defineProperty(this, "Target", undefined); + + _defineProperty(this, "Metadata", undefined); + + _defineProperty(this, "Silent", undefined); + + _defineProperty(this, "Optimistic", undefined); + } + /** + * Constructs a TreeNodeChangeEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TreeNodeChangeEvent} obj Optional instance to populate. + * @return {module:model/TreeNodeChangeEvent} The populated TreeNodeChangeEvent instance. + */ + + + _createClass(TreeNodeChangeEvent, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TreeNodeChangeEvent(); + + if (data.hasOwnProperty('Type')) { + obj['Type'] = _NodeChangeEventEventType["default"].constructFromObject(data['Type']); + } + + if (data.hasOwnProperty('Source')) { + obj['Source'] = _TreeNode["default"].constructFromObject(data['Source']); + } + + if (data.hasOwnProperty('Target')) { + obj['Target'] = _TreeNode["default"].constructFromObject(data['Target']); + } + + if (data.hasOwnProperty('Metadata')) { + obj['Metadata'] = _ApiClient["default"].convertToType(data['Metadata'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('Silent')) { + obj['Silent'] = _ApiClient["default"].convertToType(data['Silent'], 'Boolean'); + } + + if (data.hasOwnProperty('Optimistic')) { + obj['Optimistic'] = _ApiClient["default"].convertToType(data['Optimistic'], 'Boolean'); + } + } + + return obj; + } + /** + * @member {module:model/NodeChangeEventEventType} Type + */ + + }]); + + return TreeNodeChangeEvent; +}(); + +exports["default"] = TreeNodeChangeEvent; +//# sourceMappingURL=TreeNodeChangeEvent.js.map diff --git a/lib/model/TreeNodeChangeEvent.js.map b/lib/model/TreeNodeChangeEvent.js.map new file mode 100644 index 0000000..81bdc0d --- /dev/null +++ b/lib/model/TreeNodeChangeEvent.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/TreeNodeChangeEvent.js"],"names":["TreeNodeChangeEvent","undefined","data","obj","hasOwnProperty","NodeChangeEventEventType","constructFromObject","TreeNode","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;AACA;;AACA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,mB;AACjB;AACJ;AACA;AACA;AACA;AAEI,iCAAc;AAAA;;AAAA,kCAmDPC,SAnDO;;AAAA,oCAuDLA,SAvDK;;AAAA,oCA2DLA,SA3DK;;AAAA,sCA+DHA,SA/DG;;AAAA,oCAmELA,SAnEK;;AAAA,wCAuEDA,SAvEC;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,mBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,qCAAyBC,mBAAzB,CAA6CJ,IAAI,CAAC,MAAD,CAAjD,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBI,qBAASD,mBAAT,CAA6BJ,IAAI,CAAC,QAAD,CAAjC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBI,qBAASD,mBAAT,CAA6BJ,IAAI,CAAC,QAAD,CAAjC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,UAApB,CAAJ,EAAqC;AACjCD,UAAAA,GAAG,CAAC,UAAD,CAAH,GAAkBK,sBAAUC,aAAV,CAAwBP,IAAI,CAAC,UAAD,CAA5B,EAA0C;AAAC,sBAAU;AAAX,WAA1C,CAAlB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBK,sBAAUC,aAAV,CAAwBP,IAAI,CAAC,QAAD,CAA5B,EAAwC,SAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,YAApB,CAAJ,EAAuC;AACnCD,UAAAA,GAAG,CAAC,YAAD,CAAH,GAAoBK,sBAAUC,aAAV,CAAwBP,IAAI,CAAC,YAAD,CAA5B,EAA4C,SAA5C,CAApB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport NodeChangeEventEventType from './NodeChangeEventEventType';\nimport TreeNode from './TreeNode';\n\n\n\n\n\n/**\n* The TreeNodeChangeEvent model module.\n* @module model/TreeNodeChangeEvent\n* @version 2.0\n*/\nexport default class TreeNodeChangeEvent {\n /**\n * Constructs a new TreeNodeChangeEvent.\n * @alias module:model/TreeNodeChangeEvent\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a TreeNodeChangeEvent from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/TreeNodeChangeEvent} obj Optional instance to populate.\n * @return {module:model/TreeNodeChangeEvent} The populated TreeNodeChangeEvent instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new TreeNodeChangeEvent();\n\n \n \n \n\n if (data.hasOwnProperty('Type')) {\n obj['Type'] = NodeChangeEventEventType.constructFromObject(data['Type']);\n }\n if (data.hasOwnProperty('Source')) {\n obj['Source'] = TreeNode.constructFromObject(data['Source']);\n }\n if (data.hasOwnProperty('Target')) {\n obj['Target'] = TreeNode.constructFromObject(data['Target']);\n }\n if (data.hasOwnProperty('Metadata')) {\n obj['Metadata'] = ApiClient.convertToType(data['Metadata'], {'String': 'String'});\n }\n if (data.hasOwnProperty('Silent')) {\n obj['Silent'] = ApiClient.convertToType(data['Silent'], 'Boolean');\n }\n if (data.hasOwnProperty('Optimistic')) {\n obj['Optimistic'] = ApiClient.convertToType(data['Optimistic'], 'Boolean');\n }\n }\n return obj;\n }\n\n /**\n * @member {module:model/NodeChangeEventEventType} Type\n */\n Type = undefined;\n /**\n * @member {module:model/TreeNode} Source\n */\n Source = undefined;\n /**\n * @member {module:model/TreeNode} Target\n */\n Target = undefined;\n /**\n * @member {Object.} Metadata\n */\n Metadata = undefined;\n /**\n * @member {Boolean} Silent\n */\n Silent = undefined;\n /**\n * @member {Boolean} Optimistic\n */\n Optimistic = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"TreeNodeChangeEvent.js"} \ No newline at end of file diff --git a/lib/model/TreeNodeType.js b/lib/model/TreeNodeType.js new file mode 100644 index 0000000..dc56bb8 --- /dev/null +++ b/lib/model/TreeNodeType.js @@ -0,0 +1,53 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class TreeNodeType. +* @enum {} +* @readonly +*/ +var TreeNodeType = /*#__PURE__*/function () { + function TreeNodeType() { + _classCallCheck(this, TreeNodeType); + + _defineProperty(this, "UNKNOWN", "UNKNOWN"); + + _defineProperty(this, "LEAF", "LEAF"); + + _defineProperty(this, "COLLECTION", "COLLECTION"); + } + + _createClass(TreeNodeType, null, [{ + key: "constructFromObject", + value: + /** + * Returns a TreeNodeType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/TreeNodeType} The enum TreeNodeType value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return TreeNodeType; +}(); + +exports["default"] = TreeNodeType; +//# sourceMappingURL=TreeNodeType.js.map diff --git a/lib/model/TreeNodeType.js.map b/lib/model/TreeNodeType.js.map new file mode 100644 index 0000000..932679a --- /dev/null +++ b/lib/model/TreeNodeType.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/TreeNodeType.js"],"names":["TreeNodeType","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,Y;;;;qCAMH,S;;kCAOH,M;;wCAOM,Y;;;;;;AAIjB;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class TreeNodeType.\n* @enum {}\n* @readonly\n*/\nexport default class TreeNodeType {\n \n /**\n * value: \"UNKNOWN\"\n * @const\n */\n UNKNOWN = \"UNKNOWN\";\n\n \n /**\n * value: \"LEAF\"\n * @const\n */\n LEAF = \"LEAF\";\n\n \n /**\n * value: \"COLLECTION\"\n * @const\n */\n COLLECTION = \"COLLECTION\";\n\n \n\n /**\n * Returns a TreeNodeType enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/TreeNodeType} The enum TreeNodeType value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"TreeNodeType.js"} \ No newline at end of file diff --git a/lib/model/TreeVersioningKeepPeriod.js b/lib/model/TreeVersioningKeepPeriod.js new file mode 100644 index 0000000..0acfc61 --- /dev/null +++ b/lib/model/TreeVersioningKeepPeriod.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The TreeVersioningKeepPeriod model module. +* @module model/TreeVersioningKeepPeriod +* @version 2.0 +*/ +var TreeVersioningKeepPeriod = /*#__PURE__*/function () { + /** + * Constructs a new TreeVersioningKeepPeriod. + * @alias module:model/TreeVersioningKeepPeriod + * @class + */ + function TreeVersioningKeepPeriod() { + _classCallCheck(this, TreeVersioningKeepPeriod); + + _defineProperty(this, "IntervalStart", undefined); + + _defineProperty(this, "MaxNumber", undefined); + } + /** + * Constructs a TreeVersioningKeepPeriod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TreeVersioningKeepPeriod} obj Optional instance to populate. + * @return {module:model/TreeVersioningKeepPeriod} The populated TreeVersioningKeepPeriod instance. + */ + + + _createClass(TreeVersioningKeepPeriod, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TreeVersioningKeepPeriod(); + + if (data.hasOwnProperty('IntervalStart')) { + obj['IntervalStart'] = _ApiClient["default"].convertToType(data['IntervalStart'], 'String'); + } + + if (data.hasOwnProperty('MaxNumber')) { + obj['MaxNumber'] = _ApiClient["default"].convertToType(data['MaxNumber'], 'Number'); + } + } + + return obj; + } + /** + * @member {String} IntervalStart + */ + + }]); + + return TreeVersioningKeepPeriod; +}(); + +exports["default"] = TreeVersioningKeepPeriod; +//# sourceMappingURL=TreeVersioningKeepPeriod.js.map diff --git a/lib/model/TreeVersioningKeepPeriod.js.map b/lib/model/TreeVersioningKeepPeriod.js.map new file mode 100644 index 0000000..4bbde12 --- /dev/null +++ b/lib/model/TreeVersioningKeepPeriod.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/TreeVersioningKeepPeriod.js"],"names":["TreeVersioningKeepPeriod","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,wB;AACjB;AACJ;AACA;AACA;AACA;AAEI,sCAAc;AAAA;;AAAA,2CAuCEC,SAvCF;;AAAA,uCA2CFA,SA3CE;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,wBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,eAApB,CAAJ,EAA0C;AACtCD,UAAAA,GAAG,CAAC,eAAD,CAAH,GAAuBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,eAAD,CAA5B,EAA+C,QAA/C,CAAvB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,WAApB,CAAJ,EAAsC;AAClCD,UAAAA,GAAG,CAAC,WAAD,CAAH,GAAmBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,WAAD,CAA5B,EAA2C,QAA3C,CAAnB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The TreeVersioningKeepPeriod model module.\n* @module model/TreeVersioningKeepPeriod\n* @version 2.0\n*/\nexport default class TreeVersioningKeepPeriod {\n /**\n * Constructs a new TreeVersioningKeepPeriod.\n * @alias module:model/TreeVersioningKeepPeriod\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a TreeVersioningKeepPeriod from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/TreeVersioningKeepPeriod} obj Optional instance to populate.\n * @return {module:model/TreeVersioningKeepPeriod} The populated TreeVersioningKeepPeriod instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new TreeVersioningKeepPeriod();\n\n \n \n \n\n if (data.hasOwnProperty('IntervalStart')) {\n obj['IntervalStart'] = ApiClient.convertToType(data['IntervalStart'], 'String');\n }\n if (data.hasOwnProperty('MaxNumber')) {\n obj['MaxNumber'] = ApiClient.convertToType(data['MaxNumber'], 'Number');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} IntervalStart\n */\n IntervalStart = undefined;\n /**\n * @member {Number} MaxNumber\n */\n MaxNumber = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"TreeVersioningKeepPeriod.js"} \ No newline at end of file diff --git a/lib/model/TreeVersioningNodeDeletedStrategy.js b/lib/model/TreeVersioningNodeDeletedStrategy.js new file mode 100644 index 0000000..7c08b1c --- /dev/null +++ b/lib/model/TreeVersioningNodeDeletedStrategy.js @@ -0,0 +1,53 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* Enum class TreeVersioningNodeDeletedStrategy. +* @enum {} +* @readonly +*/ +var TreeVersioningNodeDeletedStrategy = /*#__PURE__*/function () { + function TreeVersioningNodeDeletedStrategy() { + _classCallCheck(this, TreeVersioningNodeDeletedStrategy); + + _defineProperty(this, "KeepAll", "KeepAll"); + + _defineProperty(this, "KeepLast", "KeepLast"); + + _defineProperty(this, "KeepNone", "KeepNone"); + } + + _createClass(TreeVersioningNodeDeletedStrategy, null, [{ + key: "constructFromObject", + value: + /** + * Returns a TreeVersioningNodeDeletedStrategy enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/TreeVersioningNodeDeletedStrategy} The enum TreeVersioningNodeDeletedStrategy value. + */ + function constructFromObject(object) { + return object; + } + }]); + + return TreeVersioningNodeDeletedStrategy; +}(); + +exports["default"] = TreeVersioningNodeDeletedStrategy; +//# sourceMappingURL=TreeVersioningNodeDeletedStrategy.js.map diff --git a/lib/model/TreeVersioningNodeDeletedStrategy.js.map b/lib/model/TreeVersioningNodeDeletedStrategy.js.map new file mode 100644 index 0000000..ca6eab5 --- /dev/null +++ b/lib/model/TreeVersioningNodeDeletedStrategy.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/TreeVersioningNodeDeletedStrategy.js"],"names":["TreeVersioningNodeDeletedStrategy","object"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;IACqBA,iC;;;;qCAMH,S;;sCAOC,U;;sCAOA,U;;;;;;AAIf;AACJ;AACA;AACA;AACA;AACI,iCAA2BC,MAA3B,EAAmC;AAC/B,aAAOA,MAAP;AACH","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n/**\n* Enum class TreeVersioningNodeDeletedStrategy.\n* @enum {}\n* @readonly\n*/\nexport default class TreeVersioningNodeDeletedStrategy {\n \n /**\n * value: \"KeepAll\"\n * @const\n */\n KeepAll = \"KeepAll\";\n\n \n /**\n * value: \"KeepLast\"\n * @const\n */\n KeepLast = \"KeepLast\";\n\n \n /**\n * value: \"KeepNone\"\n * @const\n */\n KeepNone = \"KeepNone\";\n\n \n\n /**\n * Returns a TreeVersioningNodeDeletedStrategy enum value from a Javascript object name.\n * @param {Object} data The plain JavaScript object containing the name of the enum value.\n * @return {module:model/TreeVersioningNodeDeletedStrategy} The enum TreeVersioningNodeDeletedStrategy value.\n */\n static constructFromObject(object) {\n return object;\n }\n}\n\n\n"],"file":"TreeVersioningNodeDeletedStrategy.js"} \ No newline at end of file diff --git a/lib/model/TreeVersioningPolicy.js b/lib/model/TreeVersioningPolicy.js new file mode 100644 index 0000000..99f8151 --- /dev/null +++ b/lib/model/TreeVersioningPolicy.js @@ -0,0 +1,126 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +var _TreeVersioningKeepPeriod = _interopRequireDefault(require("./TreeVersioningKeepPeriod")); + +var _TreeVersioningNodeDeletedStrategy = _interopRequireDefault(require("./TreeVersioningNodeDeletedStrategy")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The TreeVersioningPolicy model module. +* @module model/TreeVersioningPolicy +* @version 2.0 +*/ +var TreeVersioningPolicy = /*#__PURE__*/function () { + /** + * Constructs a new TreeVersioningPolicy. + * @alias module:model/TreeVersioningPolicy + * @class + */ + function TreeVersioningPolicy() { + _classCallCheck(this, TreeVersioningPolicy); + + _defineProperty(this, "Uuid", undefined); + + _defineProperty(this, "Name", undefined); + + _defineProperty(this, "Description", undefined); + + _defineProperty(this, "VersionsDataSourceName", undefined); + + _defineProperty(this, "VersionsDataSourceBucket", undefined); + + _defineProperty(this, "MaxTotalSize", undefined); + + _defineProperty(this, "MaxSizePerFile", undefined); + + _defineProperty(this, "IgnoreFilesGreaterThan", undefined); + + _defineProperty(this, "KeepPeriods", undefined); + + _defineProperty(this, "NodeDeletedStrategy", undefined); + } + /** + * Constructs a TreeVersioningPolicy from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TreeVersioningPolicy} obj Optional instance to populate. + * @return {module:model/TreeVersioningPolicy} The populated TreeVersioningPolicy instance. + */ + + + _createClass(TreeVersioningPolicy, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TreeVersioningPolicy(); + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = _ApiClient["default"].convertToType(data['Uuid'], 'String'); + } + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('Description')) { + obj['Description'] = _ApiClient["default"].convertToType(data['Description'], 'String'); + } + + if (data.hasOwnProperty('VersionsDataSourceName')) { + obj['VersionsDataSourceName'] = _ApiClient["default"].convertToType(data['VersionsDataSourceName'], 'String'); + } + + if (data.hasOwnProperty('VersionsDataSourceBucket')) { + obj['VersionsDataSourceBucket'] = _ApiClient["default"].convertToType(data['VersionsDataSourceBucket'], 'String'); + } + + if (data.hasOwnProperty('MaxTotalSize')) { + obj['MaxTotalSize'] = _ApiClient["default"].convertToType(data['MaxTotalSize'], 'String'); + } + + if (data.hasOwnProperty('MaxSizePerFile')) { + obj['MaxSizePerFile'] = _ApiClient["default"].convertToType(data['MaxSizePerFile'], 'String'); + } + + if (data.hasOwnProperty('IgnoreFilesGreaterThan')) { + obj['IgnoreFilesGreaterThan'] = _ApiClient["default"].convertToType(data['IgnoreFilesGreaterThan'], 'String'); + } + + if (data.hasOwnProperty('KeepPeriods')) { + obj['KeepPeriods'] = _ApiClient["default"].convertToType(data['KeepPeriods'], [_TreeVersioningKeepPeriod["default"]]); + } + + if (data.hasOwnProperty('NodeDeletedStrategy')) { + obj['NodeDeletedStrategy'] = _TreeVersioningNodeDeletedStrategy["default"].constructFromObject(data['NodeDeletedStrategy']); + } + } + + return obj; + } + /** + * @member {String} Uuid + */ + + }]); + + return TreeVersioningPolicy; +}(); + +exports["default"] = TreeVersioningPolicy; +//# sourceMappingURL=TreeVersioningPolicy.js.map diff --git a/lib/model/TreeVersioningPolicy.js.map b/lib/model/TreeVersioningPolicy.js.map new file mode 100644 index 0000000..1325540 --- /dev/null +++ b/lib/model/TreeVersioningPolicy.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/TreeVersioningPolicy.js"],"names":["TreeVersioningPolicy","undefined","data","obj","hasOwnProperty","ApiClient","convertToType","TreeVersioningKeepPeriod","TreeVersioningNodeDeletedStrategy","constructFromObject"],"mappings":"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","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\nimport TreeVersioningKeepPeriod from './TreeVersioningKeepPeriod';\nimport TreeVersioningNodeDeletedStrategy from './TreeVersioningNodeDeletedStrategy';\n\n\n\n\n\n/**\n* The TreeVersioningPolicy model module.\n* @module model/TreeVersioningPolicy\n* @version 2.0\n*/\nexport default class TreeVersioningPolicy {\n /**\n * Constructs a new TreeVersioningPolicy.\n * @alias module:model/TreeVersioningPolicy\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a TreeVersioningPolicy from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/TreeVersioningPolicy} obj Optional instance to populate.\n * @return {module:model/TreeVersioningPolicy} The populated TreeVersioningPolicy instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new TreeVersioningPolicy();\n\n \n \n \n\n if (data.hasOwnProperty('Uuid')) {\n obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String');\n }\n if (data.hasOwnProperty('Name')) {\n obj['Name'] = ApiClient.convertToType(data['Name'], 'String');\n }\n if (data.hasOwnProperty('Description')) {\n obj['Description'] = ApiClient.convertToType(data['Description'], 'String');\n }\n if (data.hasOwnProperty('VersionsDataSourceName')) {\n obj['VersionsDataSourceName'] = ApiClient.convertToType(data['VersionsDataSourceName'], 'String');\n }\n if (data.hasOwnProperty('VersionsDataSourceBucket')) {\n obj['VersionsDataSourceBucket'] = ApiClient.convertToType(data['VersionsDataSourceBucket'], 'String');\n }\n if (data.hasOwnProperty('MaxTotalSize')) {\n obj['MaxTotalSize'] = ApiClient.convertToType(data['MaxTotalSize'], 'String');\n }\n if (data.hasOwnProperty('MaxSizePerFile')) {\n obj['MaxSizePerFile'] = ApiClient.convertToType(data['MaxSizePerFile'], 'String');\n }\n if (data.hasOwnProperty('IgnoreFilesGreaterThan')) {\n obj['IgnoreFilesGreaterThan'] = ApiClient.convertToType(data['IgnoreFilesGreaterThan'], 'String');\n }\n if (data.hasOwnProperty('KeepPeriods')) {\n obj['KeepPeriods'] = ApiClient.convertToType(data['KeepPeriods'], [TreeVersioningKeepPeriod]);\n }\n if (data.hasOwnProperty('NodeDeletedStrategy')) {\n obj['NodeDeletedStrategy'] = TreeVersioningNodeDeletedStrategy.constructFromObject(data['NodeDeletedStrategy']);\n }\n }\n return obj;\n }\n\n /**\n * @member {String} Uuid\n */\n Uuid = undefined;\n /**\n * @member {String} Name\n */\n Name = undefined;\n /**\n * @member {String} Description\n */\n Description = undefined;\n /**\n * @member {String} VersionsDataSourceName\n */\n VersionsDataSourceName = undefined;\n /**\n * @member {String} VersionsDataSourceBucket\n */\n VersionsDataSourceBucket = undefined;\n /**\n * @member {String} MaxTotalSize\n */\n MaxTotalSize = undefined;\n /**\n * @member {String} MaxSizePerFile\n */\n MaxSizePerFile = undefined;\n /**\n * @member {String} IgnoreFilesGreaterThan\n */\n IgnoreFilesGreaterThan = undefined;\n /**\n * @member {Array.} KeepPeriods\n */\n KeepPeriods = undefined;\n /**\n * @member {module:model/TreeVersioningNodeDeletedStrategy} NodeDeletedStrategy\n */\n NodeDeletedStrategy = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"TreeVersioningPolicy.js"} \ No newline at end of file diff --git a/lib/model/TreeWorkspaceRelativePath.js b/lib/model/TreeWorkspaceRelativePath.js new file mode 100644 index 0000000..a213c5e --- /dev/null +++ b/lib/model/TreeWorkspaceRelativePath.js @@ -0,0 +1,92 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(require("../ApiClient")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** +* The TreeWorkspaceRelativePath model module. +* @module model/TreeWorkspaceRelativePath +* @version 2.0 +*/ +var TreeWorkspaceRelativePath = /*#__PURE__*/function () { + /** + * Constructs a new TreeWorkspaceRelativePath. + * @alias module:model/TreeWorkspaceRelativePath + * @class + */ + function TreeWorkspaceRelativePath() { + _classCallCheck(this, TreeWorkspaceRelativePath); + + _defineProperty(this, "WsUuid", undefined); + + _defineProperty(this, "WsLabel", undefined); + + _defineProperty(this, "Path", undefined); + + _defineProperty(this, "WsSlug", undefined); + + _defineProperty(this, "WsScope", undefined); + } + /** + * Constructs a TreeWorkspaceRelativePath from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TreeWorkspaceRelativePath} obj Optional instance to populate. + * @return {module:model/TreeWorkspaceRelativePath} The populated TreeWorkspaceRelativePath instance. + */ + + + _createClass(TreeWorkspaceRelativePath, null, [{ + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TreeWorkspaceRelativePath(); + + if (data.hasOwnProperty('WsUuid')) { + obj['WsUuid'] = _ApiClient["default"].convertToType(data['WsUuid'], 'String'); + } + + if (data.hasOwnProperty('WsLabel')) { + obj['WsLabel'] = _ApiClient["default"].convertToType(data['WsLabel'], 'String'); + } + + if (data.hasOwnProperty('Path')) { + obj['Path'] = _ApiClient["default"].convertToType(data['Path'], 'String'); + } + + if (data.hasOwnProperty('WsSlug')) { + obj['WsSlug'] = _ApiClient["default"].convertToType(data['WsSlug'], 'String'); + } + + if (data.hasOwnProperty('WsScope')) { + obj['WsScope'] = _ApiClient["default"].convertToType(data['WsScope'], 'String'); + } + } + + return obj; + } + /** + * @member {String} WsUuid + */ + + }]); + + return TreeWorkspaceRelativePath; +}(); + +exports["default"] = TreeWorkspaceRelativePath; +//# sourceMappingURL=TreeWorkspaceRelativePath.js.map diff --git a/lib/model/TreeWorkspaceRelativePath.js.map b/lib/model/TreeWorkspaceRelativePath.js.map new file mode 100644 index 0000000..caed5da --- /dev/null +++ b/lib/model/TreeWorkspaceRelativePath.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/model/TreeWorkspaceRelativePath.js"],"names":["TreeWorkspaceRelativePath","undefined","data","obj","hasOwnProperty","ApiClient","convertToType"],"mappings":";;;;;;;AAcA;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;IACqBA,yB;AACjB;AACJ;AACA;AACA;AACA;AAEI,uCAAc;AAAA;;AAAA,oCAgDLC,SAhDK;;AAAA,qCAoDJA,SApDI;;AAAA,kCAwDPA,SAxDO;;AAAA,oCA4DLA,SA5DK;;AAAA,qCAgEJA,SAhEI;AASb;AAED;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;WACI,6BAA2BC,IAA3B,EAAiCC,GAAjC,EAAsC;AAClC,UAAID,IAAJ,EAAU;AACNC,QAAAA,GAAG,GAAGA,GAAG,IAAI,IAAIH,yBAAJ,EAAb;;AAMA,YAAIE,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,QAAzC,CAAjB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,MAApB,CAAJ,EAAiC;AAC7BD,UAAAA,GAAG,CAAC,MAAD,CAAH,GAAcE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,MAAD,CAA5B,EAAsC,QAAtC,CAAd;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,QAApB,CAAJ,EAAmC;AAC/BD,UAAAA,GAAG,CAAC,QAAD,CAAH,GAAgBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,QAAD,CAA5B,EAAwC,QAAxC,CAAhB;AACH;;AACD,YAAIA,IAAI,CAACE,cAAL,CAAoB,SAApB,CAAJ,EAAoC;AAChCD,UAAAA,GAAG,CAAC,SAAD,CAAH,GAAiBE,sBAAUC,aAAV,CAAwBJ,IAAI,CAAC,SAAD,CAA5B,EAAyC,QAAzC,CAAjB;AACH;AACJ;;AACD,aAAOC,GAAP;AACH;AAED;AACJ;AACA","sourcesContent":["/**\n * Pydio Cells Enterprise Rest API\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n *\n * OpenAPI spec version: 2.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n *\n */\n\n\nimport ApiClient from '../ApiClient';\n\n\n\n\n\n/**\n* The TreeWorkspaceRelativePath model module.\n* @module model/TreeWorkspaceRelativePath\n* @version 2.0\n*/\nexport default class TreeWorkspaceRelativePath {\n /**\n * Constructs a new TreeWorkspaceRelativePath.\n * @alias module:model/TreeWorkspaceRelativePath\n * @class\n */\n\n constructor() {\n \n\n \n \n\n \n\n \n }\n\n /**\n * Constructs a TreeWorkspaceRelativePath from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from data to obj if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:model/TreeWorkspaceRelativePath} obj Optional instance to populate.\n * @return {module:model/TreeWorkspaceRelativePath} The populated TreeWorkspaceRelativePath instance.\n */\n static constructFromObject(data, obj) {\n if (data) {\n obj = obj || new TreeWorkspaceRelativePath();\n\n \n \n \n\n if (data.hasOwnProperty('WsUuid')) {\n obj['WsUuid'] = ApiClient.convertToType(data['WsUuid'], 'String');\n }\n if (data.hasOwnProperty('WsLabel')) {\n obj['WsLabel'] = ApiClient.convertToType(data['WsLabel'], 'String');\n }\n if (data.hasOwnProperty('Path')) {\n obj['Path'] = ApiClient.convertToType(data['Path'], 'String');\n }\n if (data.hasOwnProperty('WsSlug')) {\n obj['WsSlug'] = ApiClient.convertToType(data['WsSlug'], 'String');\n }\n if (data.hasOwnProperty('WsScope')) {\n obj['WsScope'] = ApiClient.convertToType(data['WsScope'], 'String');\n }\n }\n return obj;\n }\n\n /**\n * @member {String} WsUuid\n */\n WsUuid = undefined;\n /**\n * @member {String} WsLabel\n */\n WsLabel = undefined;\n /**\n * @member {String} Path\n */\n Path = undefined;\n /**\n * @member {String} WsSlug\n */\n WsSlug = undefined;\n /**\n * @member {String} WsScope\n */\n WsScope = undefined;\n\n\n\n\n\n\n\n\n}\n\n\n"],"file":"TreeWorkspaceRelativePath.js"} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..2b29269 --- /dev/null +++ b/package.json @@ -0,0 +1,37 @@ +{ + "name": "cells-enterprise-sdk", + "version": "3.0.0-rc1.0", + "description": "Javascript SDK for Pydio Cells Enterprise", + "main": "lib/index.js", + "module": "src/index.js", + "directories": { + "lib": "lib" + }, + "scripts": { + "test": "echo \"No test specified\" && exit 0", + "build": "grunt" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/pydio/cells-enterprise-sdk-js.git" + }, + "keywords": [ + "sdk", "pydio", "cells-enterprise" + ], + "author": "Abstrium SAS", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/pydio/cells-enterprise-sdk-js/issues" + }, + "homepage": "https://github.com/pydio/cells-enterprise-sdk-js#readme", + "devDependencies": { + "@babel/core": "^7.12.16", + "@babel/plugin-proposal-class-properties": "^7.12.13", + "@babel/preset-env": "^7.12.16", + "grunt": "^1.3.0", + "grunt-babel": "^8.0.0" + }, + "dependencies": { + "superagent": "^6.1.0" + } +} diff --git a/src/ApiClient.js b/src/ApiClient.js new file mode 100644 index 0000000..4b50d84 --- /dev/null +++ b/src/ApiClient.js @@ -0,0 +1,565 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import superagent from "superagent"; +import querystring from "querystring"; + +/** +* @module ApiClient +* @version 2.0 +*/ + +/** +* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an +* application to use this class directly - the *Api and model classes provide the public API for the service. The +* contents of this file should be regarded as internal but are documented for completeness. +* @alias module:ApiClient +* @class +*/ +export default class ApiClient { + constructor() { + /** + * The base URL against which to resolve every API call's (relative) path. + * @type {String} + * @default http://localhost + */ + this.basePath = 'http://localhost'.replace(/\/+$/, ''); + + /** + * The authentication methods to be included for all API calls. + * @type {Array.} + */ + this.authentications = { + } + + /** + * The default HTTP headers to be included for all API calls. + * @type {Array.} + * @default {} + */ + this.defaultHeaders = {}; + + /** + * The default HTTP timeout for all API calls. + * @type {Number} + * @default 60000 + */ + this.timeout = 60000; + + /** + * If set to false an additional timestamp parameter is added to all API GET calls to + * prevent browser caching + * @type {Boolean} + * @default true + */ + this.cache = true; + + /** + * If set to true, the client will save the cookies from each server + * response, and return them in the next request. + * @default false + */ + this.enableCookies = false; + + /* + * Used to save and return cookies in a node.js (non-browser) setting, + * if this.enableCookies is set to true. + */ + if (typeof window === 'undefined') { + this.agent = new superagent.agent(); + } + } + + /** + * Returns a string representation for an actual parameter. + * @param param The actual parameter. + * @returns {String} The string representation of param. + */ + paramToString(param) { + if (param == undefined || param == null) { + return ''; + } + if (param instanceof Date) { + return param.toJSON(); + } + + return param.toString(); + } + + /** + * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. + * NOTE: query parameters are not handled here. + * @param {String} path The path to append to the base URL. + * @param {Object} pathParams The parameter values to append. + * @returns {String} The encoded path with parameter values substituted. + */ + buildUrl(path, pathParams) { + if (!path.match(/^\//)) { + path = '/' + path; + } + + var url = this.basePath + path; + url = url.replace(/\{([\w-]+)\}/g, (fullMatch, key) => { + var value; + if (pathParams.hasOwnProperty(key)) { + value = this.paramToString(pathParams[key]); + } else { + value = fullMatch; + } + + return encodeURIComponent(value); + }); + + return url; + } + + /** + * Checks whether the given content type represents JSON.
+ * JSON content type examples:
+ *
    + *
  • application/json
  • + *
  • application/json; charset=UTF8
  • + *
  • APPLICATION/JSON
  • + *
+ * @param {String} contentType The MIME content type to check. + * @returns {Boolean} true if contentType represents JSON, otherwise false. + */ + isJsonMime(contentType) { + return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); + } + + /** + * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. + * @param {Array.} contentTypes + * @returns {String} The chosen content type, preferring JSON. + */ + jsonPreferredMime(contentTypes) { + for (var i = 0; i < contentTypes.length; i++) { + if (this.isJsonMime(contentTypes[i])) { + return contentTypes[i]; + } + } + + return contentTypes[0]; + } + + /** + * Checks whether the given parameter value represents file-like content. + * @param param The parameter to check. + * @returns {Boolean} true if param represents a file. + */ + isFileParam(param) { + // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) + if (typeof require === 'function') { + let fs; + try { + fs = require('fs'); + } catch (err) {} + if (fs && fs.ReadStream && param instanceof fs.ReadStream) { + return true; + } + } + + // Buffer in Node.js + if (typeof Buffer === 'function' && param instanceof Buffer) { + return true; + } + + // Blob in browser + if (typeof Blob === 'function' && param instanceof Blob) { + return true; + } + + // File in browser (it seems File object is also instance of Blob, but keep this for safe) + if (typeof File === 'function' && param instanceof File) { + return true; + } + + return false; + } + + /** + * Normalizes parameter values: + *
    + *
  • remove nils
  • + *
  • keep files and arrays
  • + *
  • format to string with `paramToString` for other cases
  • + *
+ * @param {Object.} params The parameters as object properties. + * @returns {Object.} normalized parameters. + */ + normalizeParams(params) { + var newParams = {}; + for (var key in params) { + if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { + var value = params[key]; + if (this.isFileParam(value) || Array.isArray(value)) { + newParams[key] = value; + } else { + newParams[key] = this.paramToString(value); + } + } + } + + return newParams; + } + + /** + * Enumeration of collection format separator strategies. + * @enum {String} + * @readonly + */ + static CollectionFormatEnum = { + /** + * Comma-separated values. Value: csv + * @const + */ + CSV: ',', + + /** + * Space-separated values. Value: ssv + * @const + */ + SSV: ' ', + + /** + * Tab-separated values. Value: tsv + * @const + */ + TSV: '\t', + + /** + * Pipe(|)-separated values. Value: pipes + * @const + */ + PIPES: '|', + + /** + * Native array. Value: multi + * @const + */ + MULTI: 'multi' + }; + + /** + * Builds a string representation of an array-type actual parameter, according to the given collection format. + * @param {Array} param An array parameter. + * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. + * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns + * param as is if collectionFormat is multi. + */ + buildCollectionParam(param, collectionFormat) { + if (param == null) { + return null; + } + switch (collectionFormat) { + case 'csv': + return param.map(this.paramToString).join(','); + case 'ssv': + return param.map(this.paramToString).join(' '); + case 'tsv': + return param.map(this.paramToString).join('\t'); + case 'pipes': + return param.map(this.paramToString).join('|'); + case 'multi': + //return the array directly as SuperAgent will handle it as expected + return param.map(this.paramToString); + default: + throw new Error('Unknown collection format: ' + collectionFormat); + } + } + + /** + * Applies authentication headers to the request. + * @param {Object} request The request object created by a superagent() call. + * @param {Array.} authNames An array of authentication method names. + */ + applyAuthToRequest(request, authNames) { + authNames.forEach((authName) => { + var auth = this.authentications[authName]; + switch (auth.type) { + case 'basic': + if (auth.username || auth.password) { + request.auth(auth.username || '', auth.password || ''); + } + + break; + case 'apiKey': + if (auth.apiKey) { + var data = {}; + if (auth.apiKeyPrefix) { + data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; + } else { + data[auth.name] = auth.apiKey; + } + + if (auth['in'] === 'header') { + request.set(data); + } else { + request.query(data); + } + } + + break; + case 'oauth2': + if (auth.accessToken) { + request.set({'Authorization': 'Bearer ' + auth.accessToken}); + } + + break; + default: + throw new Error('Unknown authentication type: ' + auth.type); + } + }); + } + + /** + * Deserializes an HTTP response body into a value of the specified type. + * @param {Object} response A SuperAgent response object. + * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns A value of the specified type. + */ + deserialize(response, returnType) { + if (response == null || returnType == null || response.status == 204) { + return null; + } + + // Rely on SuperAgent for parsing response body. + // See http://visionmedia.github.io/superagent/#parsing-response-bodies + var data = response.body; + if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) { + // SuperAgent does not always produce a body; use the unparsed response as a fallback + data = response.text; + } + + return ApiClient.convertToType(data, returnType); + } + + + + /** + * Invokes the REST service using the supplied settings and parameters. + * @param {String} path The base URL to invoke. + * @param {String} httpMethod The HTTP method to use. + * @param {Object.} pathParams A map of path parameters and their values. + * @param {Object.} queryParams A map of query parameters and their values. + * @param {Object.} headerParams A map of header parameters and their values. + * @param {Object.} formParams A map of form parameters and their values. + * @param {Object} bodyParam The value to pass as the request body. + * @param {Array.} authNames An array of authentication type names. + * @param {Array.} contentTypes An array of request MIME types. + * @param {Array.} accepts An array of acceptable response MIME types. + * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the + * constructor for a complex type. + * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object. + */ + callApi(path, httpMethod, pathParams, + queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, + returnType) { + + var url = this.buildUrl(path, pathParams); + var request = superagent(httpMethod, url); + + // apply authentications + this.applyAuthToRequest(request, authNames); + + // set query parameters + if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { + queryParams['_'] = new Date().getTime(); + } + + request.query(this.normalizeParams(queryParams)); + + // set header parameters + request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); + + // set request timeout + request.timeout(this.timeout); + + var contentType = this.jsonPreferredMime(contentTypes); + if (contentType) { + // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) + if(contentType != 'multipart/form-data') { + request.type(contentType); + } + } else if (!request.header['Content-Type']) { + request.type('application/json'); + } + + if (contentType === 'application/x-www-form-urlencoded') { + request.send(querystring.stringify(this.normalizeParams(formParams))); + } else if (contentType == 'multipart/form-data') { + var _formParams = this.normalizeParams(formParams); + for (var key in _formParams) { + if (_formParams.hasOwnProperty(key)) { + if (this.isFileParam(_formParams[key])) { + // file field + request.attach(key, _formParams[key]); + } else { + request.field(key, _formParams[key]); + } + } + } + } else if (bodyParam) { + request.send(bodyParam); + } + + var accept = this.jsonPreferredMime(accepts); + if (accept) { + request.accept(accept); + } + + if (returnType === 'Blob') { + request.responseType('blob'); + } else if (returnType === 'String') { + request.responseType('string'); + } + + // Attach previously saved cookies, if enabled + if (this.enableCookies){ + if (typeof window === 'undefined') { + this.agent.attachCookies(request); + } + else { + request.withCredentials(); + } + } + + return new Promise((resolve, reject) => { + request.end((error, response) => { + if (error) { + reject(error); + } else { + try { + var data = this.deserialize(response, returnType); + if (this.enableCookies && typeof window === 'undefined'){ + this.agent.saveCookies(response); + } + + resolve({data, response}); + } catch (err) { + reject(err); + } + } + }); + }); + + + } + + /** + * Parses an ISO-8601 string representation of a date value. + * @param {String} str The date value as a string. + * @returns {Date} The parsed date object. + */ + static parseDate(str) { + return new Date(str.replace(/T/i, ' ')); + } + + /** + * Converts a value to the specified type. + * @param {(String|Object)} data The data to convert, as a string or object. + * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns An instance of the specified type or null or undefined if data is null or undefined. + */ + static convertToType(data, type) { + if (data === null || data === undefined) + return data + + switch (type) { + case 'Boolean': + return Boolean(data); + case 'Integer': + return parseInt(data, 10); + case 'Number': + return parseFloat(data); + case 'String': + return String(data); + case 'Date': + return ApiClient.parseDate(String(data)); + case 'Blob': + return data; + default: + if (type === Object) { + // generic object, return directly + return data; + } else if (typeof type === 'function') { + // for model type like: User + return type.constructFromObject(data); + } else if (Array.isArray(type)) { + // for array type like: ['String'] + var itemType = type[0]; + + return data.map((item) => { + return ApiClient.convertToType(item, itemType); + }); + } else if (typeof type === 'object') { + // for plain object type like: {'String': 'Integer'} + var keyType, valueType; + for (var k in type) { + if (type.hasOwnProperty(k)) { + keyType = k; + valueType = type[k]; + break; + } + } + + var result = {}; + for (var k in data) { + if (data.hasOwnProperty(k)) { + var key = ApiClient.convertToType(k, keyType); + var value = ApiClient.convertToType(data[k], valueType); + result[key] = value; + } + } + + return result; + } else { + // for unknown type, return the data directly + return data; + } + } + } + + /** + * Constructs a new map or array model from REST data. + * @param data {Object|Array} The REST data. + * @param obj {Object|Array} The target object or array. + */ + static constructFromObject(data, obj, itemType) { + if (Array.isArray(data)) { + for (var i = 0; i < data.length; i++) { + if (data.hasOwnProperty(i)) + obj[i] = ApiClient.convertToType(data[i], itemType); + } + } else { + for (var k in data) { + if (data.hasOwnProperty(k)) + obj[k] = ApiClient.convertToType(data[k], itemType); + } + } + }; +} + +/** +* The default API client implementation. +* @type {module:ApiClient} +*/ +ApiClient.instance = new ApiClient(); diff --git a/src/api/AuditDataServiceApi.js b/src/api/AuditDataServiceApi.js new file mode 100644 index 0000000..bc84747 --- /dev/null +++ b/src/api/AuditDataServiceApi.js @@ -0,0 +1,87 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import ReportsSharedResourcesRequest from '../model/ReportsSharedResourcesRequest'; +import ReportsSharedResourcesResponse from '../model/ReportsSharedResourcesResponse'; + +/** +* AuditDataService service. +* @module api/AuditDataServiceApi +* @version 2.0 +*/ +export default class AuditDataServiceApi { + + /** + * Constructs a new AuditDataServiceApi. + * @alias module:api/AuditDataServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + + /** + * [Enterprise Only] Audit all shares across the application + * @param {module:model/ReportsSharedResourcesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ReportsSharedResourcesResponse} and HTTP response + */ + sharedResourcesWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling sharedResources"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = ReportsSharedResourcesResponse; + + return this.apiClient.callApi( + '/audit/data/shares', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Audit all shares across the application + * @param {module:model/ReportsSharedResourcesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ReportsSharedResourcesResponse} + */ + sharedResources(body) { + return this.sharedResourcesWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/EnterpriseConfigServiceApi.js b/src/api/EnterpriseConfigServiceApi.js new file mode 100644 index 0000000..533542a --- /dev/null +++ b/src/api/EnterpriseConfigServiceApi.js @@ -0,0 +1,789 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import AuthOAuth2ClientConfig from '../model/AuthOAuth2ClientConfig'; +import AuthOAuth2ConnectorCollection from '../model/AuthOAuth2ConnectorCollection'; +import AuthOAuth2ConnectorConfig from '../model/AuthOAuth2ConnectorConfig'; +import EntDeleteVersioningPolicyResponse from '../model/EntDeleteVersioningPolicyResponse'; +import EntDeleteVirtualNodeResponse from '../model/EntDeleteVirtualNodeResponse'; +import EntExternalDirectoryCollection from '../model/EntExternalDirectoryCollection'; +import EntExternalDirectoryConfig from '../model/EntExternalDirectoryConfig'; +import EntExternalDirectoryResponse from '../model/EntExternalDirectoryResponse'; +import EntListSitesResponse from '../model/EntListSitesResponse'; +import EntOAuth2ClientCollection from '../model/EntOAuth2ClientCollection'; +import EntOAuth2ClientResponse from '../model/EntOAuth2ClientResponse'; +import EntOAuth2ConnectorCollection from '../model/EntOAuth2ConnectorCollection'; +import EntOAuth2ConnectorResponse from '../model/EntOAuth2ConnectorResponse'; +import TreeNode from '../model/TreeNode'; +import TreeVersioningPolicy from '../model/TreeVersioningPolicy'; + +/** +* EnterpriseConfigService service. +* @module api/EnterpriseConfigServiceApi +* @version 2.0 +*/ +export default class EnterpriseConfigServiceApi { + + /** + * Constructs a new EnterpriseConfigServiceApi. + * @alias module:api/EnterpriseConfigServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + + /** + * [Enterprise Only] Delete external directory + * @param {String} configId + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntExternalDirectoryResponse} and HTTP response + */ + deleteExternalDirectoryWithHttpInfo(configId) { + let postBody = null; + + // verify the required parameter 'configId' is set + if (configId === undefined || configId === null) { + throw new Error("Missing the required parameter 'configId' when calling deleteExternalDirectory"); + } + + + let pathParams = { + 'ConfigId': configId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntExternalDirectoryResponse; + + return this.apiClient.callApi( + '/config/directories/{ConfigId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Delete external directory + * @param {String} configId + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntExternalDirectoryResponse} + */ + deleteExternalDirectory(configId) { + return this.deleteExternalDirectoryWithHttpInfo(configId) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Delete an oauth2 client + * @param {String} clientID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ClientResponse} and HTTP response + */ + deleteOAuth2ClientWithHttpInfo(clientID) { + let postBody = null; + + // verify the required parameter 'clientID' is set + if (clientID === undefined || clientID === null) { + throw new Error("Missing the required parameter 'clientID' when calling deleteOAuth2Client"); + } + + + let pathParams = { + 'ClientID': clientID + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntOAuth2ClientResponse; + + return this.apiClient.callApi( + '/config/oauth2clients/{ClientID}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Delete an oauth2 client + * @param {String} clientID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ClientResponse} + */ + deleteOAuth2Client(clientID) { + return this.deleteOAuth2ClientWithHttpInfo(clientID) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Delete an oauth2 client + * @param {String} id + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ConnectorResponse} and HTTP response + */ + deleteOAuth2ConnectorWithHttpInfo(id) { + let postBody = null; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling deleteOAuth2Connector"); + } + + + let pathParams = { + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntOAuth2ConnectorResponse; + + return this.apiClient.callApi( + '/config/oauth2connectors/{id}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Delete an oauth2 client + * @param {String} id + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ConnectorResponse} + */ + deleteOAuth2Connector(id) { + return this.deleteOAuth2ConnectorWithHttpInfo(id) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Delete a versioning policy + * @param {String} uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteVersioningPolicyResponse} and HTTP response + */ + deleteVersioningPolicyWithHttpInfo(uuid) { + let postBody = null; + + // verify the required parameter 'uuid' is set + if (uuid === undefined || uuid === null) { + throw new Error("Missing the required parameter 'uuid' when calling deleteVersioningPolicy"); + } + + + let pathParams = { + 'Uuid': uuid + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntDeleteVersioningPolicyResponse; + + return this.apiClient.callApi( + '/config/versioning/{Uuid}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Delete a versioning policy + * @param {String} uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteVersioningPolicyResponse} + */ + deleteVersioningPolicy(uuid) { + return this.deleteVersioningPolicyWithHttpInfo(uuid) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Delete a virtual node + * @param {String} uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteVirtualNodeResponse} and HTTP response + */ + deleteVirtualNodeWithHttpInfo(uuid) { + let postBody = null; + + // verify the required parameter 'uuid' is set + if (uuid === undefined || uuid === null) { + throw new Error("Missing the required parameter 'uuid' when calling deleteVirtualNode"); + } + + + let pathParams = { + 'Uuid': uuid + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntDeleteVirtualNodeResponse; + + return this.apiClient.callApi( + '/config/virtualnodes/{Uuid}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Delete a virtual node + * @param {String} uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteVirtualNodeResponse} + */ + deleteVirtualNode(uuid) { + return this.deleteVirtualNodeWithHttpInfo(uuid) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] List additional user directories + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntExternalDirectoryCollection} and HTTP response + */ + listExternalDirectoriesWithHttpInfo() { + let postBody = null; + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntExternalDirectoryCollection; + + return this.apiClient.callApi( + '/config/directories', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] List additional user directories + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntExternalDirectoryCollection} + */ + listExternalDirectories() { + return this.listExternalDirectoriesWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] List oauth2 clients + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ClientCollection} and HTTP response + */ + listOAuth2ClientsWithHttpInfo() { + let postBody = null; + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntOAuth2ClientCollection; + + return this.apiClient.callApi( + '/config/oauth2clients', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] List oauth2 clients + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ClientCollection} + */ + listOAuth2Clients() { + return this.listOAuth2ClientsWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] List oauth2 connectors + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ConnectorCollection} and HTTP response + */ + listOAuth2ConnectorsWithHttpInfo() { + let postBody = null; + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntOAuth2ConnectorCollection; + + return this.apiClient.callApi( + '/config/oauth2connectors', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] List oauth2 connectors + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ConnectorCollection} + */ + listOAuth2Connectors() { + return this.listOAuth2ConnectorsWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] List configured sites + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntListSitesResponse} and HTTP response + */ + listSitesWithHttpInfo() { + let postBody = null; + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntListSitesResponse; + + return this.apiClient.callApi( + '/config/sites', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] List configured sites + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntListSitesResponse} + */ + listSites() { + return this.listSitesWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Add/Create an external directory + * @param {String} configId + * @param {module:model/EntExternalDirectoryConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntExternalDirectoryResponse} and HTTP response + */ + putExternalDirectoryWithHttpInfo(configId, body) { + let postBody = body; + + // verify the required parameter 'configId' is set + if (configId === undefined || configId === null) { + throw new Error("Missing the required parameter 'configId' when calling putExternalDirectory"); + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putExternalDirectory"); + } + + + let pathParams = { + 'ConfigId': configId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntExternalDirectoryResponse; + + return this.apiClient.callApi( + '/config/directories/{ConfigId}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Add/Create an external directory + * @param {String} configId + * @param {module:model/EntExternalDirectoryConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntExternalDirectoryResponse} + */ + putExternalDirectory(configId, body) { + return this.putExternalDirectoryWithHttpInfo(configId, body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Add/Create a new oauth2 client + * @param {String} clientID + * @param {module:model/AuthOAuth2ClientConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ClientResponse} and HTTP response + */ + putOAuth2ClientWithHttpInfo(clientID, body) { + let postBody = body; + + // verify the required parameter 'clientID' is set + if (clientID === undefined || clientID === null) { + throw new Error("Missing the required parameter 'clientID' when calling putOAuth2Client"); + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putOAuth2Client"); + } + + + let pathParams = { + 'ClientID': clientID + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntOAuth2ClientResponse; + + return this.apiClient.callApi( + '/config/oauth2clients/{ClientID}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Add/Create a new oauth2 client + * @param {String} clientID + * @param {module:model/AuthOAuth2ClientConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ClientResponse} + */ + putOAuth2Client(clientID, body) { + return this.putOAuth2ClientWithHttpInfo(clientID, body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Add/Create a new oauth2 client + * @param {String} id + * @param {module:model/AuthOAuth2ConnectorConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ConnectorResponse} and HTTP response + */ + putOAuth2ConnectorWithHttpInfo(id, body) { + let postBody = body; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling putOAuth2Connector"); + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putOAuth2Connector"); + } + + + let pathParams = { + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntOAuth2ConnectorResponse; + + return this.apiClient.callApi( + '/config/oauth2connectors/{id}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Add/Create a new oauth2 client + * @param {String} id + * @param {module:model/AuthOAuth2ConnectorConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ConnectorResponse} + */ + putOAuth2Connector(id, body) { + return this.putOAuth2ConnectorWithHttpInfo(id, body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Add/Create a new oauth2 client + * @param {module:model/AuthOAuth2ConnectorCollection} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntOAuth2ConnectorResponse} and HTTP response + */ + putOAuth2ConnectorsWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putOAuth2Connectors"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntOAuth2ConnectorResponse; + + return this.apiClient.callApi( + '/config/oauth2connectors', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Add/Create a new oauth2 client + * @param {module:model/AuthOAuth2ConnectorCollection} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntOAuth2ConnectorResponse} + */ + putOAuth2Connectors(body) { + return this.putOAuth2ConnectorsWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Create or update a versioning policy + * @param {String} uuid + * @param {module:model/TreeVersioningPolicy} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TreeVersioningPolicy} and HTTP response + */ + putVersioningPolicyWithHttpInfo(uuid, body) { + let postBody = body; + + // verify the required parameter 'uuid' is set + if (uuid === undefined || uuid === null) { + throw new Error("Missing the required parameter 'uuid' when calling putVersioningPolicy"); + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putVersioningPolicy"); + } + + + let pathParams = { + 'Uuid': uuid + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = TreeVersioningPolicy; + + return this.apiClient.callApi( + '/config/versioning/{Uuid}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Create or update a versioning policy + * @param {String} uuid + * @param {module:model/TreeVersioningPolicy} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TreeVersioningPolicy} + */ + putVersioningPolicy(uuid, body) { + return this.putVersioningPolicyWithHttpInfo(uuid, body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Create or update a virtual node + * @param {String} uuid + * @param {module:model/TreeNode} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TreeNode} and HTTP response + */ + putVirtualNodeWithHttpInfo(uuid, body) { + let postBody = body; + + // verify the required parameter 'uuid' is set + if (uuid === undefined || uuid === null) { + throw new Error("Missing the required parameter 'uuid' when calling putVirtualNode"); + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putVirtualNode"); + } + + + let pathParams = { + 'Uuid': uuid + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = TreeNode; + + return this.apiClient.callApi( + '/config/virtualnodes/{Uuid}', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Create or update a virtual node + * @param {String} uuid + * @param {module:model/TreeNode} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TreeNode} + */ + putVirtualNode(uuid, body) { + return this.putVirtualNodeWithHttpInfo(uuid, body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/EnterpriseFrontendServiceApi.js b/src/api/EnterpriseFrontendServiceApi.js new file mode 100644 index 0000000..f65266e --- /dev/null +++ b/src/api/EnterpriseFrontendServiceApi.js @@ -0,0 +1,79 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import EntFrontLoginConnectorsResponse from '../model/EntFrontLoginConnectorsResponse'; + +/** +* EnterpriseFrontendService service. +* @module api/EnterpriseFrontendServiceApi +* @version 2.0 +*/ +export default class EnterpriseFrontendServiceApi { + + /** + * Constructs a new EnterpriseFrontendServiceApi. + * @alias module:api/EnterpriseFrontendServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + + /** + * [Enterprise Only] Handle Login Connectors + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntFrontLoginConnectorsResponse} and HTTP response + */ + frontLoginConnectorsWithHttpInfo() { + let postBody = null; + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntFrontLoginConnectorsResponse; + + return this.apiClient.callApi( + '/frontend/login/connectors', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Handle Login Connectors + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntFrontLoginConnectorsResponse} + */ + frontLoginConnectors() { + return this.frontLoginConnectorsWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/EnterpriseLogServiceApi.js b/src/api/EnterpriseLogServiceApi.js new file mode 100644 index 0000000..5a0a7c9 --- /dev/null +++ b/src/api/EnterpriseLogServiceApi.js @@ -0,0 +1,233 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import LogListLogRequest from '../model/LogListLogRequest'; +import LogTimeRangeRequest from '../model/LogTimeRangeRequest'; +import RestLogMessageCollection from '../model/RestLogMessageCollection'; +import RestTimeRangeResultCollection from '../model/RestTimeRangeResultCollection'; + +/** +* EnterpriseLogService service. +* @module api/EnterpriseLogServiceApi +* @version 2.0 +*/ +export default class EnterpriseLogServiceApi { + + /** + * Constructs a new EnterpriseLogServiceApi. + * @alias module:api/EnterpriseLogServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + + /** + * [Enterprise Only] Auditable Logs, in Json or CSV format + * @param {module:model/LogListLogRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestLogMessageCollection} and HTTP response + */ + auditWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling audit"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = RestLogMessageCollection; + + return this.apiClient.callApi( + '/log/audit', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Auditable Logs, in Json or CSV format + * @param {module:model/LogListLogRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestLogMessageCollection} + */ + audit(body) { + return this.auditWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Retrieves aggregated audit logs to generate charts + * @param {module:model/LogTimeRangeRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestTimeRangeResultCollection} and HTTP response + */ + auditChartDataWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling auditChartData"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = RestTimeRangeResultCollection; + + return this.apiClient.callApi( + '/log/audit/chartdata', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Retrieves aggregated audit logs to generate charts + * @param {module:model/LogTimeRangeRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestTimeRangeResultCollection} + */ + auditChartData(body) { + return this.auditChartDataWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Auditable Logs, in Json or CSV format + * @param {module:model/LogListLogRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestLogMessageCollection} and HTTP response + */ + auditExportWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling auditExport"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = RestLogMessageCollection; + + return this.apiClient.callApi( + '/log/audit/export', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Auditable Logs, in Json or CSV format + * @param {module:model/LogListLogRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestLogMessageCollection} + */ + auditExport(body) { + return this.auditExportWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Technical Logs, in Json or CSV format + * @param {module:model/LogListLogRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestLogMessageCollection} and HTTP response + */ + syslogExportWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling syslogExport"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = RestLogMessageCollection; + + return this.apiClient.callApi( + '/log/sys/export', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Technical Logs, in Json or CSV format + * @param {module:model/LogListLogRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestLogMessageCollection} + */ + syslogExport(body) { + return this.syslogExportWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/EnterprisePolicyServiceApi.js b/src/api/EnterprisePolicyServiceApi.js new file mode 100644 index 0000000..1a49f15 --- /dev/null +++ b/src/api/EnterprisePolicyServiceApi.js @@ -0,0 +1,326 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import IdmPolicyGroup from '../model/IdmPolicyGroup'; +import IpbanIPsCollection from '../model/IpbanIPsCollection'; +import IpbanListBansCollection from '../model/IpbanListBansCollection'; +import IpbanUnbanRequest from '../model/IpbanUnbanRequest'; +import IpbanUnbanResponse from '../model/IpbanUnbanResponse'; +import RestDeleteResponse from '../model/RestDeleteResponse'; + +/** +* EnterprisePolicyService service. +* @module api/EnterprisePolicyServiceApi +* @version 2.0 +*/ +export default class EnterprisePolicyServiceApi { + + /** + * Constructs a new EnterprisePolicyServiceApi. + * @alias module:api/EnterprisePolicyServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + + /** + * [Enterprise Only] Delete a security policy + * @param {String} uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestDeleteResponse} and HTTP response + */ + deletePolicyWithHttpInfo(uuid) { + let postBody = null; + + // verify the required parameter 'uuid' is set + if (uuid === undefined || uuid === null) { + throw new Error("Missing the required parameter 'uuid' when calling deletePolicy"); + } + + + let pathParams = { + 'Uuid': uuid + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = RestDeleteResponse; + + return this.apiClient.callApi( + '/policy/{Uuid}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Delete a security policy + * @param {String} uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestDeleteResponse} + */ + deletePolicy(uuid) { + return this.deletePolicyWithHttpInfo(uuid) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] List banned IPs + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IpbanListBansCollection} and HTTP response + */ + listBansWithHttpInfo() { + let postBody = null; + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = IpbanListBansCollection; + + return this.apiClient.callApi( + '/policy/ipbans', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] List banned IPs + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IpbanListBansCollection} + */ + listBans() { + return this.listBansWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] List white/black lists + * @param {String} name + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IpbanIPsCollection} and HTTP response + */ + listIPsWithHttpInfo(name) { + let postBody = null; + + // verify the required parameter 'name' is set + if (name === undefined || name === null) { + throw new Error("Missing the required parameter 'name' when calling listIPs"); + } + + + let pathParams = { + 'Name': name + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = IpbanIPsCollection; + + return this.apiClient.callApi( + '/policy/iplists/{Name}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] List white/black lists + * @param {String} name + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IpbanIPsCollection} + */ + listIPs(name) { + return this.listIPsWithHttpInfo(name) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Update or create a security policy + * @param {module:model/IdmPolicyGroup} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IdmPolicyGroup} and HTTP response + */ + putPolicyWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putPolicy"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = IdmPolicyGroup; + + return this.apiClient.callApi( + '/policy', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Update or create a security policy + * @param {module:model/IdmPolicyGroup} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IdmPolicyGroup} + */ + putPolicy(body) { + return this.putPolicyWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] List banned IPs + * @param {module:model/IpbanUnbanRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IpbanUnbanResponse} and HTTP response + */ + unbanWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling unban"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = IpbanUnbanResponse; + + return this.apiClient.callApi( + '/policy/ipbans', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] List banned IPs + * @param {module:model/IpbanUnbanRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IpbanUnbanResponse} + */ + unban(body) { + return this.unbanWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Update white/black lists + * @param {module:model/IpbanIPsCollection} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/IpbanIPsCollection} and HTTP response + */ + updateIPsWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling updateIPs"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = IpbanIPsCollection; + + return this.apiClient.callApi( + '/policy/iplists', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Update white/black lists + * @param {module:model/IpbanIPsCollection} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/IpbanIPsCollection} + */ + updateIPs(body) { + return this.updateIPsWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/EnterpriseTokenServiceApi.js b/src/api/EnterpriseTokenServiceApi.js new file mode 100644 index 0000000..5eb5982 --- /dev/null +++ b/src/api/EnterpriseTokenServiceApi.js @@ -0,0 +1,235 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import AuthPatListResponse from '../model/AuthPatListResponse'; +import EntListAccessTokensRequest from '../model/EntListAccessTokensRequest'; +import EntPersonalAccessTokenRequest from '../model/EntPersonalAccessTokenRequest'; +import EntPersonalAccessTokenResponse from '../model/EntPersonalAccessTokenResponse'; +import RestRevokeResponse from '../model/RestRevokeResponse'; + +/** +* EnterpriseTokenService service. +* @module api/EnterpriseTokenServiceApi +* @version 2.0 +*/ +export default class EnterpriseTokenServiceApi { + + /** + * Constructs a new EnterpriseTokenServiceApi. + * @alias module:api/EnterpriseTokenServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + + /** + * Generate a personal access token + * @param {module:model/EntPersonalAccessTokenRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPersonalAccessTokenResponse} and HTTP response + */ + generatePersonalAccessTokenWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling generatePersonalAccessToken"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntPersonalAccessTokenResponse; + + return this.apiClient.callApi( + '/auth/token/personal', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Generate a personal access token + * @param {module:model/EntPersonalAccessTokenRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPersonalAccessTokenResponse} + */ + generatePersonalAccessToken(body) { + return this.generatePersonalAccessTokenWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Generate a personal access token + * @param {module:model/EntPersonalAccessTokenRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPersonalAccessTokenResponse} and HTTP response + */ + impersonatePersonalAccessTokenWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling impersonatePersonalAccessToken"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntPersonalAccessTokenResponse; + + return this.apiClient.callApi( + '/auth/token/impersonate', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Generate a personal access token + * @param {module:model/EntPersonalAccessTokenRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPersonalAccessTokenResponse} + */ + impersonatePersonalAccessToken(body) { + return this.impersonatePersonalAccessTokenWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * List generated personal access tokens, eventually filtering by user + * @param {module:model/EntListAccessTokensRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AuthPatListResponse} and HTTP response + */ + listPersonalAccessTokensWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling listPersonalAccessTokens"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = AuthPatListResponse; + + return this.apiClient.callApi( + '/auth/tokens', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * List generated personal access tokens, eventually filtering by user + * @param {module:model/EntListAccessTokensRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AuthPatListResponse} + */ + listPersonalAccessTokens(body) { + return this.listPersonalAccessTokensWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Delete a personal access token based on its Uuid + * @param {String} tokenId + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RestRevokeResponse} and HTTP response + */ + revokePersonalAccessTokenWithHttpInfo(tokenId) { + let postBody = null; + + // verify the required parameter 'tokenId' is set + if (tokenId === undefined || tokenId === null) { + throw new Error("Missing the required parameter 'tokenId' when calling revokePersonalAccessToken"); + } + + + let pathParams = { + 'TokenId': tokenId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = RestRevokeResponse; + + return this.apiClient.callApi( + '/auth/tokens/{TokenId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Delete a personal access token based on its Uuid + * @param {String} tokenId + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RestRevokeResponse} + */ + revokePersonalAccessToken(tokenId) { + return this.revokePersonalAccessTokenWithHttpInfo(tokenId) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/LicenseServiceApi.js b/src/api/LicenseServiceApi.js new file mode 100644 index 0000000..bff455c --- /dev/null +++ b/src/api/LicenseServiceApi.js @@ -0,0 +1,135 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import CertLicenseStatsResponse from '../model/CertLicenseStatsResponse'; +import CertPutLicenseInfoRequest from '../model/CertPutLicenseInfoRequest'; +import CertPutLicenseInfoResponse from '../model/CertPutLicenseInfoResponse'; + +/** +* LicenseService service. +* @module api/LicenseServiceApi +* @version 2.0 +*/ +export default class LicenseServiceApi { + + /** + * Constructs a new LicenseServiceApi. + * @alias module:api/LicenseServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + + /** + * [Enterprise Only] Display statistics about licenses usage + * @param {Object} opts Optional parameters + * @param {Boolean} opts.forceRefresh + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CertLicenseStatsResponse} and HTTP response + */ + licenseStatsWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + + let pathParams = { + }; + let queryParams = { + 'ForceRefresh': opts['forceRefresh'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = CertLicenseStatsResponse; + + return this.apiClient.callApi( + '/license/stats', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Display statistics about licenses usage + * @param {Object} opts Optional parameters + * @param {Boolean} opts.forceRefresh + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CertLicenseStatsResponse} + */ + licenseStats(opts) { + return this.licenseStatsWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Update License String + * @param {module:model/CertPutLicenseInfoRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CertPutLicenseInfoResponse} and HTTP response + */ + putLicenseInfoWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putLicenseInfo"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = CertPutLicenseInfoResponse; + + return this.apiClient.callApi( + '/license/update', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Update License String + * @param {module:model/CertPutLicenseInfoRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CertPutLicenseInfoResponse} + */ + putLicenseInfo(body) { + return this.putLicenseInfoWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/SchedulerServiceApi.js b/src/api/SchedulerServiceApi.js new file mode 100644 index 0000000..7ce2a77 --- /dev/null +++ b/src/api/SchedulerServiceApi.js @@ -0,0 +1,693 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import EntDeleteActionTemplateResponse from '../model/EntDeleteActionTemplateResponse'; +import EntDeleteJobTemplateResponse from '../model/EntDeleteJobTemplateResponse'; +import EntDeleteSelectorTemplateResponse from '../model/EntDeleteSelectorTemplateResponse'; +import EntDocTemplatesResponse from '../model/EntDocTemplatesResponse'; +import EntListActionTemplatesRequest from '../model/EntListActionTemplatesRequest'; +import EntListActionTemplatesResponse from '../model/EntListActionTemplatesResponse'; +import EntListJobTemplatesRequest from '../model/EntListJobTemplatesRequest'; +import EntListJobTemplatesResponse from '../model/EntListJobTemplatesResponse'; +import EntListSelectorTemplatesRequest from '../model/EntListSelectorTemplatesRequest'; +import EntListSelectorTemplatesResponse from '../model/EntListSelectorTemplatesResponse'; +import EntPlaygroundRequest from '../model/EntPlaygroundRequest'; +import EntPlaygroundResponse from '../model/EntPlaygroundResponse'; +import EntPutActionTemplateRequest from '../model/EntPutActionTemplateRequest'; +import EntPutActionTemplateResponse from '../model/EntPutActionTemplateResponse'; +import EntPutJobTemplateRequest from '../model/EntPutJobTemplateRequest'; +import EntPutJobTemplateResponse from '../model/EntPutJobTemplateResponse'; +import EntPutSelectorTemplateRequest from '../model/EntPutSelectorTemplateRequest'; +import EntPutSelectorTemplateResponse from '../model/EntPutSelectorTemplateResponse'; +import JobsDeleteJobResponse from '../model/JobsDeleteJobResponse'; +import JobsPutJobRequest from '../model/JobsPutJobRequest'; +import JobsPutJobResponse from '../model/JobsPutJobResponse'; + +/** +* SchedulerService service. +* @module api/SchedulerServiceApi +* @version 2.0 +*/ +export default class SchedulerServiceApi { + + /** + * Constructs a new SchedulerServiceApi. + * @alias module:api/SchedulerServiceApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + + + /** + * Templates management for actions + * @param {String} templateName + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteActionTemplateResponse} and HTTP response + */ + deleteActionTemplateWithHttpInfo(templateName) { + let postBody = null; + + // verify the required parameter 'templateName' is set + if (templateName === undefined || templateName === null) { + throw new Error("Missing the required parameter 'templateName' when calling deleteActionTemplate"); + } + + + let pathParams = { + 'TemplateName': templateName + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntDeleteActionTemplateResponse; + + return this.apiClient.callApi( + '/scheduler/templates/actions/{TemplateName}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Templates management for actions + * @param {String} templateName + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteActionTemplateResponse} + */ + deleteActionTemplate(templateName) { + return this.deleteActionTemplateWithHttpInfo(templateName) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Delete a job from the scheduler + * @param {String} jobID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JobsDeleteJobResponse} and HTTP response + */ + deleteJobWithHttpInfo(jobID) { + let postBody = null; + + // verify the required parameter 'jobID' is set + if (jobID === undefined || jobID === null) { + throw new Error("Missing the required parameter 'jobID' when calling deleteJob"); + } + + + let pathParams = { + 'JobID': jobID + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = JobsDeleteJobResponse; + + return this.apiClient.callApi( + '/scheduler/jobs/{JobID}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Delete a job from the scheduler + * @param {String} jobID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JobsDeleteJobResponse} + */ + deleteJob(jobID) { + return this.deleteJobWithHttpInfo(jobID) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Templates management for Jobs + * @param {String} name + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteJobTemplateResponse} and HTTP response + */ + deleteJobTemplateWithHttpInfo(name) { + let postBody = null; + + // verify the required parameter 'name' is set + if (name === undefined || name === null) { + throw new Error("Missing the required parameter 'name' when calling deleteJobTemplate"); + } + + + let pathParams = { + 'Name': name + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntDeleteJobTemplateResponse; + + return this.apiClient.callApi( + '/scheduler/templates/jobs/{Name}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Templates management for Jobs + * @param {String} name + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteJobTemplateResponse} + */ + deleteJobTemplate(name) { + return this.deleteJobTemplateWithHttpInfo(name) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Templates management for filters + * @param {String} templateName + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDeleteSelectorTemplateResponse} and HTTP response + */ + deleteSelectorTemplateWithHttpInfo(templateName) { + let postBody = null; + + // verify the required parameter 'templateName' is set + if (templateName === undefined || templateName === null) { + throw new Error("Missing the required parameter 'templateName' when calling deleteSelectorTemplate"); + } + + + let pathParams = { + 'TemplateName': templateName + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntDeleteSelectorTemplateResponse; + + return this.apiClient.callApi( + '/scheduler/templates/selectors/{TemplateName}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Templates management for filters + * @param {String} templateName + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDeleteSelectorTemplateResponse} + */ + deleteSelectorTemplate(templateName) { + return this.deleteSelectorTemplateWithHttpInfo(templateName) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Run a code sample + * @param {module:model/EntPlaygroundRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPlaygroundResponse} and HTTP response + */ + executePlaygroundCodeWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling executePlaygroundCode"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntPlaygroundResponse; + + return this.apiClient.callApi( + '/scheduler/templates/playground', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Run a code sample + * @param {module:model/EntPlaygroundRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPlaygroundResponse} + */ + executePlaygroundCode(body) { + return this.executePlaygroundCodeWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Templates management for actions + * @param {module:model/EntListActionTemplatesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntListActionTemplatesResponse} and HTTP response + */ + listActionTemplatesWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling listActionTemplates"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntListActionTemplatesResponse; + + return this.apiClient.callApi( + '/scheduler/templates/actions', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Templates management for actions + * @param {module:model/EntListActionTemplatesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntListActionTemplatesResponse} + */ + listActionTemplates(body) { + return this.listActionTemplatesWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * @param {String} type + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntDocTemplatesResponse} and HTTP response + */ + listDocTemplatesWithHttpInfo(type) { + let postBody = null; + + // verify the required parameter 'type' is set + if (type === undefined || type === null) { + throw new Error("Missing the required parameter 'type' when calling listDocTemplates"); + } + + + let pathParams = { + 'Type': type + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntDocTemplatesResponse; + + return this.apiClient.callApi( + '/scheduler/templates/docs/{Type}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * @param {String} type + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntDocTemplatesResponse} + */ + listDocTemplates(type) { + return this.listDocTemplatesWithHttpInfo(type) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Templates management for Jobs + * @param {module:model/EntListJobTemplatesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntListJobTemplatesResponse} and HTTP response + */ + listJobTemplatesWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling listJobTemplates"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntListJobTemplatesResponse; + + return this.apiClient.callApi( + '/scheduler/templates/jobs', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Templates management for Jobs + * @param {module:model/EntListJobTemplatesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntListJobTemplatesResponse} + */ + listJobTemplates(body) { + return this.listJobTemplatesWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Templates management for filters + * @param {module:model/EntListSelectorTemplatesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntListSelectorTemplatesResponse} and HTTP response + */ + listSelectorTemplatesWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling listSelectorTemplates"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntListSelectorTemplatesResponse; + + return this.apiClient.callApi( + '/scheduler/templates/selectors', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Templates management for filters + * @param {module:model/EntListSelectorTemplatesRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntListSelectorTemplatesResponse} + */ + listSelectorTemplates(body) { + return this.listSelectorTemplatesWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Templates management for actions + * @param {module:model/EntPutActionTemplateRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPutActionTemplateResponse} and HTTP response + */ + putActionTemplateWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putActionTemplate"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntPutActionTemplateResponse; + + return this.apiClient.callApi( + '/scheduler/templates/actions', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Templates management for actions + * @param {module:model/EntPutActionTemplateRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPutActionTemplateResponse} + */ + putActionTemplate(body) { + return this.putActionTemplateWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * [Enterprise Only] Put a job in the scheduler + * @param {module:model/JobsPutJobRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JobsPutJobResponse} and HTTP response + */ + putJobWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putJob"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = JobsPutJobResponse; + + return this.apiClient.callApi( + '/scheduler/jobs', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * [Enterprise Only] Put a job in the scheduler + * @param {module:model/JobsPutJobRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JobsPutJobResponse} + */ + putJob(body) { + return this.putJobWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Templates management for Jobs + * @param {String} name + * @param {module:model/EntPutJobTemplateRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPutJobTemplateResponse} and HTTP response + */ + putJobTemplateWithHttpInfo(name, body) { + let postBody = body; + + // verify the required parameter 'name' is set + if (name === undefined || name === null) { + throw new Error("Missing the required parameter 'name' when calling putJobTemplate"); + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putJobTemplate"); + } + + + let pathParams = { + 'Name': name + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntPutJobTemplateResponse; + + return this.apiClient.callApi( + '/scheduler/templates/jobs/{Name}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Templates management for Jobs + * @param {String} name + * @param {module:model/EntPutJobTemplateRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPutJobTemplateResponse} + */ + putJobTemplate(name, body) { + return this.putJobTemplateWithHttpInfo(name, body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Templates management for filters + * @param {module:model/EntPutSelectorTemplateRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EntPutSelectorTemplateResponse} and HTTP response + */ + putSelectorTemplateWithHttpInfo(body) { + let postBody = body; + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling putSelectorTemplate"); + } + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = EntPutSelectorTemplateResponse; + + return this.apiClient.callApi( + '/scheduler/templates/selectors', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Templates management for filters + * @param {module:model/EntPutSelectorTemplateRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EntPutSelectorTemplateResponse} + */ + putSelectorTemplate(body) { + return this.putSelectorTemplateWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..6d028cb --- /dev/null +++ b/src/index.js @@ -0,0 +1,1112 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from './ApiClient'; +import ActivityObject from './model/ActivityObject'; +import ActivityObjectType from './model/ActivityObjectType'; +import AuthLdapMapping from './model/AuthLdapMapping'; +import AuthLdapMemberOfMapping from './model/AuthLdapMemberOfMapping'; +import AuthLdapSearchFilter from './model/AuthLdapSearchFilter'; +import AuthLdapServerConfig from './model/AuthLdapServerConfig'; +import AuthOAuth2ClientConfig from './model/AuthOAuth2ClientConfig'; +import AuthOAuth2ConnectorBitbucketConfig from './model/AuthOAuth2ConnectorBitbucketConfig'; +import AuthOAuth2ConnectorCollection from './model/AuthOAuth2ConnectorCollection'; +import AuthOAuth2ConnectorConfig from './model/AuthOAuth2ConnectorConfig'; +import AuthOAuth2ConnectorGithubConfig from './model/AuthOAuth2ConnectorGithubConfig'; +import AuthOAuth2ConnectorGithubConfigOrg from './model/AuthOAuth2ConnectorGithubConfigOrg'; +import AuthOAuth2ConnectorGitlabConfig from './model/AuthOAuth2ConnectorGitlabConfig'; +import AuthOAuth2ConnectorLinkedinConfig from './model/AuthOAuth2ConnectorLinkedinConfig'; +import AuthOAuth2ConnectorMicrosoftConfig from './model/AuthOAuth2ConnectorMicrosoftConfig'; +import AuthOAuth2ConnectorOAuthConfig from './model/AuthOAuth2ConnectorOAuthConfig'; +import AuthOAuth2ConnectorOIDCConfig from './model/AuthOAuth2ConnectorOIDCConfig'; +import AuthOAuth2ConnectorPydioConfig from './model/AuthOAuth2ConnectorPydioConfig'; +import AuthOAuth2ConnectorPydioConfigConnector from './model/AuthOAuth2ConnectorPydioConfigConnector'; +import AuthOAuth2ConnectorSAMLConfig from './model/AuthOAuth2ConnectorSAMLConfig'; +import AuthOAuth2MappingRule from './model/AuthOAuth2MappingRule'; +import AuthPatListResponse from './model/AuthPatListResponse'; +import AuthPatType from './model/AuthPatType'; +import AuthPersonalAccessToken from './model/AuthPersonalAccessToken'; +import CertLicenseInfo from './model/CertLicenseInfo'; +import CertLicenseStatsResponse from './model/CertLicenseStatsResponse'; +import CertPutLicenseInfoRequest from './model/CertPutLicenseInfoRequest'; +import CertPutLicenseInfoResponse from './model/CertPutLicenseInfoResponse'; +import EntActionTemplate from './model/EntActionTemplate'; +import EntConnector from './model/EntConnector'; +import EntDeleteActionTemplateResponse from './model/EntDeleteActionTemplateResponse'; +import EntDeleteJobTemplateResponse from './model/EntDeleteJobTemplateResponse'; +import EntDeleteSelectorTemplateResponse from './model/EntDeleteSelectorTemplateResponse'; +import EntDeleteVersioningPolicyResponse from './model/EntDeleteVersioningPolicyResponse'; +import EntDeleteVirtualNodeResponse from './model/EntDeleteVirtualNodeResponse'; +import EntDocTemplatePiece from './model/EntDocTemplatePiece'; +import EntDocTemplatesResponse from './model/EntDocTemplatesResponse'; +import EntExternalDirectoryCollection from './model/EntExternalDirectoryCollection'; +import EntExternalDirectoryConfig from './model/EntExternalDirectoryConfig'; +import EntExternalDirectoryResponse from './model/EntExternalDirectoryResponse'; +import EntFrontLoginConnectorsResponse from './model/EntFrontLoginConnectorsResponse'; +import EntListAccessTokensRequest from './model/EntListAccessTokensRequest'; +import EntListActionTemplatesRequest from './model/EntListActionTemplatesRequest'; +import EntListActionTemplatesResponse from './model/EntListActionTemplatesResponse'; +import EntListJobTemplatesRequest from './model/EntListJobTemplatesRequest'; +import EntListJobTemplatesResponse from './model/EntListJobTemplatesResponse'; +import EntListSelectorTemplatesRequest from './model/EntListSelectorTemplatesRequest'; +import EntListSelectorTemplatesResponse from './model/EntListSelectorTemplatesResponse'; +import EntListSitesResponse from './model/EntListSitesResponse'; +import EntOAuth2ClientCollection from './model/EntOAuth2ClientCollection'; +import EntOAuth2ClientResponse from './model/EntOAuth2ClientResponse'; +import EntOAuth2ConnectorCollection from './model/EntOAuth2ConnectorCollection'; +import EntOAuth2ConnectorResponse from './model/EntOAuth2ConnectorResponse'; +import EntPersonalAccessTokenRequest from './model/EntPersonalAccessTokenRequest'; +import EntPersonalAccessTokenResponse from './model/EntPersonalAccessTokenResponse'; +import EntPlaygroundRequest from './model/EntPlaygroundRequest'; +import EntPlaygroundResponse from './model/EntPlaygroundResponse'; +import EntPutActionTemplateRequest from './model/EntPutActionTemplateRequest'; +import EntPutActionTemplateResponse from './model/EntPutActionTemplateResponse'; +import EntPutJobTemplateRequest from './model/EntPutJobTemplateRequest'; +import EntPutJobTemplateResponse from './model/EntPutJobTemplateResponse'; +import EntPutSelectorTemplateRequest from './model/EntPutSelectorTemplateRequest'; +import EntPutSelectorTemplateResponse from './model/EntPutSelectorTemplateResponse'; +import EntSelectorTemplate from './model/EntSelectorTemplate'; +import IdmACL from './model/IdmACL'; +import IdmACLAction from './model/IdmACLAction'; +import IdmPolicy from './model/IdmPolicy'; +import IdmPolicyCondition from './model/IdmPolicyCondition'; +import IdmPolicyEffect from './model/IdmPolicyEffect'; +import IdmPolicyGroup from './model/IdmPolicyGroup'; +import IdmPolicyResourceGroup from './model/IdmPolicyResourceGroup'; +import IdmRole from './model/IdmRole'; +import IdmUser from './model/IdmUser'; +import IdmWorkspace from './model/IdmWorkspace'; +import IdmWorkspaceScope from './model/IdmWorkspaceScope'; +import InstallProxyConfig from './model/InstallProxyConfig'; +import InstallTLSCertificate from './model/InstallTLSCertificate'; +import InstallTLSLetsEncrypt from './model/InstallTLSLetsEncrypt'; +import InstallTLSSelfSigned from './model/InstallTLSSelfSigned'; +import IpbanBannedConnection from './model/IpbanBannedConnection'; +import IpbanConnectionAttempt from './model/IpbanConnectionAttempt'; +import IpbanIPsCollection from './model/IpbanIPsCollection'; +import IpbanListBansCollection from './model/IpbanListBansCollection'; +import IpbanUnbanRequest from './model/IpbanUnbanRequest'; +import IpbanUnbanResponse from './model/IpbanUnbanResponse'; +import JobsAction from './model/JobsAction'; +import JobsActionLog from './model/JobsActionLog'; +import JobsActionMessage from './model/JobsActionMessage'; +import JobsActionOutput from './model/JobsActionOutput'; +import JobsActionOutputFilter from './model/JobsActionOutputFilter'; +import JobsContextMetaFilter from './model/JobsContextMetaFilter'; +import JobsContextMetaFilterType from './model/JobsContextMetaFilterType'; +import JobsDataSourceSelector from './model/JobsDataSourceSelector'; +import JobsDataSourceSelectorType from './model/JobsDataSourceSelectorType'; +import JobsDeleteJobResponse from './model/JobsDeleteJobResponse'; +import JobsIdmSelector from './model/JobsIdmSelector'; +import JobsIdmSelectorType from './model/JobsIdmSelectorType'; +import JobsJob from './model/JobsJob'; +import JobsJobParameter from './model/JobsJobParameter'; +import JobsNodesSelector from './model/JobsNodesSelector'; +import JobsPutJobRequest from './model/JobsPutJobRequest'; +import JobsPutJobResponse from './model/JobsPutJobResponse'; +import JobsSchedule from './model/JobsSchedule'; +import JobsTask from './model/JobsTask'; +import JobsTaskStatus from './model/JobsTaskStatus'; +import JobsTriggerFilter from './model/JobsTriggerFilter'; +import JobsUsersSelector from './model/JobsUsersSelector'; +import ListLogRequestLogFormat from './model/ListLogRequestLogFormat'; +import LogListLogRequest from './model/LogListLogRequest'; +import LogLogMessage from './model/LogLogMessage'; +import LogRelType from './model/LogRelType'; +import LogTimeRangeCursor from './model/LogTimeRangeCursor'; +import LogTimeRangeRequest from './model/LogTimeRangeRequest'; +import LogTimeRangeResult from './model/LogTimeRangeResult'; +import NodeChangeEventEventType from './model/NodeChangeEventEventType'; +import ObjectDataSource from './model/ObjectDataSource'; +import ObjectEncryptionMode from './model/ObjectEncryptionMode'; +import ObjectStorageType from './model/ObjectStorageType'; +import ProtobufAny from './model/ProtobufAny'; +import ReportsAuditedWorkspace from './model/ReportsAuditedWorkspace'; +import ReportsSharedResource from './model/ReportsSharedResource'; +import ReportsSharedResourceShareType from './model/ReportsSharedResourceShareType'; +import ReportsSharedResourcesRequest from './model/ReportsSharedResourcesRequest'; +import ReportsSharedResourcesResponse from './model/ReportsSharedResourcesResponse'; +import RestDeleteResponse from './model/RestDeleteResponse'; +import RestError from './model/RestError'; +import RestLogMessageCollection from './model/RestLogMessageCollection'; +import RestRevokeResponse from './model/RestRevokeResponse'; +import RestTimeRangeResultCollection from './model/RestTimeRangeResultCollection'; +import ServiceOperationType from './model/ServiceOperationType'; +import ServiceQuery from './model/ServiceQuery'; +import ServiceResourcePolicy from './model/ServiceResourcePolicy'; +import ServiceResourcePolicyAction from './model/ServiceResourcePolicyAction'; +import ServiceResourcePolicyPolicyEffect from './model/ServiceResourcePolicyPolicyEffect'; +import ServiceResourcePolicyQuery from './model/ServiceResourcePolicyQuery'; +import TreeChangeLog from './model/TreeChangeLog'; +import TreeNode from './model/TreeNode'; +import TreeNodeChangeEvent from './model/TreeNodeChangeEvent'; +import TreeNodeType from './model/TreeNodeType'; +import TreeVersioningKeepPeriod from './model/TreeVersioningKeepPeriod'; +import TreeVersioningNodeDeletedStrategy from './model/TreeVersioningNodeDeletedStrategy'; +import TreeVersioningPolicy from './model/TreeVersioningPolicy'; +import TreeWorkspaceRelativePath from './model/TreeWorkspaceRelativePath'; +import AuditDataServiceApi from './api/AuditDataServiceApi'; +import EnterpriseConfigServiceApi from './api/EnterpriseConfigServiceApi'; +import EnterpriseFrontendServiceApi from './api/EnterpriseFrontendServiceApi'; +import EnterpriseLogServiceApi from './api/EnterpriseLogServiceApi'; +import EnterprisePolicyServiceApi from './api/EnterprisePolicyServiceApi'; +import EnterpriseTokenServiceApi from './api/EnterpriseTokenServiceApi'; +import LicenseServiceApi from './api/LicenseServiceApi'; +import SchedulerServiceApi from './api/SchedulerServiceApi'; + + +/** +* ERROR_UNKNOWN.
+* The index module provides access to constructors for all the classes which comprise the public API. +*

+* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: +*

+* var PydioCellsEnterpriseRestApi = require('index'); // See note below*.
+* var xxxSvc = new PydioCellsEnterpriseRestApi.XxxApi(); // Allocate the API class we're going to use.
+* var yyyModel = new PydioCellsEnterpriseRestApi.Yyy(); // Construct a model instance.
+* yyyModel.someProperty = 'someValue';
+* ...
+* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
+* ...
+* 
+* *NOTE: For a top-level AMD script, use require(['index'], function(){...}) +* and put the application logic within the callback function. +*

+*

+* A non-AMD browser application (discouraged) might do something like this: +*

+* var xxxSvc = new PydioCellsEnterpriseRestApi.XxxApi(); // Allocate the API class we're going to use.
+* var yyy = new PydioCellsEnterpriseRestApi.Yyy(); // Construct a model instance.
+* yyyModel.someProperty = 'someValue';
+* ...
+* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
+* ...
+* 
+*

+* @module index +* @version 2.0 +*/ +export { + /** + * The ApiClient constructor. + * @property {module:ApiClient} + */ + ApiClient, + + /** + * The ActivityObject model constructor. + * @property {module:model/ActivityObject} + */ + ActivityObject, + + /** + * The ActivityObjectType model constructor. + * @property {module:model/ActivityObjectType} + */ + ActivityObjectType, + + /** + * The AuthLdapMapping model constructor. + * @property {module:model/AuthLdapMapping} + */ + AuthLdapMapping, + + /** + * The AuthLdapMemberOfMapping model constructor. + * @property {module:model/AuthLdapMemberOfMapping} + */ + AuthLdapMemberOfMapping, + + /** + * The AuthLdapSearchFilter model constructor. + * @property {module:model/AuthLdapSearchFilter} + */ + AuthLdapSearchFilter, + + /** + * The AuthLdapServerConfig model constructor. + * @property {module:model/AuthLdapServerConfig} + */ + AuthLdapServerConfig, + + /** + * The AuthOAuth2ClientConfig model constructor. + * @property {module:model/AuthOAuth2ClientConfig} + */ + AuthOAuth2ClientConfig, + + /** + * The AuthOAuth2ConnectorBitbucketConfig model constructor. + * @property {module:model/AuthOAuth2ConnectorBitbucketConfig} + */ + AuthOAuth2ConnectorBitbucketConfig, + + /** + * The AuthOAuth2ConnectorCollection model constructor. + * @property {module:model/AuthOAuth2ConnectorCollection} + */ + AuthOAuth2ConnectorCollection, + + /** + * The AuthOAuth2ConnectorConfig model constructor. + * @property {module:model/AuthOAuth2ConnectorConfig} + */ + AuthOAuth2ConnectorConfig, + + /** + * The AuthOAuth2ConnectorGithubConfig model constructor. + * @property {module:model/AuthOAuth2ConnectorGithubConfig} + */ + AuthOAuth2ConnectorGithubConfig, + + /** + * The AuthOAuth2ConnectorGithubConfigOrg model constructor. + * @property {module:model/AuthOAuth2ConnectorGithubConfigOrg} + */ + AuthOAuth2ConnectorGithubConfigOrg, + + /** + * The AuthOAuth2ConnectorGitlabConfig model constructor. + * @property {module:model/AuthOAuth2ConnectorGitlabConfig} + */ + AuthOAuth2ConnectorGitlabConfig, + + /** + * The AuthOAuth2ConnectorLinkedinConfig model constructor. + * @property {module:model/AuthOAuth2ConnectorLinkedinConfig} + */ + AuthOAuth2ConnectorLinkedinConfig, + + /** + * The AuthOAuth2ConnectorMicrosoftConfig model constructor. + * @property {module:model/AuthOAuth2ConnectorMicrosoftConfig} + */ + AuthOAuth2ConnectorMicrosoftConfig, + + /** + * The AuthOAuth2ConnectorOAuthConfig model constructor. + * @property {module:model/AuthOAuth2ConnectorOAuthConfig} + */ + AuthOAuth2ConnectorOAuthConfig, + + /** + * The AuthOAuth2ConnectorOIDCConfig model constructor. + * @property {module:model/AuthOAuth2ConnectorOIDCConfig} + */ + AuthOAuth2ConnectorOIDCConfig, + + /** + * The AuthOAuth2ConnectorPydioConfig model constructor. + * @property {module:model/AuthOAuth2ConnectorPydioConfig} + */ + AuthOAuth2ConnectorPydioConfig, + + /** + * The AuthOAuth2ConnectorPydioConfigConnector model constructor. + * @property {module:model/AuthOAuth2ConnectorPydioConfigConnector} + */ + AuthOAuth2ConnectorPydioConfigConnector, + + /** + * The AuthOAuth2ConnectorSAMLConfig model constructor. + * @property {module:model/AuthOAuth2ConnectorSAMLConfig} + */ + AuthOAuth2ConnectorSAMLConfig, + + /** + * The AuthOAuth2MappingRule model constructor. + * @property {module:model/AuthOAuth2MappingRule} + */ + AuthOAuth2MappingRule, + + /** + * The AuthPatListResponse model constructor. + * @property {module:model/AuthPatListResponse} + */ + AuthPatListResponse, + + /** + * The AuthPatType model constructor. + * @property {module:model/AuthPatType} + */ + AuthPatType, + + /** + * The AuthPersonalAccessToken model constructor. + * @property {module:model/AuthPersonalAccessToken} + */ + AuthPersonalAccessToken, + + /** + * The CertLicenseInfo model constructor. + * @property {module:model/CertLicenseInfo} + */ + CertLicenseInfo, + + /** + * The CertLicenseStatsResponse model constructor. + * @property {module:model/CertLicenseStatsResponse} + */ + CertLicenseStatsResponse, + + /** + * The CertPutLicenseInfoRequest model constructor. + * @property {module:model/CertPutLicenseInfoRequest} + */ + CertPutLicenseInfoRequest, + + /** + * The CertPutLicenseInfoResponse model constructor. + * @property {module:model/CertPutLicenseInfoResponse} + */ + CertPutLicenseInfoResponse, + + /** + * The EntActionTemplate model constructor. + * @property {module:model/EntActionTemplate} + */ + EntActionTemplate, + + /** + * The EntConnector model constructor. + * @property {module:model/EntConnector} + */ + EntConnector, + + /** + * The EntDeleteActionTemplateResponse model constructor. + * @property {module:model/EntDeleteActionTemplateResponse} + */ + EntDeleteActionTemplateResponse, + + /** + * The EntDeleteJobTemplateResponse model constructor. + * @property {module:model/EntDeleteJobTemplateResponse} + */ + EntDeleteJobTemplateResponse, + + /** + * The EntDeleteSelectorTemplateResponse model constructor. + * @property {module:model/EntDeleteSelectorTemplateResponse} + */ + EntDeleteSelectorTemplateResponse, + + /** + * The EntDeleteVersioningPolicyResponse model constructor. + * @property {module:model/EntDeleteVersioningPolicyResponse} + */ + EntDeleteVersioningPolicyResponse, + + /** + * The EntDeleteVirtualNodeResponse model constructor. + * @property {module:model/EntDeleteVirtualNodeResponse} + */ + EntDeleteVirtualNodeResponse, + + /** + * The EntDocTemplatePiece model constructor. + * @property {module:model/EntDocTemplatePiece} + */ + EntDocTemplatePiece, + + /** + * The EntDocTemplatesResponse model constructor. + * @property {module:model/EntDocTemplatesResponse} + */ + EntDocTemplatesResponse, + + /** + * The EntExternalDirectoryCollection model constructor. + * @property {module:model/EntExternalDirectoryCollection} + */ + EntExternalDirectoryCollection, + + /** + * The EntExternalDirectoryConfig model constructor. + * @property {module:model/EntExternalDirectoryConfig} + */ + EntExternalDirectoryConfig, + + /** + * The EntExternalDirectoryResponse model constructor. + * @property {module:model/EntExternalDirectoryResponse} + */ + EntExternalDirectoryResponse, + + /** + * The EntFrontLoginConnectorsResponse model constructor. + * @property {module:model/EntFrontLoginConnectorsResponse} + */ + EntFrontLoginConnectorsResponse, + + /** + * The EntListAccessTokensRequest model constructor. + * @property {module:model/EntListAccessTokensRequest} + */ + EntListAccessTokensRequest, + + /** + * The EntListActionTemplatesRequest model constructor. + * @property {module:model/EntListActionTemplatesRequest} + */ + EntListActionTemplatesRequest, + + /** + * The EntListActionTemplatesResponse model constructor. + * @property {module:model/EntListActionTemplatesResponse} + */ + EntListActionTemplatesResponse, + + /** + * The EntListJobTemplatesRequest model constructor. + * @property {module:model/EntListJobTemplatesRequest} + */ + EntListJobTemplatesRequest, + + /** + * The EntListJobTemplatesResponse model constructor. + * @property {module:model/EntListJobTemplatesResponse} + */ + EntListJobTemplatesResponse, + + /** + * The EntListSelectorTemplatesRequest model constructor. + * @property {module:model/EntListSelectorTemplatesRequest} + */ + EntListSelectorTemplatesRequest, + + /** + * The EntListSelectorTemplatesResponse model constructor. + * @property {module:model/EntListSelectorTemplatesResponse} + */ + EntListSelectorTemplatesResponse, + + /** + * The EntListSitesResponse model constructor. + * @property {module:model/EntListSitesResponse} + */ + EntListSitesResponse, + + /** + * The EntOAuth2ClientCollection model constructor. + * @property {module:model/EntOAuth2ClientCollection} + */ + EntOAuth2ClientCollection, + + /** + * The EntOAuth2ClientResponse model constructor. + * @property {module:model/EntOAuth2ClientResponse} + */ + EntOAuth2ClientResponse, + + /** + * The EntOAuth2ConnectorCollection model constructor. + * @property {module:model/EntOAuth2ConnectorCollection} + */ + EntOAuth2ConnectorCollection, + + /** + * The EntOAuth2ConnectorResponse model constructor. + * @property {module:model/EntOAuth2ConnectorResponse} + */ + EntOAuth2ConnectorResponse, + + /** + * The EntPersonalAccessTokenRequest model constructor. + * @property {module:model/EntPersonalAccessTokenRequest} + */ + EntPersonalAccessTokenRequest, + + /** + * The EntPersonalAccessTokenResponse model constructor. + * @property {module:model/EntPersonalAccessTokenResponse} + */ + EntPersonalAccessTokenResponse, + + /** + * The EntPlaygroundRequest model constructor. + * @property {module:model/EntPlaygroundRequest} + */ + EntPlaygroundRequest, + + /** + * The EntPlaygroundResponse model constructor. + * @property {module:model/EntPlaygroundResponse} + */ + EntPlaygroundResponse, + + /** + * The EntPutActionTemplateRequest model constructor. + * @property {module:model/EntPutActionTemplateRequest} + */ + EntPutActionTemplateRequest, + + /** + * The EntPutActionTemplateResponse model constructor. + * @property {module:model/EntPutActionTemplateResponse} + */ + EntPutActionTemplateResponse, + + /** + * The EntPutJobTemplateRequest model constructor. + * @property {module:model/EntPutJobTemplateRequest} + */ + EntPutJobTemplateRequest, + + /** + * The EntPutJobTemplateResponse model constructor. + * @property {module:model/EntPutJobTemplateResponse} + */ + EntPutJobTemplateResponse, + + /** + * The EntPutSelectorTemplateRequest model constructor. + * @property {module:model/EntPutSelectorTemplateRequest} + */ + EntPutSelectorTemplateRequest, + + /** + * The EntPutSelectorTemplateResponse model constructor. + * @property {module:model/EntPutSelectorTemplateResponse} + */ + EntPutSelectorTemplateResponse, + + /** + * The EntSelectorTemplate model constructor. + * @property {module:model/EntSelectorTemplate} + */ + EntSelectorTemplate, + + /** + * The IdmACL model constructor. + * @property {module:model/IdmACL} + */ + IdmACL, + + /** + * The IdmACLAction model constructor. + * @property {module:model/IdmACLAction} + */ + IdmACLAction, + + /** + * The IdmPolicy model constructor. + * @property {module:model/IdmPolicy} + */ + IdmPolicy, + + /** + * The IdmPolicyCondition model constructor. + * @property {module:model/IdmPolicyCondition} + */ + IdmPolicyCondition, + + /** + * The IdmPolicyEffect model constructor. + * @property {module:model/IdmPolicyEffect} + */ + IdmPolicyEffect, + + /** + * The IdmPolicyGroup model constructor. + * @property {module:model/IdmPolicyGroup} + */ + IdmPolicyGroup, + + /** + * The IdmPolicyResourceGroup model constructor. + * @property {module:model/IdmPolicyResourceGroup} + */ + IdmPolicyResourceGroup, + + /** + * The IdmRole model constructor. + * @property {module:model/IdmRole} + */ + IdmRole, + + /** + * The IdmUser model constructor. + * @property {module:model/IdmUser} + */ + IdmUser, + + /** + * The IdmWorkspace model constructor. + * @property {module:model/IdmWorkspace} + */ + IdmWorkspace, + + /** + * The IdmWorkspaceScope model constructor. + * @property {module:model/IdmWorkspaceScope} + */ + IdmWorkspaceScope, + + /** + * The InstallProxyConfig model constructor. + * @property {module:model/InstallProxyConfig} + */ + InstallProxyConfig, + + /** + * The InstallTLSCertificate model constructor. + * @property {module:model/InstallTLSCertificate} + */ + InstallTLSCertificate, + + /** + * The InstallTLSLetsEncrypt model constructor. + * @property {module:model/InstallTLSLetsEncrypt} + */ + InstallTLSLetsEncrypt, + + /** + * The InstallTLSSelfSigned model constructor. + * @property {module:model/InstallTLSSelfSigned} + */ + InstallTLSSelfSigned, + + /** + * The IpbanBannedConnection model constructor. + * @property {module:model/IpbanBannedConnection} + */ + IpbanBannedConnection, + + /** + * The IpbanConnectionAttempt model constructor. + * @property {module:model/IpbanConnectionAttempt} + */ + IpbanConnectionAttempt, + + /** + * The IpbanIPsCollection model constructor. + * @property {module:model/IpbanIPsCollection} + */ + IpbanIPsCollection, + + /** + * The IpbanListBansCollection model constructor. + * @property {module:model/IpbanListBansCollection} + */ + IpbanListBansCollection, + + /** + * The IpbanUnbanRequest model constructor. + * @property {module:model/IpbanUnbanRequest} + */ + IpbanUnbanRequest, + + /** + * The IpbanUnbanResponse model constructor. + * @property {module:model/IpbanUnbanResponse} + */ + IpbanUnbanResponse, + + /** + * The JobsAction model constructor. + * @property {module:model/JobsAction} + */ + JobsAction, + + /** + * The JobsActionLog model constructor. + * @property {module:model/JobsActionLog} + */ + JobsActionLog, + + /** + * The JobsActionMessage model constructor. + * @property {module:model/JobsActionMessage} + */ + JobsActionMessage, + + /** + * The JobsActionOutput model constructor. + * @property {module:model/JobsActionOutput} + */ + JobsActionOutput, + + /** + * The JobsActionOutputFilter model constructor. + * @property {module:model/JobsActionOutputFilter} + */ + JobsActionOutputFilter, + + /** + * The JobsContextMetaFilter model constructor. + * @property {module:model/JobsContextMetaFilter} + */ + JobsContextMetaFilter, + + /** + * The JobsContextMetaFilterType model constructor. + * @property {module:model/JobsContextMetaFilterType} + */ + JobsContextMetaFilterType, + + /** + * The JobsDataSourceSelector model constructor. + * @property {module:model/JobsDataSourceSelector} + */ + JobsDataSourceSelector, + + /** + * The JobsDataSourceSelectorType model constructor. + * @property {module:model/JobsDataSourceSelectorType} + */ + JobsDataSourceSelectorType, + + /** + * The JobsDeleteJobResponse model constructor. + * @property {module:model/JobsDeleteJobResponse} + */ + JobsDeleteJobResponse, + + /** + * The JobsIdmSelector model constructor. + * @property {module:model/JobsIdmSelector} + */ + JobsIdmSelector, + + /** + * The JobsIdmSelectorType model constructor. + * @property {module:model/JobsIdmSelectorType} + */ + JobsIdmSelectorType, + + /** + * The JobsJob model constructor. + * @property {module:model/JobsJob} + */ + JobsJob, + + /** + * The JobsJobParameter model constructor. + * @property {module:model/JobsJobParameter} + */ + JobsJobParameter, + + /** + * The JobsNodesSelector model constructor. + * @property {module:model/JobsNodesSelector} + */ + JobsNodesSelector, + + /** + * The JobsPutJobRequest model constructor. + * @property {module:model/JobsPutJobRequest} + */ + JobsPutJobRequest, + + /** + * The JobsPutJobResponse model constructor. + * @property {module:model/JobsPutJobResponse} + */ + JobsPutJobResponse, + + /** + * The JobsSchedule model constructor. + * @property {module:model/JobsSchedule} + */ + JobsSchedule, + + /** + * The JobsTask model constructor. + * @property {module:model/JobsTask} + */ + JobsTask, + + /** + * The JobsTaskStatus model constructor. + * @property {module:model/JobsTaskStatus} + */ + JobsTaskStatus, + + /** + * The JobsTriggerFilter model constructor. + * @property {module:model/JobsTriggerFilter} + */ + JobsTriggerFilter, + + /** + * The JobsUsersSelector model constructor. + * @property {module:model/JobsUsersSelector} + */ + JobsUsersSelector, + + /** + * The ListLogRequestLogFormat model constructor. + * @property {module:model/ListLogRequestLogFormat} + */ + ListLogRequestLogFormat, + + /** + * The LogListLogRequest model constructor. + * @property {module:model/LogListLogRequest} + */ + LogListLogRequest, + + /** + * The LogLogMessage model constructor. + * @property {module:model/LogLogMessage} + */ + LogLogMessage, + + /** + * The LogRelType model constructor. + * @property {module:model/LogRelType} + */ + LogRelType, + + /** + * The LogTimeRangeCursor model constructor. + * @property {module:model/LogTimeRangeCursor} + */ + LogTimeRangeCursor, + + /** + * The LogTimeRangeRequest model constructor. + * @property {module:model/LogTimeRangeRequest} + */ + LogTimeRangeRequest, + + /** + * The LogTimeRangeResult model constructor. + * @property {module:model/LogTimeRangeResult} + */ + LogTimeRangeResult, + + /** + * The NodeChangeEventEventType model constructor. + * @property {module:model/NodeChangeEventEventType} + */ + NodeChangeEventEventType, + + /** + * The ObjectDataSource model constructor. + * @property {module:model/ObjectDataSource} + */ + ObjectDataSource, + + /** + * The ObjectEncryptionMode model constructor. + * @property {module:model/ObjectEncryptionMode} + */ + ObjectEncryptionMode, + + /** + * The ObjectStorageType model constructor. + * @property {module:model/ObjectStorageType} + */ + ObjectStorageType, + + /** + * The ProtobufAny model constructor. + * @property {module:model/ProtobufAny} + */ + ProtobufAny, + + /** + * The ReportsAuditedWorkspace model constructor. + * @property {module:model/ReportsAuditedWorkspace} + */ + ReportsAuditedWorkspace, + + /** + * The ReportsSharedResource model constructor. + * @property {module:model/ReportsSharedResource} + */ + ReportsSharedResource, + + /** + * The ReportsSharedResourceShareType model constructor. + * @property {module:model/ReportsSharedResourceShareType} + */ + ReportsSharedResourceShareType, + + /** + * The ReportsSharedResourcesRequest model constructor. + * @property {module:model/ReportsSharedResourcesRequest} + */ + ReportsSharedResourcesRequest, + + /** + * The ReportsSharedResourcesResponse model constructor. + * @property {module:model/ReportsSharedResourcesResponse} + */ + ReportsSharedResourcesResponse, + + /** + * The RestDeleteResponse model constructor. + * @property {module:model/RestDeleteResponse} + */ + RestDeleteResponse, + + /** + * The RestError model constructor. + * @property {module:model/RestError} + */ + RestError, + + /** + * The RestLogMessageCollection model constructor. + * @property {module:model/RestLogMessageCollection} + */ + RestLogMessageCollection, + + /** + * The RestRevokeResponse model constructor. + * @property {module:model/RestRevokeResponse} + */ + RestRevokeResponse, + + /** + * The RestTimeRangeResultCollection model constructor. + * @property {module:model/RestTimeRangeResultCollection} + */ + RestTimeRangeResultCollection, + + /** + * The ServiceOperationType model constructor. + * @property {module:model/ServiceOperationType} + */ + ServiceOperationType, + + /** + * The ServiceQuery model constructor. + * @property {module:model/ServiceQuery} + */ + ServiceQuery, + + /** + * The ServiceResourcePolicy model constructor. + * @property {module:model/ServiceResourcePolicy} + */ + ServiceResourcePolicy, + + /** + * The ServiceResourcePolicyAction model constructor. + * @property {module:model/ServiceResourcePolicyAction} + */ + ServiceResourcePolicyAction, + + /** + * The ServiceResourcePolicyPolicyEffect model constructor. + * @property {module:model/ServiceResourcePolicyPolicyEffect} + */ + ServiceResourcePolicyPolicyEffect, + + /** + * The ServiceResourcePolicyQuery model constructor. + * @property {module:model/ServiceResourcePolicyQuery} + */ + ServiceResourcePolicyQuery, + + /** + * The TreeChangeLog model constructor. + * @property {module:model/TreeChangeLog} + */ + TreeChangeLog, + + /** + * The TreeNode model constructor. + * @property {module:model/TreeNode} + */ + TreeNode, + + /** + * The TreeNodeChangeEvent model constructor. + * @property {module:model/TreeNodeChangeEvent} + */ + TreeNodeChangeEvent, + + /** + * The TreeNodeType model constructor. + * @property {module:model/TreeNodeType} + */ + TreeNodeType, + + /** + * The TreeVersioningKeepPeriod model constructor. + * @property {module:model/TreeVersioningKeepPeriod} + */ + TreeVersioningKeepPeriod, + + /** + * The TreeVersioningNodeDeletedStrategy model constructor. + * @property {module:model/TreeVersioningNodeDeletedStrategy} + */ + TreeVersioningNodeDeletedStrategy, + + /** + * The TreeVersioningPolicy model constructor. + * @property {module:model/TreeVersioningPolicy} + */ + TreeVersioningPolicy, + + /** + * The TreeWorkspaceRelativePath model constructor. + * @property {module:model/TreeWorkspaceRelativePath} + */ + TreeWorkspaceRelativePath, + + /** + * The AuditDataServiceApi service constructor. + * @property {module:api/AuditDataServiceApi} + */ + AuditDataServiceApi, + + /** + * The EnterpriseConfigServiceApi service constructor. + * @property {module:api/EnterpriseConfigServiceApi} + */ + EnterpriseConfigServiceApi, + + /** + * The EnterpriseFrontendServiceApi service constructor. + * @property {module:api/EnterpriseFrontendServiceApi} + */ + EnterpriseFrontendServiceApi, + + /** + * The EnterpriseLogServiceApi service constructor. + * @property {module:api/EnterpriseLogServiceApi} + */ + EnterpriseLogServiceApi, + + /** + * The EnterprisePolicyServiceApi service constructor. + * @property {module:api/EnterprisePolicyServiceApi} + */ + EnterprisePolicyServiceApi, + + /** + * The EnterpriseTokenServiceApi service constructor. + * @property {module:api/EnterpriseTokenServiceApi} + */ + EnterpriseTokenServiceApi, + + /** + * The LicenseServiceApi service constructor. + * @property {module:api/LicenseServiceApi} + */ + LicenseServiceApi, + + /** + * The SchedulerServiceApi service constructor. + * @property {module:api/SchedulerServiceApi} + */ + SchedulerServiceApi +}; diff --git a/src/model/ActivityObject.js b/src/model/ActivityObject.js new file mode 100644 index 0000000..b087727 --- /dev/null +++ b/src/model/ActivityObject.js @@ -0,0 +1,508 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import ActivityObjectType from './ActivityObjectType'; + + + + + +/** +* The ActivityObject model module. +* @module model/ActivityObject +* @version 2.0 +*/ +export default class ActivityObject { + /** + * Constructs a new ActivityObject. + * @alias module:model/ActivityObject + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ActivityObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ActivityObject} obj Optional instance to populate. + * @return {module:model/ActivityObject} The populated ActivityObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ActivityObject(); + + + + + + if (data.hasOwnProperty('jsonLdContext')) { + obj['jsonLdContext'] = ApiClient.convertToType(data['jsonLdContext'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ActivityObjectType.constructFromObject(data['type']); + } + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('summary')) { + obj['summary'] = ApiClient.convertToType(data['summary'], 'String'); + } + if (data.hasOwnProperty('markdown')) { + obj['markdown'] = ApiClient.convertToType(data['markdown'], 'String'); + } + if (data.hasOwnProperty('context')) { + obj['context'] = ActivityObject.constructFromObject(data['context']); + } + if (data.hasOwnProperty('attachment')) { + obj['attachment'] = ActivityObject.constructFromObject(data['attachment']); + } + if (data.hasOwnProperty('attributedTo')) { + obj['attributedTo'] = ActivityObject.constructFromObject(data['attributedTo']); + } + if (data.hasOwnProperty('audience')) { + obj['audience'] = ActivityObject.constructFromObject(data['audience']); + } + if (data.hasOwnProperty('content')) { + obj['content'] = ActivityObject.constructFromObject(data['content']); + } + if (data.hasOwnProperty('startTime')) { + obj['startTime'] = ApiClient.convertToType(data['startTime'], 'Date'); + } + if (data.hasOwnProperty('endTime')) { + obj['endTime'] = ApiClient.convertToType(data['endTime'], 'Date'); + } + if (data.hasOwnProperty('published')) { + obj['published'] = ApiClient.convertToType(data['published'], 'Date'); + } + if (data.hasOwnProperty('updated')) { + obj['updated'] = ApiClient.convertToType(data['updated'], 'Date'); + } + if (data.hasOwnProperty('duration')) { + obj['duration'] = ApiClient.convertToType(data['duration'], 'Date'); + } + if (data.hasOwnProperty('url')) { + obj['url'] = ActivityObject.constructFromObject(data['url']); + } + if (data.hasOwnProperty('mediaType')) { + obj['mediaType'] = ApiClient.convertToType(data['mediaType'], 'String'); + } + if (data.hasOwnProperty('icon')) { + obj['icon'] = ActivityObject.constructFromObject(data['icon']); + } + if (data.hasOwnProperty('image')) { + obj['image'] = ActivityObject.constructFromObject(data['image']); + } + if (data.hasOwnProperty('preview')) { + obj['preview'] = ActivityObject.constructFromObject(data['preview']); + } + if (data.hasOwnProperty('location')) { + obj['location'] = ActivityObject.constructFromObject(data['location']); + } + if (data.hasOwnProperty('inReplyTo')) { + obj['inReplyTo'] = ActivityObject.constructFromObject(data['inReplyTo']); + } + if (data.hasOwnProperty('replies')) { + obj['replies'] = ActivityObject.constructFromObject(data['replies']); + } + if (data.hasOwnProperty('tag')) { + obj['tag'] = ActivityObject.constructFromObject(data['tag']); + } + if (data.hasOwnProperty('generator')) { + obj['generator'] = ActivityObject.constructFromObject(data['generator']); + } + if (data.hasOwnProperty('to')) { + obj['to'] = ActivityObject.constructFromObject(data['to']); + } + if (data.hasOwnProperty('bto')) { + obj['bto'] = ActivityObject.constructFromObject(data['bto']); + } + if (data.hasOwnProperty('cc')) { + obj['cc'] = ActivityObject.constructFromObject(data['cc']); + } + if (data.hasOwnProperty('bcc')) { + obj['bcc'] = ActivityObject.constructFromObject(data['bcc']); + } + if (data.hasOwnProperty('actor')) { + obj['actor'] = ActivityObject.constructFromObject(data['actor']); + } + if (data.hasOwnProperty('object')) { + obj['object'] = ActivityObject.constructFromObject(data['object']); + } + if (data.hasOwnProperty('target')) { + obj['target'] = ActivityObject.constructFromObject(data['target']); + } + if (data.hasOwnProperty('result')) { + obj['result'] = ActivityObject.constructFromObject(data['result']); + } + if (data.hasOwnProperty('origin')) { + obj['origin'] = ActivityObject.constructFromObject(data['origin']); + } + if (data.hasOwnProperty('instrument')) { + obj['instrument'] = ActivityObject.constructFromObject(data['instrument']); + } + if (data.hasOwnProperty('href')) { + obj['href'] = ApiClient.convertToType(data['href'], 'String'); + } + if (data.hasOwnProperty('rel')) { + obj['rel'] = ApiClient.convertToType(data['rel'], 'String'); + } + if (data.hasOwnProperty('hreflang')) { + obj['hreflang'] = ApiClient.convertToType(data['hreflang'], 'String'); + } + if (data.hasOwnProperty('height')) { + obj['height'] = ApiClient.convertToType(data['height'], 'Number'); + } + if (data.hasOwnProperty('width')) { + obj['width'] = ApiClient.convertToType(data['width'], 'Number'); + } + if (data.hasOwnProperty('oneOf')) { + obj['oneOf'] = ActivityObject.constructFromObject(data['oneOf']); + } + if (data.hasOwnProperty('anyOf')) { + obj['anyOf'] = ActivityObject.constructFromObject(data['anyOf']); + } + if (data.hasOwnProperty('closed')) { + obj['closed'] = ApiClient.convertToType(data['closed'], 'Date'); + } + if (data.hasOwnProperty('subject')) { + obj['subject'] = ActivityObject.constructFromObject(data['subject']); + } + if (data.hasOwnProperty('relationship')) { + obj['relationship'] = ActivityObject.constructFromObject(data['relationship']); + } + if (data.hasOwnProperty('formerType')) { + obj['formerType'] = ActivityObjectType.constructFromObject(data['formerType']); + } + if (data.hasOwnProperty('deleted')) { + obj['deleted'] = ApiClient.convertToType(data['deleted'], 'Date'); + } + if (data.hasOwnProperty('accuracy')) { + obj['accuracy'] = ApiClient.convertToType(data['accuracy'], 'Number'); + } + if (data.hasOwnProperty('altitude')) { + obj['altitude'] = ApiClient.convertToType(data['altitude'], 'Number'); + } + if (data.hasOwnProperty('latitude')) { + obj['latitude'] = ApiClient.convertToType(data['latitude'], 'Number'); + } + if (data.hasOwnProperty('longitude')) { + obj['longitude'] = ApiClient.convertToType(data['longitude'], 'Number'); + } + if (data.hasOwnProperty('radius')) { + obj['radius'] = ApiClient.convertToType(data['radius'], 'Number'); + } + if (data.hasOwnProperty('units')) { + obj['units'] = ApiClient.convertToType(data['units'], 'String'); + } + if (data.hasOwnProperty('items')) { + obj['items'] = ApiClient.convertToType(data['items'], [ActivityObject]); + } + if (data.hasOwnProperty('totalItems')) { + obj['totalItems'] = ApiClient.convertToType(data['totalItems'], 'Number'); + } + if (data.hasOwnProperty('current')) { + obj['current'] = ActivityObject.constructFromObject(data['current']); + } + if (data.hasOwnProperty('first')) { + obj['first'] = ActivityObject.constructFromObject(data['first']); + } + if (data.hasOwnProperty('last')) { + obj['last'] = ActivityObject.constructFromObject(data['last']); + } + if (data.hasOwnProperty('partOf')) { + obj['partOf'] = ActivityObject.constructFromObject(data['partOf']); + } + if (data.hasOwnProperty('next')) { + obj['next'] = ActivityObject.constructFromObject(data['next']); + } + if (data.hasOwnProperty('prev')) { + obj['prev'] = ActivityObject.constructFromObject(data['prev']); + } + } + return obj; + } + + /** + * @member {String} jsonLdContext + */ + jsonLdContext = undefined; + /** + * @member {module:model/ActivityObjectType} type + */ + type = undefined; + /** + * @member {String} id + */ + id = undefined; + /** + * @member {String} name + */ + name = undefined; + /** + * @member {String} summary + */ + summary = undefined; + /** + * @member {String} markdown + */ + markdown = undefined; + /** + * @member {module:model/ActivityObject} context + */ + context = undefined; + /** + * @member {module:model/ActivityObject} attachment + */ + attachment = undefined; + /** + * @member {module:model/ActivityObject} attributedTo + */ + attributedTo = undefined; + /** + * @member {module:model/ActivityObject} audience + */ + audience = undefined; + /** + * @member {module:model/ActivityObject} content + */ + content = undefined; + /** + * @member {Date} startTime + */ + startTime = undefined; + /** + * @member {Date} endTime + */ + endTime = undefined; + /** + * @member {Date} published + */ + published = undefined; + /** + * @member {Date} updated + */ + updated = undefined; + /** + * @member {Date} duration + */ + duration = undefined; + /** + * @member {module:model/ActivityObject} url + */ + url = undefined; + /** + * @member {String} mediaType + */ + mediaType = undefined; + /** + * @member {module:model/ActivityObject} icon + */ + icon = undefined; + /** + * @member {module:model/ActivityObject} image + */ + image = undefined; + /** + * @member {module:model/ActivityObject} preview + */ + preview = undefined; + /** + * @member {module:model/ActivityObject} location + */ + location = undefined; + /** + * @member {module:model/ActivityObject} inReplyTo + */ + inReplyTo = undefined; + /** + * @member {module:model/ActivityObject} replies + */ + replies = undefined; + /** + * @member {module:model/ActivityObject} tag + */ + tag = undefined; + /** + * @member {module:model/ActivityObject} generator + */ + generator = undefined; + /** + * @member {module:model/ActivityObject} to + */ + to = undefined; + /** + * @member {module:model/ActivityObject} bto + */ + bto = undefined; + /** + * @member {module:model/ActivityObject} cc + */ + cc = undefined; + /** + * @member {module:model/ActivityObject} bcc + */ + bcc = undefined; + /** + * @member {module:model/ActivityObject} actor + */ + actor = undefined; + /** + * @member {module:model/ActivityObject} object + */ + object = undefined; + /** + * @member {module:model/ActivityObject} target + */ + target = undefined; + /** + * @member {module:model/ActivityObject} result + */ + result = undefined; + /** + * @member {module:model/ActivityObject} origin + */ + origin = undefined; + /** + * @member {module:model/ActivityObject} instrument + */ + instrument = undefined; + /** + * @member {String} href + */ + href = undefined; + /** + * @member {String} rel + */ + rel = undefined; + /** + * @member {String} hreflang + */ + hreflang = undefined; + /** + * @member {Number} height + */ + height = undefined; + /** + * @member {Number} width + */ + width = undefined; + /** + * @member {module:model/ActivityObject} oneOf + */ + oneOf = undefined; + /** + * @member {module:model/ActivityObject} anyOf + */ + anyOf = undefined; + /** + * @member {Date} closed + */ + closed = undefined; + /** + * @member {module:model/ActivityObject} subject + */ + subject = undefined; + /** + * @member {module:model/ActivityObject} relationship + */ + relationship = undefined; + /** + * @member {module:model/ActivityObjectType} formerType + */ + formerType = undefined; + /** + * @member {Date} deleted + */ + deleted = undefined; + /** + * @member {Number} accuracy + */ + accuracy = undefined; + /** + * @member {Number} altitude + */ + altitude = undefined; + /** + * @member {Number} latitude + */ + latitude = undefined; + /** + * @member {Number} longitude + */ + longitude = undefined; + /** + * @member {Number} radius + */ + radius = undefined; + /** + * @member {String} units + */ + units = undefined; + /** + * @member {Array.} items + */ + items = undefined; + /** + * @member {Number} totalItems + */ + totalItems = undefined; + /** + * @member {module:model/ActivityObject} current + */ + current = undefined; + /** + * @member {module:model/ActivityObject} first + */ + first = undefined; + /** + * @member {module:model/ActivityObject} last + */ + last = undefined; + /** + * @member {module:model/ActivityObject} partOf + */ + partOf = undefined; + /** + * @member {module:model/ActivityObject} next + */ + next = undefined; + /** + * @member {module:model/ActivityObject} prev + */ + prev = undefined; + + + + + + + + +} + + diff --git a/src/model/ActivityObjectType.js b/src/model/ActivityObjectType.js new file mode 100644 index 0000000..a0659de --- /dev/null +++ b/src/model/ActivityObjectType.js @@ -0,0 +1,456 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class ActivityObjectType. +* @enum {} +* @readonly +*/ +export default class ActivityObjectType { + + /** + * value: "BaseObject" + * @const + */ + BaseObject = "BaseObject"; + + + /** + * value: "Activity" + * @const + */ + Activity = "Activity"; + + + /** + * value: "Link" + * @const + */ + Link = "Link"; + + + /** + * value: "Mention" + * @const + */ + Mention = "Mention"; + + + /** + * value: "Collection" + * @const + */ + Collection = "Collection"; + + + /** + * value: "OrderedCollection" + * @const + */ + OrderedCollection = "OrderedCollection"; + + + /** + * value: "CollectionPage" + * @const + */ + CollectionPage = "CollectionPage"; + + + /** + * value: "OrderedCollectionPage" + * @const + */ + OrderedCollectionPage = "OrderedCollectionPage"; + + + /** + * value: "Application" + * @const + */ + Application = "Application"; + + + /** + * value: "Group" + * @const + */ + Group = "Group"; + + + /** + * value: "Organization" + * @const + */ + Organization = "Organization"; + + + /** + * value: "Person" + * @const + */ + Person = "Person"; + + + /** + * value: "Service" + * @const + */ + Service = "Service"; + + + /** + * value: "Article" + * @const + */ + Article = "Article"; + + + /** + * value: "Audio" + * @const + */ + Audio = "Audio"; + + + /** + * value: "Document" + * @const + */ + Document = "Document"; + + + /** + * value: "Event" + * @const + */ + Event = "Event"; + + + /** + * value: "Image" + * @const + */ + Image = "Image"; + + + /** + * value: "Note" + * @const + */ + Note = "Note"; + + + /** + * value: "Page" + * @const + */ + Page = "Page"; + + + /** + * value: "Place" + * @const + */ + Place = "Place"; + + + /** + * value: "Profile" + * @const + */ + Profile = "Profile"; + + + /** + * value: "Relationship" + * @const + */ + Relationship = "Relationship"; + + + /** + * value: "Tombstone" + * @const + */ + Tombstone = "Tombstone"; + + + /** + * value: "Video" + * @const + */ + Video = "Video"; + + + /** + * value: "Accept" + * @const + */ + Accept = "Accept"; + + + /** + * value: "Add" + * @const + */ + Add = "Add"; + + + /** + * value: "Announce" + * @const + */ + Announce = "Announce"; + + + /** + * value: "Arrive" + * @const + */ + Arrive = "Arrive"; + + + /** + * value: "Block" + * @const + */ + Block = "Block"; + + + /** + * value: "Create" + * @const + */ + Create = "Create"; + + + /** + * value: "Delete" + * @const + */ + Delete = "Delete"; + + + /** + * value: "Dislike" + * @const + */ + Dislike = "Dislike"; + + + /** + * value: "Flag" + * @const + */ + Flag = "Flag"; + + + /** + * value: "Follow" + * @const + */ + Follow = "Follow"; + + + /** + * value: "Ignore" + * @const + */ + Ignore = "Ignore"; + + + /** + * value: "Invite" + * @const + */ + Invite = "Invite"; + + + /** + * value: "Join" + * @const + */ + Join = "Join"; + + + /** + * value: "Leave" + * @const + */ + Leave = "Leave"; + + + /** + * value: "Like" + * @const + */ + Like = "Like"; + + + /** + * value: "Listen" + * @const + */ + Listen = "Listen"; + + + /** + * value: "Move" + * @const + */ + Move = "Move"; + + + /** + * value: "Offer" + * @const + */ + Offer = "Offer"; + + + /** + * value: "Question" + * @const + */ + Question = "Question"; + + + /** + * value: "Reject" + * @const + */ + Reject = "Reject"; + + + /** + * value: "Read" + * @const + */ + Read = "Read"; + + + /** + * value: "Remove" + * @const + */ + Remove = "Remove"; + + + /** + * value: "TentativeReject" + * @const + */ + TentativeReject = "TentativeReject"; + + + /** + * value: "TentativeAccept" + * @const + */ + TentativeAccept = "TentativeAccept"; + + + /** + * value: "Travel" + * @const + */ + Travel = "Travel"; + + + /** + * value: "Undo" + * @const + */ + Undo = "Undo"; + + + /** + * value: "Update" + * @const + */ + Update = "Update"; + + + /** + * value: "UpdateComment" + * @const + */ + UpdateComment = "UpdateComment"; + + + /** + * value: "UpdateMeta" + * @const + */ + UpdateMeta = "UpdateMeta"; + + + /** + * value: "View" + * @const + */ + View = "View"; + + + /** + * value: "Workspace" + * @const + */ + Workspace = "Workspace"; + + + /** + * value: "Digest" + * @const + */ + Digest = "Digest"; + + + /** + * value: "Folder" + * @const + */ + Folder = "Folder"; + + + /** + * value: "Cell" + * @const + */ + Cell = "Cell"; + + + /** + * value: "Share" + * @const + */ + Share = "Share"; + + + + /** + * Returns a ActivityObjectType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ActivityObjectType} The enum ActivityObjectType value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/AuthLdapMapping.js b/src/model/AuthLdapMapping.js new file mode 100644 index 0000000..a39000d --- /dev/null +++ b/src/model/AuthLdapMapping.js @@ -0,0 +1,101 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The AuthLdapMapping model module. +* @module model/AuthLdapMapping +* @version 2.0 +*/ +export default class AuthLdapMapping { + /** + * Constructs a new AuthLdapMapping. + * @alias module:model/AuthLdapMapping + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthLdapMapping from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthLdapMapping} obj Optional instance to populate. + * @return {module:model/AuthLdapMapping} The populated AuthLdapMapping instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthLdapMapping(); + + + + + + if (data.hasOwnProperty('LeftAttribute')) { + obj['LeftAttribute'] = ApiClient.convertToType(data['LeftAttribute'], 'String'); + } + if (data.hasOwnProperty('RightAttribute')) { + obj['RightAttribute'] = ApiClient.convertToType(data['RightAttribute'], 'String'); + } + if (data.hasOwnProperty('RuleString')) { + obj['RuleString'] = ApiClient.convertToType(data['RuleString'], 'String'); + } + if (data.hasOwnProperty('RolePrefix')) { + obj['RolePrefix'] = ApiClient.convertToType(data['RolePrefix'], 'String'); + } + } + return obj; + } + + /** + * @member {String} LeftAttribute + */ + LeftAttribute = undefined; + /** + * @member {String} RightAttribute + */ + RightAttribute = undefined; + /** + * @member {String} RuleString + */ + RuleString = undefined; + /** + * @member {String} RolePrefix + */ + RolePrefix = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthLdapMemberOfMapping.js b/src/model/AuthLdapMemberOfMapping.js new file mode 100644 index 0000000..42b712d --- /dev/null +++ b/src/model/AuthLdapMemberOfMapping.js @@ -0,0 +1,131 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import AuthLdapMapping from './AuthLdapMapping'; +import AuthLdapSearchFilter from './AuthLdapSearchFilter'; + + + + + +/** +* The AuthLdapMemberOfMapping model module. +* @module model/AuthLdapMemberOfMapping +* @version 2.0 +*/ +export default class AuthLdapMemberOfMapping { + /** + * Constructs a new AuthLdapMemberOfMapping. + * @alias module:model/AuthLdapMemberOfMapping + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthLdapMemberOfMapping from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthLdapMemberOfMapping} obj Optional instance to populate. + * @return {module:model/AuthLdapMemberOfMapping} The populated AuthLdapMemberOfMapping instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthLdapMemberOfMapping(); + + + + + + if (data.hasOwnProperty('Mapping')) { + obj['Mapping'] = AuthLdapMapping.constructFromObject(data['Mapping']); + } + if (data.hasOwnProperty('GroupFilter')) { + obj['GroupFilter'] = AuthLdapSearchFilter.constructFromObject(data['GroupFilter']); + } + if (data.hasOwnProperty('SupportNestedGroup')) { + obj['SupportNestedGroup'] = ApiClient.convertToType(data['SupportNestedGroup'], 'Boolean'); + } + if (data.hasOwnProperty('RealMemberOf')) { + obj['RealMemberOf'] = ApiClient.convertToType(data['RealMemberOf'], 'Boolean'); + } + if (data.hasOwnProperty('RealMemberOfAttribute')) { + obj['RealMemberOfAttribute'] = ApiClient.convertToType(data['RealMemberOfAttribute'], 'String'); + } + if (data.hasOwnProperty('RealMemberOfValueFormat')) { + obj['RealMemberOfValueFormat'] = ApiClient.convertToType(data['RealMemberOfValueFormat'], 'String'); + } + if (data.hasOwnProperty('PydioMemberOfAttribute')) { + obj['PydioMemberOfAttribute'] = ApiClient.convertToType(data['PydioMemberOfAttribute'], 'String'); + } + if (data.hasOwnProperty('PydioMemberOfValueFormat')) { + obj['PydioMemberOfValueFormat'] = ApiClient.convertToType(data['PydioMemberOfValueFormat'], 'String'); + } + } + return obj; + } + + /** + * @member {module:model/AuthLdapMapping} Mapping + */ + Mapping = undefined; + /** + * @member {module:model/AuthLdapSearchFilter} GroupFilter + */ + GroupFilter = undefined; + /** + * @member {Boolean} SupportNestedGroup + */ + SupportNestedGroup = undefined; + /** + * @member {Boolean} RealMemberOf + */ + RealMemberOf = undefined; + /** + * @member {String} RealMemberOfAttribute + */ + RealMemberOfAttribute = undefined; + /** + * @member {String} RealMemberOfValueFormat + */ + RealMemberOfValueFormat = undefined; + /** + * @member {String} PydioMemberOfAttribute + */ + PydioMemberOfAttribute = undefined; + /** + * @member {String} PydioMemberOfValueFormat + */ + PydioMemberOfValueFormat = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthLdapSearchFilter.js b/src/model/AuthLdapSearchFilter.js new file mode 100644 index 0000000..8d77e43 --- /dev/null +++ b/src/model/AuthLdapSearchFilter.js @@ -0,0 +1,108 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The AuthLdapSearchFilter model module. +* @module model/AuthLdapSearchFilter +* @version 2.0 +*/ +export default class AuthLdapSearchFilter { + /** + * Constructs a new AuthLdapSearchFilter. + * @alias module:model/AuthLdapSearchFilter + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthLdapSearchFilter from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthLdapSearchFilter} obj Optional instance to populate. + * @return {module:model/AuthLdapSearchFilter} The populated AuthLdapSearchFilter instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthLdapSearchFilter(); + + + + + + if (data.hasOwnProperty('DNs')) { + obj['DNs'] = ApiClient.convertToType(data['DNs'], ['String']); + } + if (data.hasOwnProperty('Filter')) { + obj['Filter'] = ApiClient.convertToType(data['Filter'], 'String'); + } + if (data.hasOwnProperty('IDAttribute')) { + obj['IDAttribute'] = ApiClient.convertToType(data['IDAttribute'], 'String'); + } + if (data.hasOwnProperty('DisplayAttribute')) { + obj['DisplayAttribute'] = ApiClient.convertToType(data['DisplayAttribute'], 'String'); + } + if (data.hasOwnProperty('Scope')) { + obj['Scope'] = ApiClient.convertToType(data['Scope'], 'String'); + } + } + return obj; + } + + /** + * @member {Array.} DNs + */ + DNs = undefined; + /** + * @member {String} Filter + */ + Filter = undefined; + /** + * @member {String} IDAttribute + */ + IDAttribute = undefined; + /** + * @member {String} DisplayAttribute + */ + DisplayAttribute = undefined; + /** + * @member {String} Scope + */ + Scope = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthLdapServerConfig.js b/src/model/AuthLdapServerConfig.js new file mode 100644 index 0000000..9ca54ca --- /dev/null +++ b/src/model/AuthLdapServerConfig.js @@ -0,0 +1,188 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import AuthLdapMapping from './AuthLdapMapping'; +import AuthLdapMemberOfMapping from './AuthLdapMemberOfMapping'; +import AuthLdapSearchFilter from './AuthLdapSearchFilter'; + + + + + +/** +* The AuthLdapServerConfig model module. +* @module model/AuthLdapServerConfig +* @version 2.0 +*/ +export default class AuthLdapServerConfig { + /** + * Constructs a new AuthLdapServerConfig. + * @alias module:model/AuthLdapServerConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthLdapServerConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthLdapServerConfig} obj Optional instance to populate. + * @return {module:model/AuthLdapServerConfig} The populated AuthLdapServerConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthLdapServerConfig(); + + + + + + if (data.hasOwnProperty('ConfigId')) { + obj['ConfigId'] = ApiClient.convertToType(data['ConfigId'], 'String'); + } + if (data.hasOwnProperty('DomainName')) { + obj['DomainName'] = ApiClient.convertToType(data['DomainName'], 'String'); + } + if (data.hasOwnProperty('Host')) { + obj['Host'] = ApiClient.convertToType(data['Host'], 'String'); + } + if (data.hasOwnProperty('Connection')) { + obj['Connection'] = ApiClient.convertToType(data['Connection'], 'String'); + } + if (data.hasOwnProperty('BindDN')) { + obj['BindDN'] = ApiClient.convertToType(data['BindDN'], 'String'); + } + if (data.hasOwnProperty('BindPW')) { + obj['BindPW'] = ApiClient.convertToType(data['BindPW'], 'String'); + } + if (data.hasOwnProperty('SkipVerifyCertificate')) { + obj['SkipVerifyCertificate'] = ApiClient.convertToType(data['SkipVerifyCertificate'], 'Boolean'); + } + if (data.hasOwnProperty('RootCA')) { + obj['RootCA'] = ApiClient.convertToType(data['RootCA'], 'String'); + } + if (data.hasOwnProperty('RootCAData')) { + obj['RootCAData'] = ApiClient.convertToType(data['RootCAData'], 'String'); + } + if (data.hasOwnProperty('PageSize')) { + obj['PageSize'] = ApiClient.convertToType(data['PageSize'], 'Number'); + } + if (data.hasOwnProperty('User')) { + obj['User'] = AuthLdapSearchFilter.constructFromObject(data['User']); + } + if (data.hasOwnProperty('MappingRules')) { + obj['MappingRules'] = ApiClient.convertToType(data['MappingRules'], [AuthLdapMapping]); + } + if (data.hasOwnProperty('MemberOfMapping')) { + obj['MemberOfMapping'] = AuthLdapMemberOfMapping.constructFromObject(data['MemberOfMapping']); + } + if (data.hasOwnProperty('RolePrefix')) { + obj['RolePrefix'] = ApiClient.convertToType(data['RolePrefix'], 'String'); + } + if (data.hasOwnProperty('Schedule')) { + obj['Schedule'] = ApiClient.convertToType(data['Schedule'], 'String'); + } + if (data.hasOwnProperty('SchedulerDetails')) { + obj['SchedulerDetails'] = ApiClient.convertToType(data['SchedulerDetails'], 'String'); + } + } + return obj; + } + + /** + * @member {String} ConfigId + */ + ConfigId = undefined; + /** + * @member {String} DomainName + */ + DomainName = undefined; + /** + * @member {String} Host + */ + Host = undefined; + /** + * @member {String} Connection + */ + Connection = undefined; + /** + * @member {String} BindDN + */ + BindDN = undefined; + /** + * @member {String} BindPW + */ + BindPW = undefined; + /** + * @member {Boolean} SkipVerifyCertificate + */ + SkipVerifyCertificate = undefined; + /** + * @member {String} RootCA + */ + RootCA = undefined; + /** + * @member {String} RootCAData + */ + RootCAData = undefined; + /** + * @member {Number} PageSize + */ + PageSize = undefined; + /** + * @member {module:model/AuthLdapSearchFilter} User + */ + User = undefined; + /** + * @member {Array.} MappingRules + */ + MappingRules = undefined; + /** + * @member {module:model/AuthLdapMemberOfMapping} MemberOfMapping + */ + MemberOfMapping = undefined; + /** + * @member {String} RolePrefix + */ + RolePrefix = undefined; + /** + * @member {String} Schedule + */ + Schedule = undefined; + /** + * @member {String} SchedulerDetails + */ + SchedulerDetails = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ClientConfig.js b/src/model/AuthOAuth2ClientConfig.js new file mode 100644 index 0000000..cf659fd --- /dev/null +++ b/src/model/AuthOAuth2ClientConfig.js @@ -0,0 +1,129 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The AuthOAuth2ClientConfig model module. +* @module model/AuthOAuth2ClientConfig +* @version 2.0 +*/ +export default class AuthOAuth2ClientConfig { + /** + * Constructs a new AuthOAuth2ClientConfig. + * @alias module:model/AuthOAuth2ClientConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ClientConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ClientConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ClientConfig} The populated AuthOAuth2ClientConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ClientConfig(); + + + + + + if (data.hasOwnProperty('ClientID')) { + obj['ClientID'] = ApiClient.convertToType(data['ClientID'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Secret')) { + obj['Secret'] = ApiClient.convertToType(data['Secret'], 'String'); + } + if (data.hasOwnProperty('RedirectURIs')) { + obj['RedirectURIs'] = ApiClient.convertToType(data['RedirectURIs'], ['String']); + } + if (data.hasOwnProperty('GrantTypes')) { + obj['GrantTypes'] = ApiClient.convertToType(data['GrantTypes'], ['String']); + } + if (data.hasOwnProperty('ResponseTypes')) { + obj['ResponseTypes'] = ApiClient.convertToType(data['ResponseTypes'], ['String']); + } + if (data.hasOwnProperty('Scope')) { + obj['Scope'] = ApiClient.convertToType(data['Scope'], 'String'); + } + if (data.hasOwnProperty('Audience')) { + obj['Audience'] = ApiClient.convertToType(data['Audience'], ['String']); + } + } + return obj; + } + + /** + * @member {String} ClientID + */ + ClientID = undefined; + /** + * @member {String} Name + */ + Name = undefined; + /** + * @member {String} Secret + */ + Secret = undefined; + /** + * @member {Array.} RedirectURIs + */ + RedirectURIs = undefined; + /** + * @member {Array.} GrantTypes + */ + GrantTypes = undefined; + /** + * @member {Array.} ResponseTypes + */ + ResponseTypes = undefined; + /** + * @member {String} Scope + */ + Scope = undefined; + /** + * @member {Array.} Audience + */ + Audience = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ConnectorBitbucketConfig.js b/src/model/AuthOAuth2ConnectorBitbucketConfig.js new file mode 100644 index 0000000..681dfce --- /dev/null +++ b/src/model/AuthOAuth2ConnectorBitbucketConfig.js @@ -0,0 +1,101 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The AuthOAuth2ConnectorBitbucketConfig model module. +* @module model/AuthOAuth2ConnectorBitbucketConfig +* @version 2.0 +*/ +export default class AuthOAuth2ConnectorBitbucketConfig { + /** + * Constructs a new AuthOAuth2ConnectorBitbucketConfig. + * @alias module:model/AuthOAuth2ConnectorBitbucketConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ConnectorBitbucketConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorBitbucketConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorBitbucketConfig} The populated AuthOAuth2ConnectorBitbucketConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorBitbucketConfig(); + + + + + + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String'); + } + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String'); + } + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String'); + } + if (data.hasOwnProperty('teams')) { + obj['teams'] = ApiClient.convertToType(data['teams'], ['String']); + } + } + return obj; + } + + /** + * @member {String} clientID + */ + clientID = undefined; + /** + * @member {String} clientSecret + */ + clientSecret = undefined; + /** + * @member {String} redirectURI + */ + redirectURI = undefined; + /** + * @member {Array.} teams + */ + teams = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ConnectorCollection.js b/src/model/AuthOAuth2ConnectorCollection.js new file mode 100644 index 0000000..d8faeda --- /dev/null +++ b/src/model/AuthOAuth2ConnectorCollection.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import AuthOAuth2ConnectorConfig from './AuthOAuth2ConnectorConfig'; + + + + + +/** +* The AuthOAuth2ConnectorCollection model module. +* @module model/AuthOAuth2ConnectorCollection +* @version 2.0 +*/ +export default class AuthOAuth2ConnectorCollection { + /** + * Constructs a new AuthOAuth2ConnectorCollection. + * @alias module:model/AuthOAuth2ConnectorCollection + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ConnectorCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorCollection} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorCollection} The populated AuthOAuth2ConnectorCollection instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorCollection(); + + + + + + if (data.hasOwnProperty('connectors')) { + obj['connectors'] = ApiClient.convertToType(data['connectors'], [AuthOAuth2ConnectorConfig]); + } + } + return obj; + } + + /** + * @member {Array.} connectors + */ + connectors = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ConnectorConfig.js b/src/model/AuthOAuth2ConnectorConfig.js new file mode 100644 index 0000000..f9d783f --- /dev/null +++ b/src/model/AuthOAuth2ConnectorConfig.js @@ -0,0 +1,189 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import AuthLdapServerConfig from './AuthLdapServerConfig'; +import AuthOAuth2ConnectorBitbucketConfig from './AuthOAuth2ConnectorBitbucketConfig'; +import AuthOAuth2ConnectorGithubConfig from './AuthOAuth2ConnectorGithubConfig'; +import AuthOAuth2ConnectorGitlabConfig from './AuthOAuth2ConnectorGitlabConfig'; +import AuthOAuth2ConnectorLinkedinConfig from './AuthOAuth2ConnectorLinkedinConfig'; +import AuthOAuth2ConnectorMicrosoftConfig from './AuthOAuth2ConnectorMicrosoftConfig'; +import AuthOAuth2ConnectorOAuthConfig from './AuthOAuth2ConnectorOAuthConfig'; +import AuthOAuth2ConnectorOIDCConfig from './AuthOAuth2ConnectorOIDCConfig'; +import AuthOAuth2ConnectorPydioConfig from './AuthOAuth2ConnectorPydioConfig'; +import AuthOAuth2ConnectorSAMLConfig from './AuthOAuth2ConnectorSAMLConfig'; +import AuthOAuth2MappingRule from './AuthOAuth2MappingRule'; + + + + + +/** +* The AuthOAuth2ConnectorConfig model module. +* @module model/AuthOAuth2ConnectorConfig +* @version 2.0 +*/ +export default class AuthOAuth2ConnectorConfig { + /** + * Constructs a new AuthOAuth2ConnectorConfig. + * @alias module:model/AuthOAuth2ConnectorConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ConnectorConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorConfig} The populated AuthOAuth2ConnectorConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorConfig(); + + + + + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('mappingRules')) { + obj['mappingRules'] = ApiClient.convertToType(data['mappingRules'], [AuthOAuth2MappingRule]); + } + if (data.hasOwnProperty('configpydio')) { + obj['configpydio'] = AuthOAuth2ConnectorPydioConfig.constructFromObject(data['configpydio']); + } + if (data.hasOwnProperty('configoidc')) { + obj['configoidc'] = AuthOAuth2ConnectorOIDCConfig.constructFromObject(data['configoidc']); + } + if (data.hasOwnProperty('configsaml')) { + obj['configsaml'] = AuthOAuth2ConnectorSAMLConfig.constructFromObject(data['configsaml']); + } + if (data.hasOwnProperty('configbitbucket')) { + obj['configbitbucket'] = AuthOAuth2ConnectorBitbucketConfig.constructFromObject(data['configbitbucket']); + } + if (data.hasOwnProperty('configgithub')) { + obj['configgithub'] = AuthOAuth2ConnectorGithubConfig.constructFromObject(data['configgithub']); + } + if (data.hasOwnProperty('configgitlab')) { + obj['configgitlab'] = AuthOAuth2ConnectorGitlabConfig.constructFromObject(data['configgitlab']); + } + if (data.hasOwnProperty('configlinkedin')) { + obj['configlinkedin'] = AuthOAuth2ConnectorLinkedinConfig.constructFromObject(data['configlinkedin']); + } + if (data.hasOwnProperty('configmicrosoft')) { + obj['configmicrosoft'] = AuthOAuth2ConnectorMicrosoftConfig.constructFromObject(data['configmicrosoft']); + } + if (data.hasOwnProperty('configldap')) { + obj['configldap'] = AuthLdapServerConfig.constructFromObject(data['configldap']); + } + if (data.hasOwnProperty('configoauth')) { + obj['configoauth'] = AuthOAuth2ConnectorOAuthConfig.constructFromObject(data['configoauth']); + } + if (data.hasOwnProperty('sites')) { + obj['sites'] = ApiClient.convertToType(data['sites'], ['String']); + } + } + return obj; + } + + /** + * @member {String} id + */ + id = undefined; + /** + * @member {String} type + */ + type = undefined; + /** + * @member {String} name + */ + name = undefined; + /** + * @member {Array.} mappingRules + */ + mappingRules = undefined; + /** + * @member {module:model/AuthOAuth2ConnectorPydioConfig} configpydio + */ + configpydio = undefined; + /** + * @member {module:model/AuthOAuth2ConnectorOIDCConfig} configoidc + */ + configoidc = undefined; + /** + * @member {module:model/AuthOAuth2ConnectorSAMLConfig} configsaml + */ + configsaml = undefined; + /** + * @member {module:model/AuthOAuth2ConnectorBitbucketConfig} configbitbucket + */ + configbitbucket = undefined; + /** + * @member {module:model/AuthOAuth2ConnectorGithubConfig} configgithub + */ + configgithub = undefined; + /** + * @member {module:model/AuthOAuth2ConnectorGitlabConfig} configgitlab + */ + configgitlab = undefined; + /** + * @member {module:model/AuthOAuth2ConnectorLinkedinConfig} configlinkedin + */ + configlinkedin = undefined; + /** + * @member {module:model/AuthOAuth2ConnectorMicrosoftConfig} configmicrosoft + */ + configmicrosoft = undefined; + /** + * @member {module:model/AuthLdapServerConfig} configldap + */ + configldap = undefined; + /** + * @member {module:model/AuthOAuth2ConnectorOAuthConfig} configoauth + */ + configoauth = undefined; + /** + * @member {Array.} sites + */ + sites = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ConnectorGithubConfig.js b/src/model/AuthOAuth2ConnectorGithubConfig.js new file mode 100644 index 0000000..bd8bd11 --- /dev/null +++ b/src/model/AuthOAuth2ConnectorGithubConfig.js @@ -0,0 +1,137 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import AuthOAuth2ConnectorGithubConfigOrg from './AuthOAuth2ConnectorGithubConfigOrg'; + + + + + +/** +* The AuthOAuth2ConnectorGithubConfig model module. +* @module model/AuthOAuth2ConnectorGithubConfig +* @version 2.0 +*/ +export default class AuthOAuth2ConnectorGithubConfig { + /** + * Constructs a new AuthOAuth2ConnectorGithubConfig. + * @alias module:model/AuthOAuth2ConnectorGithubConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ConnectorGithubConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorGithubConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorGithubConfig} The populated AuthOAuth2ConnectorGithubConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorGithubConfig(); + + + + + + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String'); + } + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String'); + } + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String'); + } + if (data.hasOwnProperty('orgs')) { + obj['orgs'] = ApiClient.convertToType(data['orgs'], [AuthOAuth2ConnectorGithubConfigOrg]); + } + if (data.hasOwnProperty('loadAllGroups')) { + obj['loadAllGroups'] = ApiClient.convertToType(data['loadAllGroups'], 'Boolean'); + } + if (data.hasOwnProperty('teamNameField')) { + obj['teamNameField'] = ApiClient.convertToType(data['teamNameField'], 'String'); + } + if (data.hasOwnProperty('useLoginAsID')) { + obj['useLoginAsID'] = ApiClient.convertToType(data['useLoginAsID'], 'Boolean'); + } + if (data.hasOwnProperty('hostName')) { + obj['hostName'] = ApiClient.convertToType(data['hostName'], 'String'); + } + if (data.hasOwnProperty('rootCA')) { + obj['rootCA'] = ApiClient.convertToType(data['rootCA'], 'String'); + } + } + return obj; + } + + /** + * @member {String} clientID + */ + clientID = undefined; + /** + * @member {String} clientSecret + */ + clientSecret = undefined; + /** + * @member {String} redirectURI + */ + redirectURI = undefined; + /** + * @member {Array.} orgs + */ + orgs = undefined; + /** + * @member {Boolean} loadAllGroups + */ + loadAllGroups = undefined; + /** + * @member {String} teamNameField + */ + teamNameField = undefined; + /** + * @member {Boolean} useLoginAsID + */ + useLoginAsID = undefined; + /** + * @member {String} hostName + */ + hostName = undefined; + /** + * @member {String} rootCA + */ + rootCA = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ConnectorGithubConfigOrg.js b/src/model/AuthOAuth2ConnectorGithubConfigOrg.js new file mode 100644 index 0000000..1ea0b75 --- /dev/null +++ b/src/model/AuthOAuth2ConnectorGithubConfigOrg.js @@ -0,0 +1,87 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The AuthOAuth2ConnectorGithubConfigOrg model module. +* @module model/AuthOAuth2ConnectorGithubConfigOrg +* @version 2.0 +*/ +export default class AuthOAuth2ConnectorGithubConfigOrg { + /** + * Constructs a new AuthOAuth2ConnectorGithubConfigOrg. + * @alias module:model/AuthOAuth2ConnectorGithubConfigOrg + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ConnectorGithubConfigOrg from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorGithubConfigOrg} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorGithubConfigOrg} The populated AuthOAuth2ConnectorGithubConfigOrg instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorGithubConfigOrg(); + + + + + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('teams')) { + obj['teams'] = ApiClient.convertToType(data['teams'], ['String']); + } + } + return obj; + } + + /** + * @member {String} name + */ + name = undefined; + /** + * @member {Array.} teams + */ + teams = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ConnectorGitlabConfig.js b/src/model/AuthOAuth2ConnectorGitlabConfig.js new file mode 100644 index 0000000..66e4e38 --- /dev/null +++ b/src/model/AuthOAuth2ConnectorGitlabConfig.js @@ -0,0 +1,115 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The AuthOAuth2ConnectorGitlabConfig model module. +* @module model/AuthOAuth2ConnectorGitlabConfig +* @version 2.0 +*/ +export default class AuthOAuth2ConnectorGitlabConfig { + /** + * Constructs a new AuthOAuth2ConnectorGitlabConfig. + * @alias module:model/AuthOAuth2ConnectorGitlabConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ConnectorGitlabConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorGitlabConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorGitlabConfig} The populated AuthOAuth2ConnectorGitlabConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorGitlabConfig(); + + + + + + if (data.hasOwnProperty('baseURL')) { + obj['baseURL'] = ApiClient.convertToType(data['baseURL'], 'String'); + } + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String'); + } + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String'); + } + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String'); + } + if (data.hasOwnProperty('groups')) { + obj['groups'] = ApiClient.convertToType(data['groups'], ['String']); + } + if (data.hasOwnProperty('userLoginAsID')) { + obj['userLoginAsID'] = ApiClient.convertToType(data['userLoginAsID'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {String} baseURL + */ + baseURL = undefined; + /** + * @member {String} clientID + */ + clientID = undefined; + /** + * @member {String} clientSecret + */ + clientSecret = undefined; + /** + * @member {String} redirectURI + */ + redirectURI = undefined; + /** + * @member {Array.} groups + */ + groups = undefined; + /** + * @member {Boolean} userLoginAsID + */ + userLoginAsID = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ConnectorLinkedinConfig.js b/src/model/AuthOAuth2ConnectorLinkedinConfig.js new file mode 100644 index 0000000..f2d2f58 --- /dev/null +++ b/src/model/AuthOAuth2ConnectorLinkedinConfig.js @@ -0,0 +1,94 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The AuthOAuth2ConnectorLinkedinConfig model module. +* @module model/AuthOAuth2ConnectorLinkedinConfig +* @version 2.0 +*/ +export default class AuthOAuth2ConnectorLinkedinConfig { + /** + * Constructs a new AuthOAuth2ConnectorLinkedinConfig. + * @alias module:model/AuthOAuth2ConnectorLinkedinConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ConnectorLinkedinConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorLinkedinConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorLinkedinConfig} The populated AuthOAuth2ConnectorLinkedinConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorLinkedinConfig(); + + + + + + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String'); + } + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String'); + } + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String'); + } + } + return obj; + } + + /** + * @member {String} clientID + */ + clientID = undefined; + /** + * @member {String} clientSecret + */ + clientSecret = undefined; + /** + * @member {String} redirectURI + */ + redirectURI = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ConnectorMicrosoftConfig.js b/src/model/AuthOAuth2ConnectorMicrosoftConfig.js new file mode 100644 index 0000000..0c1a4e2 --- /dev/null +++ b/src/model/AuthOAuth2ConnectorMicrosoftConfig.js @@ -0,0 +1,129 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The AuthOAuth2ConnectorMicrosoftConfig model module. +* @module model/AuthOAuth2ConnectorMicrosoftConfig +* @version 2.0 +*/ +export default class AuthOAuth2ConnectorMicrosoftConfig { + /** + * Constructs a new AuthOAuth2ConnectorMicrosoftConfig. + * @alias module:model/AuthOAuth2ConnectorMicrosoftConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ConnectorMicrosoftConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorMicrosoftConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorMicrosoftConfig} The populated AuthOAuth2ConnectorMicrosoftConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorMicrosoftConfig(); + + + + + + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String'); + } + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String'); + } + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String'); + } + if (data.hasOwnProperty('tenant')) { + obj['tenant'] = ApiClient.convertToType(data['tenant'], 'String'); + } + if (data.hasOwnProperty('groups')) { + obj['groups'] = ApiClient.convertToType(data['groups'], ['String']); + } + if (data.hasOwnProperty('onlySecurityGroups')) { + obj['onlySecurityGroups'] = ApiClient.convertToType(data['onlySecurityGroups'], 'Boolean'); + } + if (data.hasOwnProperty('groupNameFormat')) { + obj['groupNameFormat'] = ApiClient.convertToType(data['groupNameFormat'], 'String'); + } + if (data.hasOwnProperty('useGroupsAsWhitelist')) { + obj['useGroupsAsWhitelist'] = ApiClient.convertToType(data['useGroupsAsWhitelist'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {String} clientID + */ + clientID = undefined; + /** + * @member {String} clientSecret + */ + clientSecret = undefined; + /** + * @member {String} redirectURI + */ + redirectURI = undefined; + /** + * @member {String} tenant + */ + tenant = undefined; + /** + * @member {Array.} groups + */ + groups = undefined; + /** + * @member {Boolean} onlySecurityGroups + */ + onlySecurityGroups = undefined; + /** + * @member {String} groupNameFormat + */ + groupNameFormat = undefined; + /** + * @member {Boolean} useGroupsAsWhitelist + */ + useGroupsAsWhitelist = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ConnectorOAuthConfig.js b/src/model/AuthOAuth2ConnectorOAuthConfig.js new file mode 100644 index 0000000..2e7ee9a --- /dev/null +++ b/src/model/AuthOAuth2ConnectorOAuthConfig.js @@ -0,0 +1,143 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The AuthOAuth2ConnectorOAuthConfig model module. +* @module model/AuthOAuth2ConnectorOAuthConfig +* @version 2.0 +*/ +export default class AuthOAuth2ConnectorOAuthConfig { + /** + * Constructs a new AuthOAuth2ConnectorOAuthConfig. + * @alias module:model/AuthOAuth2ConnectorOAuthConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ConnectorOAuthConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorOAuthConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorOAuthConfig} The populated AuthOAuth2ConnectorOAuthConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorOAuthConfig(); + + + + + + if (data.hasOwnProperty('baseURL')) { + obj['baseURL'] = ApiClient.convertToType(data['baseURL'], 'String'); + } + if (data.hasOwnProperty('authorizeURL')) { + obj['authorizeURL'] = ApiClient.convertToType(data['authorizeURL'], 'String'); + } + if (data.hasOwnProperty('tokenURL')) { + obj['tokenURL'] = ApiClient.convertToType(data['tokenURL'], 'String'); + } + if (data.hasOwnProperty('userInfoURL')) { + obj['userInfoURL'] = ApiClient.convertToType(data['userInfoURL'], 'String'); + } + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String'); + } + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String'); + } + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String'); + } + if (data.hasOwnProperty('groups')) { + obj['groups'] = ApiClient.convertToType(data['groups'], ['String']); + } + if (data.hasOwnProperty('useLoginAsID')) { + obj['useLoginAsID'] = ApiClient.convertToType(data['useLoginAsID'], 'Boolean'); + } + if (data.hasOwnProperty('useBrokenAuthHeaderProvider')) { + obj['useBrokenAuthHeaderProvider'] = ApiClient.convertToType(data['useBrokenAuthHeaderProvider'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {String} baseURL + */ + baseURL = undefined; + /** + * @member {String} authorizeURL + */ + authorizeURL = undefined; + /** + * @member {String} tokenURL + */ + tokenURL = undefined; + /** + * @member {String} userInfoURL + */ + userInfoURL = undefined; + /** + * @member {String} clientID + */ + clientID = undefined; + /** + * @member {String} clientSecret + */ + clientSecret = undefined; + /** + * @member {String} redirectURI + */ + redirectURI = undefined; + /** + * @member {Array.} groups + */ + groups = undefined; + /** + * @member {Boolean} useLoginAsID + */ + useLoginAsID = undefined; + /** + * @member {Boolean} useBrokenAuthHeaderProvider + */ + useBrokenAuthHeaderProvider = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ConnectorOIDCConfig.js b/src/model/AuthOAuth2ConnectorOIDCConfig.js new file mode 100644 index 0000000..139e97d --- /dev/null +++ b/src/model/AuthOAuth2ConnectorOIDCConfig.js @@ -0,0 +1,150 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The AuthOAuth2ConnectorOIDCConfig model module. +* @module model/AuthOAuth2ConnectorOIDCConfig +* @version 2.0 +*/ +export default class AuthOAuth2ConnectorOIDCConfig { + /** + * Constructs a new AuthOAuth2ConnectorOIDCConfig. + * @alias module:model/AuthOAuth2ConnectorOIDCConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ConnectorOIDCConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorOIDCConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorOIDCConfig} The populated AuthOAuth2ConnectorOIDCConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorOIDCConfig(); + + + + + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = ApiClient.convertToType(data['issuer'], 'String'); + } + if (data.hasOwnProperty('clientID')) { + obj['clientID'] = ApiClient.convertToType(data['clientID'], 'String'); + } + if (data.hasOwnProperty('clientSecret')) { + obj['clientSecret'] = ApiClient.convertToType(data['clientSecret'], 'String'); + } + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String'); + } + if (data.hasOwnProperty('basicAuthUnsupported')) { + obj['basicAuthUnsupported'] = ApiClient.convertToType(data['basicAuthUnsupported'], 'Boolean'); + } + if (data.hasOwnProperty('hostedDomains')) { + obj['hostedDomains'] = ApiClient.convertToType(data['hostedDomains'], ['String']); + } + if (data.hasOwnProperty('scopes')) { + obj['scopes'] = ApiClient.convertToType(data['scopes'], ['String']); + } + if (data.hasOwnProperty('insecureSkipEmailVerified')) { + obj['insecureSkipEmailVerified'] = ApiClient.convertToType(data['insecureSkipEmailVerified'], 'Boolean'); + } + if (data.hasOwnProperty('getUserInfo')) { + obj['getUserInfo'] = ApiClient.convertToType(data['getUserInfo'], 'Boolean'); + } + if (data.hasOwnProperty('userIDKey')) { + obj['userIDKey'] = ApiClient.convertToType(data['userIDKey'], 'String'); + } + if (data.hasOwnProperty('userNameKey')) { + obj['userNameKey'] = ApiClient.convertToType(data['userNameKey'], 'String'); + } + } + return obj; + } + + /** + * @member {String} issuer + */ + issuer = undefined; + /** + * @member {String} clientID + */ + clientID = undefined; + /** + * @member {String} clientSecret + */ + clientSecret = undefined; + /** + * @member {String} redirectURI + */ + redirectURI = undefined; + /** + * @member {Boolean} basicAuthUnsupported + */ + basicAuthUnsupported = undefined; + /** + * @member {Array.} hostedDomains + */ + hostedDomains = undefined; + /** + * @member {Array.} scopes + */ + scopes = undefined; + /** + * @member {Boolean} insecureSkipEmailVerified + */ + insecureSkipEmailVerified = undefined; + /** + * @member {Boolean} getUserInfo + */ + getUserInfo = undefined; + /** + * @member {String} userIDKey + */ + userIDKey = undefined; + /** + * @member {String} userNameKey + */ + userNameKey = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ConnectorPydioConfig.js b/src/model/AuthOAuth2ConnectorPydioConfig.js new file mode 100644 index 0000000..7bd0e37 --- /dev/null +++ b/src/model/AuthOAuth2ConnectorPydioConfig.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import AuthOAuth2ConnectorPydioConfigConnector from './AuthOAuth2ConnectorPydioConfigConnector'; + + + + + +/** +* The AuthOAuth2ConnectorPydioConfig model module. +* @module model/AuthOAuth2ConnectorPydioConfig +* @version 2.0 +*/ +export default class AuthOAuth2ConnectorPydioConfig { + /** + * Constructs a new AuthOAuth2ConnectorPydioConfig. + * @alias module:model/AuthOAuth2ConnectorPydioConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ConnectorPydioConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorPydioConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorPydioConfig} The populated AuthOAuth2ConnectorPydioConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorPydioConfig(); + + + + + + if (data.hasOwnProperty('pydioconnectors')) { + obj['pydioconnectors'] = ApiClient.convertToType(data['pydioconnectors'], [AuthOAuth2ConnectorPydioConfigConnector]); + } + } + return obj; + } + + /** + * @member {Array.} pydioconnectors + */ + pydioconnectors = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ConnectorPydioConfigConnector.js b/src/model/AuthOAuth2ConnectorPydioConfigConnector.js new file mode 100644 index 0000000..e80254f --- /dev/null +++ b/src/model/AuthOAuth2ConnectorPydioConfigConnector.js @@ -0,0 +1,94 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The AuthOAuth2ConnectorPydioConfigConnector model module. +* @module model/AuthOAuth2ConnectorPydioConfigConnector +* @version 2.0 +*/ +export default class AuthOAuth2ConnectorPydioConfigConnector { + /** + * Constructs a new AuthOAuth2ConnectorPydioConfigConnector. + * @alias module:model/AuthOAuth2ConnectorPydioConfigConnector + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ConnectorPydioConfigConnector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorPydioConfigConnector} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorPydioConfigConnector} The populated AuthOAuth2ConnectorPydioConfigConnector instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorPydioConfigConnector(); + + + + + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + } + return obj; + } + + /** + * @member {Number} id + */ + id = undefined; + /** + * @member {String} name + */ + name = undefined; + /** + * @member {String} type + */ + type = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2ConnectorSAMLConfig.js b/src/model/AuthOAuth2ConnectorSAMLConfig.js new file mode 100644 index 0000000..4a4e2e0 --- /dev/null +++ b/src/model/AuthOAuth2ConnectorSAMLConfig.js @@ -0,0 +1,157 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The AuthOAuth2ConnectorSAMLConfig model module. +* @module model/AuthOAuth2ConnectorSAMLConfig +* @version 2.0 +*/ +export default class AuthOAuth2ConnectorSAMLConfig { + /** + * Constructs a new AuthOAuth2ConnectorSAMLConfig. + * @alias module:model/AuthOAuth2ConnectorSAMLConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2ConnectorSAMLConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2ConnectorSAMLConfig} obj Optional instance to populate. + * @return {module:model/AuthOAuth2ConnectorSAMLConfig} The populated AuthOAuth2ConnectorSAMLConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2ConnectorSAMLConfig(); + + + + + + if (data.hasOwnProperty('ssoURL')) { + obj['ssoURL'] = ApiClient.convertToType(data['ssoURL'], 'String'); + } + if (data.hasOwnProperty('ca')) { + obj['ca'] = ApiClient.convertToType(data['ca'], 'String'); + } + if (data.hasOwnProperty('redirectURI')) { + obj['redirectURI'] = ApiClient.convertToType(data['redirectURI'], 'String'); + } + if (data.hasOwnProperty('usernameAttr')) { + obj['usernameAttr'] = ApiClient.convertToType(data['usernameAttr'], 'String'); + } + if (data.hasOwnProperty('emailAttr')) { + obj['emailAttr'] = ApiClient.convertToType(data['emailAttr'], 'String'); + } + if (data.hasOwnProperty('groupsAttr')) { + obj['groupsAttr'] = ApiClient.convertToType(data['groupsAttr'], 'String'); + } + if (data.hasOwnProperty('caData')) { + obj['caData'] = ApiClient.convertToType(data['caData'], 'String'); + } + if (data.hasOwnProperty('insecureSkipSignatureValidation')) { + obj['insecureSkipSignatureValidation'] = ApiClient.convertToType(data['insecureSkipSignatureValidation'], 'Boolean'); + } + if (data.hasOwnProperty('entityIssuer')) { + obj['entityIssuer'] = ApiClient.convertToType(data['entityIssuer'], 'String'); + } + if (data.hasOwnProperty('ssoIssuer')) { + obj['ssoIssuer'] = ApiClient.convertToType(data['ssoIssuer'], 'String'); + } + if (data.hasOwnProperty('groupsDelim')) { + obj['groupsDelim'] = ApiClient.convertToType(data['groupsDelim'], 'String'); + } + if (data.hasOwnProperty('nameIDPolicyFormat')) { + obj['nameIDPolicyFormat'] = ApiClient.convertToType(data['nameIDPolicyFormat'], 'String'); + } + } + return obj; + } + + /** + * @member {String} ssoURL + */ + ssoURL = undefined; + /** + * @member {String} ca + */ + ca = undefined; + /** + * @member {String} redirectURI + */ + redirectURI = undefined; + /** + * @member {String} usernameAttr + */ + usernameAttr = undefined; + /** + * @member {String} emailAttr + */ + emailAttr = undefined; + /** + * @member {String} groupsAttr + */ + groupsAttr = undefined; + /** + * @member {String} caData + */ + caData = undefined; + /** + * @member {Boolean} insecureSkipSignatureValidation + */ + insecureSkipSignatureValidation = undefined; + /** + * @member {String} entityIssuer + */ + entityIssuer = undefined; + /** + * @member {String} ssoIssuer + */ + ssoIssuer = undefined; + /** + * @member {String} groupsDelim + */ + groupsDelim = undefined; + /** + * @member {String} nameIDPolicyFormat + */ + nameIDPolicyFormat = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthOAuth2MappingRule.js b/src/model/AuthOAuth2MappingRule.js new file mode 100644 index 0000000..ac3353d --- /dev/null +++ b/src/model/AuthOAuth2MappingRule.js @@ -0,0 +1,94 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The AuthOAuth2MappingRule model module. +* @module model/AuthOAuth2MappingRule +* @version 2.0 +*/ +export default class AuthOAuth2MappingRule { + /** + * Constructs a new AuthOAuth2MappingRule. + * @alias module:model/AuthOAuth2MappingRule + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthOAuth2MappingRule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOAuth2MappingRule} obj Optional instance to populate. + * @return {module:model/AuthOAuth2MappingRule} The populated AuthOAuth2MappingRule instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOAuth2MappingRule(); + + + + + + if (data.hasOwnProperty('LeftAttribute')) { + obj['LeftAttribute'] = ApiClient.convertToType(data['LeftAttribute'], 'String'); + } + if (data.hasOwnProperty('RuleString')) { + obj['RuleString'] = ApiClient.convertToType(data['RuleString'], 'String'); + } + if (data.hasOwnProperty('RightAttribute')) { + obj['RightAttribute'] = ApiClient.convertToType(data['RightAttribute'], 'String'); + } + } + return obj; + } + + /** + * @member {String} LeftAttribute + */ + LeftAttribute = undefined; + /** + * @member {String} RuleString + */ + RuleString = undefined; + /** + * @member {String} RightAttribute + */ + RightAttribute = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthPatListResponse.js b/src/model/AuthPatListResponse.js new file mode 100644 index 0000000..75c7419 --- /dev/null +++ b/src/model/AuthPatListResponse.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import AuthPersonalAccessToken from './AuthPersonalAccessToken'; + + + + + +/** +* The AuthPatListResponse model module. +* @module model/AuthPatListResponse +* @version 2.0 +*/ +export default class AuthPatListResponse { + /** + * Constructs a new AuthPatListResponse. + * @alias module:model/AuthPatListResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthPatListResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthPatListResponse} obj Optional instance to populate. + * @return {module:model/AuthPatListResponse} The populated AuthPatListResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthPatListResponse(); + + + + + + if (data.hasOwnProperty('Tokens')) { + obj['Tokens'] = ApiClient.convertToType(data['Tokens'], [AuthPersonalAccessToken]); + } + } + return obj; + } + + /** + * @member {Array.} Tokens + */ + Tokens = undefined; + + + + + + + + +} + + diff --git a/src/model/AuthPatType.js b/src/model/AuthPatType.js new file mode 100644 index 0000000..3b249de --- /dev/null +++ b/src/model/AuthPatType.js @@ -0,0 +1,57 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class AuthPatType. +* @enum {} +* @readonly +*/ +export default class AuthPatType { + + /** + * value: "ANY" + * @const + */ + ANY = "ANY"; + + + /** + * value: "PERSONAL" + * @const + */ + PERSONAL = "PERSONAL"; + + + /** + * value: "DOCUMENT" + * @const + */ + DOCUMENT = "DOCUMENT"; + + + + /** + * Returns a AuthPatType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/AuthPatType} The enum AuthPatType value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/AuthPersonalAccessToken.js b/src/model/AuthPersonalAccessToken.js new file mode 100644 index 0000000..753425d --- /dev/null +++ b/src/model/AuthPersonalAccessToken.js @@ -0,0 +1,151 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import AuthPatType from './AuthPatType'; + + + + + +/** +* The AuthPersonalAccessToken model module. +* @module model/AuthPersonalAccessToken +* @version 2.0 +*/ +export default class AuthPersonalAccessToken { + /** + * Constructs a new AuthPersonalAccessToken. + * @alias module:model/AuthPersonalAccessToken + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a AuthPersonalAccessToken from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthPersonalAccessToken} obj Optional instance to populate. + * @return {module:model/AuthPersonalAccessToken} The populated AuthPersonalAccessToken instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthPersonalAccessToken(); + + + + + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = AuthPatType.constructFromObject(data['Type']); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('UserUuid')) { + obj['UserUuid'] = ApiClient.convertToType(data['UserUuid'], 'String'); + } + if (data.hasOwnProperty('UserLogin')) { + obj['UserLogin'] = ApiClient.convertToType(data['UserLogin'], 'String'); + } + if (data.hasOwnProperty('Scopes')) { + obj['Scopes'] = ApiClient.convertToType(data['Scopes'], ['String']); + } + if (data.hasOwnProperty('AutoRefreshWindow')) { + obj['AutoRefreshWindow'] = ApiClient.convertToType(data['AutoRefreshWindow'], 'Number'); + } + if (data.hasOwnProperty('ExpiresAt')) { + obj['ExpiresAt'] = ApiClient.convertToType(data['ExpiresAt'], 'String'); + } + if (data.hasOwnProperty('CreatedBy')) { + obj['CreatedBy'] = ApiClient.convertToType(data['CreatedBy'], 'String'); + } + if (data.hasOwnProperty('CreatedAt')) { + obj['CreatedAt'] = ApiClient.convertToType(data['CreatedAt'], 'String'); + } + if (data.hasOwnProperty('UpdatedAt')) { + obj['UpdatedAt'] = ApiClient.convertToType(data['UpdatedAt'], 'String'); + } + } + return obj; + } + + /** + * @member {String} Uuid + */ + Uuid = undefined; + /** + * @member {module:model/AuthPatType} Type + */ + Type = undefined; + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {String} UserUuid + */ + UserUuid = undefined; + /** + * @member {String} UserLogin + */ + UserLogin = undefined; + /** + * @member {Array.} Scopes + */ + Scopes = undefined; + /** + * @member {Number} AutoRefreshWindow + */ + AutoRefreshWindow = undefined; + /** + * @member {String} ExpiresAt + */ + ExpiresAt = undefined; + /** + * @member {String} CreatedBy + */ + CreatedBy = undefined; + /** + * @member {String} CreatedAt + */ + CreatedAt = undefined; + /** + * @member {String} UpdatedAt + */ + UpdatedAt = undefined; + + + + + + + + +} + + diff --git a/src/model/CertLicenseInfo.js b/src/model/CertLicenseInfo.js new file mode 100644 index 0000000..d50d2bb --- /dev/null +++ b/src/model/CertLicenseInfo.js @@ -0,0 +1,129 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The CertLicenseInfo model module. +* @module model/CertLicenseInfo +* @version 2.0 +*/ +export default class CertLicenseInfo { + /** + * Constructs a new CertLicenseInfo. + * @alias module:model/CertLicenseInfo + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a CertLicenseInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertLicenseInfo} obj Optional instance to populate. + * @return {module:model/CertLicenseInfo} The populated CertLicenseInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CertLicenseInfo(); + + + + + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'String'); + } + if (data.hasOwnProperty('AccountName')) { + obj['AccountName'] = ApiClient.convertToType(data['AccountName'], 'String'); + } + if (data.hasOwnProperty('ServerDomain')) { + obj['ServerDomain'] = ApiClient.convertToType(data['ServerDomain'], 'String'); + } + if (data.hasOwnProperty('IssueTime')) { + obj['IssueTime'] = ApiClient.convertToType(data['IssueTime'], 'Number'); + } + if (data.hasOwnProperty('ExpireTime')) { + obj['ExpireTime'] = ApiClient.convertToType(data['ExpireTime'], 'Number'); + } + if (data.hasOwnProperty('MaxUsers')) { + obj['MaxUsers'] = ApiClient.convertToType(data['MaxUsers'], 'String'); + } + if (data.hasOwnProperty('MaxPeers')) { + obj['MaxPeers'] = ApiClient.convertToType(data['MaxPeers'], 'String'); + } + if (data.hasOwnProperty('Features')) { + obj['Features'] = ApiClient.convertToType(data['Features'], {'String': 'String'}); + } + } + return obj; + } + + /** + * @member {String} Id + */ + Id = undefined; + /** + * @member {String} AccountName + */ + AccountName = undefined; + /** + * @member {String} ServerDomain + */ + ServerDomain = undefined; + /** + * @member {Number} IssueTime + */ + IssueTime = undefined; + /** + * @member {Number} ExpireTime + */ + ExpireTime = undefined; + /** + * @member {String} MaxUsers + */ + MaxUsers = undefined; + /** + * @member {String} MaxPeers + */ + MaxPeers = undefined; + /** + * @member {Object.} Features + */ + Features = undefined; + + + + + + + + +} + + diff --git a/src/model/CertLicenseStatsResponse.js b/src/model/CertLicenseStatsResponse.js new file mode 100644 index 0000000..37b0957 --- /dev/null +++ b/src/model/CertLicenseStatsResponse.js @@ -0,0 +1,95 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import CertLicenseInfo from './CertLicenseInfo'; + + + + + +/** +* The CertLicenseStatsResponse model module. +* @module model/CertLicenseStatsResponse +* @version 2.0 +*/ +export default class CertLicenseStatsResponse { + /** + * Constructs a new CertLicenseStatsResponse. + * @alias module:model/CertLicenseStatsResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a CertLicenseStatsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertLicenseStatsResponse} obj Optional instance to populate. + * @return {module:model/CertLicenseStatsResponse} The populated CertLicenseStatsResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CertLicenseStatsResponse(); + + + + + + if (data.hasOwnProperty('License')) { + obj['License'] = CertLicenseInfo.constructFromObject(data['License']); + } + if (data.hasOwnProperty('ActiveUsers')) { + obj['ActiveUsers'] = ApiClient.convertToType(data['ActiveUsers'], 'String'); + } + if (data.hasOwnProperty('ActivePeers')) { + obj['ActivePeers'] = ApiClient.convertToType(data['ActivePeers'], 'String'); + } + } + return obj; + } + + /** + * @member {module:model/CertLicenseInfo} License + */ + License = undefined; + /** + * @member {String} ActiveUsers + */ + ActiveUsers = undefined; + /** + * @member {String} ActivePeers + */ + ActivePeers = undefined; + + + + + + + + +} + + diff --git a/src/model/CertPutLicenseInfoRequest.js b/src/model/CertPutLicenseInfoRequest.js new file mode 100644 index 0000000..0a5ba5b --- /dev/null +++ b/src/model/CertPutLicenseInfoRequest.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The CertPutLicenseInfoRequest model module. +* @module model/CertPutLicenseInfoRequest +* @version 2.0 +*/ +export default class CertPutLicenseInfoRequest { + /** + * Constructs a new CertPutLicenseInfoRequest. + * @alias module:model/CertPutLicenseInfoRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a CertPutLicenseInfoRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertPutLicenseInfoRequest} obj Optional instance to populate. + * @return {module:model/CertPutLicenseInfoRequest} The populated CertPutLicenseInfoRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CertPutLicenseInfoRequest(); + + + + + + if (data.hasOwnProperty('LicenseString')) { + obj['LicenseString'] = ApiClient.convertToType(data['LicenseString'], 'String'); + } + } + return obj; + } + + /** + * @member {String} LicenseString + */ + LicenseString = undefined; + + + + + + + + +} + + diff --git a/src/model/CertPutLicenseInfoResponse.js b/src/model/CertPutLicenseInfoResponse.js new file mode 100644 index 0000000..4cf1b83 --- /dev/null +++ b/src/model/CertPutLicenseInfoResponse.js @@ -0,0 +1,94 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The CertPutLicenseInfoResponse model module. +* @module model/CertPutLicenseInfoResponse +* @version 2.0 +*/ +export default class CertPutLicenseInfoResponse { + /** + * Constructs a new CertPutLicenseInfoResponse. + * @alias module:model/CertPutLicenseInfoResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a CertPutLicenseInfoResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertPutLicenseInfoResponse} obj Optional instance to populate. + * @return {module:model/CertPutLicenseInfoResponse} The populated CertPutLicenseInfoResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CertPutLicenseInfoResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + if (data.hasOwnProperty('ErrorInvalid')) { + obj['ErrorInvalid'] = ApiClient.convertToType(data['ErrorInvalid'], 'Boolean'); + } + if (data.hasOwnProperty('ErrorWrite')) { + obj['ErrorWrite'] = ApiClient.convertToType(data['ErrorWrite'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + /** + * @member {Boolean} ErrorInvalid + */ + ErrorInvalid = undefined; + /** + * @member {Boolean} ErrorWrite + */ + ErrorWrite = undefined; + + + + + + + + +} + + diff --git a/src/model/EntActionTemplate.js b/src/model/EntActionTemplate.js new file mode 100644 index 0000000..2abbb9a --- /dev/null +++ b/src/model/EntActionTemplate.js @@ -0,0 +1,88 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsAction from './JobsAction'; + + + + + +/** +* The EntActionTemplate model module. +* @module model/EntActionTemplate +* @version 2.0 +*/ +export default class EntActionTemplate { + /** + * Constructs a new EntActionTemplate. + * @alias module:model/EntActionTemplate + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntActionTemplate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntActionTemplate} obj Optional instance to populate. + * @return {module:model/EntActionTemplate} The populated EntActionTemplate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntActionTemplate(); + + + + + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Action')) { + obj['Action'] = JobsAction.constructFromObject(data['Action']); + } + } + return obj; + } + + /** + * @member {String} Name + */ + Name = undefined; + /** + * @member {module:model/JobsAction} Action + */ + Action = undefined; + + + + + + + + +} + + diff --git a/src/model/EntConnector.js b/src/model/EntConnector.js new file mode 100644 index 0000000..add70d2 --- /dev/null +++ b/src/model/EntConnector.js @@ -0,0 +1,94 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntConnector model module. +* @module model/EntConnector +* @version 2.0 +*/ +export default class EntConnector { + /** + * Constructs a new EntConnector. + * @alias module:model/EntConnector + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntConnector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntConnector} obj Optional instance to populate. + * @return {module:model/EntConnector} The populated EntConnector instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntConnector(); + + + + + + if (data.hasOwnProperty('Id')) { + obj['Id'] = ApiClient.convertToType(data['Id'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + } + return obj; + } + + /** + * @member {String} Id + */ + Id = undefined; + /** + * @member {String} Name + */ + Name = undefined; + /** + * @member {String} Type + */ + Type = undefined; + + + + + + + + +} + + diff --git a/src/model/EntDeleteActionTemplateResponse.js b/src/model/EntDeleteActionTemplateResponse.js new file mode 100644 index 0000000..b504bf8 --- /dev/null +++ b/src/model/EntDeleteActionTemplateResponse.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntDeleteActionTemplateResponse model module. +* @module model/EntDeleteActionTemplateResponse +* @version 2.0 +*/ +export default class EntDeleteActionTemplateResponse { + /** + * Constructs a new EntDeleteActionTemplateResponse. + * @alias module:model/EntDeleteActionTemplateResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntDeleteActionTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDeleteActionTemplateResponse} obj Optional instance to populate. + * @return {module:model/EntDeleteActionTemplateResponse} The populated EntDeleteActionTemplateResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDeleteActionTemplateResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + + + + + + + + +} + + diff --git a/src/model/EntDeleteJobTemplateResponse.js b/src/model/EntDeleteJobTemplateResponse.js new file mode 100644 index 0000000..8827651 --- /dev/null +++ b/src/model/EntDeleteJobTemplateResponse.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntDeleteJobTemplateResponse model module. +* @module model/EntDeleteJobTemplateResponse +* @version 2.0 +*/ +export default class EntDeleteJobTemplateResponse { + /** + * Constructs a new EntDeleteJobTemplateResponse. + * @alias module:model/EntDeleteJobTemplateResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntDeleteJobTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDeleteJobTemplateResponse} obj Optional instance to populate. + * @return {module:model/EntDeleteJobTemplateResponse} The populated EntDeleteJobTemplateResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDeleteJobTemplateResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + + + + + + + + +} + + diff --git a/src/model/EntDeleteSelectorTemplateResponse.js b/src/model/EntDeleteSelectorTemplateResponse.js new file mode 100644 index 0000000..a411c1f --- /dev/null +++ b/src/model/EntDeleteSelectorTemplateResponse.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntDeleteSelectorTemplateResponse model module. +* @module model/EntDeleteSelectorTemplateResponse +* @version 2.0 +*/ +export default class EntDeleteSelectorTemplateResponse { + /** + * Constructs a new EntDeleteSelectorTemplateResponse. + * @alias module:model/EntDeleteSelectorTemplateResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntDeleteSelectorTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDeleteSelectorTemplateResponse} obj Optional instance to populate. + * @return {module:model/EntDeleteSelectorTemplateResponse} The populated EntDeleteSelectorTemplateResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDeleteSelectorTemplateResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + + + + + + + + +} + + diff --git a/src/model/EntDeleteVersioningPolicyResponse.js b/src/model/EntDeleteVersioningPolicyResponse.js new file mode 100644 index 0000000..6c275c8 --- /dev/null +++ b/src/model/EntDeleteVersioningPolicyResponse.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntDeleteVersioningPolicyResponse model module. +* @module model/EntDeleteVersioningPolicyResponse +* @version 2.0 +*/ +export default class EntDeleteVersioningPolicyResponse { + /** + * Constructs a new EntDeleteVersioningPolicyResponse. + * @alias module:model/EntDeleteVersioningPolicyResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntDeleteVersioningPolicyResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDeleteVersioningPolicyResponse} obj Optional instance to populate. + * @return {module:model/EntDeleteVersioningPolicyResponse} The populated EntDeleteVersioningPolicyResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDeleteVersioningPolicyResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + + + + + + + + +} + + diff --git a/src/model/EntDeleteVirtualNodeResponse.js b/src/model/EntDeleteVirtualNodeResponse.js new file mode 100644 index 0000000..dfe5e50 --- /dev/null +++ b/src/model/EntDeleteVirtualNodeResponse.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntDeleteVirtualNodeResponse model module. +* @module model/EntDeleteVirtualNodeResponse +* @version 2.0 +*/ +export default class EntDeleteVirtualNodeResponse { + /** + * Constructs a new EntDeleteVirtualNodeResponse. + * @alias module:model/EntDeleteVirtualNodeResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntDeleteVirtualNodeResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDeleteVirtualNodeResponse} obj Optional instance to populate. + * @return {module:model/EntDeleteVirtualNodeResponse} The populated EntDeleteVirtualNodeResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDeleteVirtualNodeResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + + + + + + + + +} + + diff --git a/src/model/EntDocTemplatePiece.js b/src/model/EntDocTemplatePiece.js new file mode 100644 index 0000000..cea908c --- /dev/null +++ b/src/model/EntDocTemplatePiece.js @@ -0,0 +1,101 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntDocTemplatePiece model module. +* @module model/EntDocTemplatePiece +* @version 2.0 +*/ +export default class EntDocTemplatePiece { + /** + * Constructs a new EntDocTemplatePiece. + * @alias module:model/EntDocTemplatePiece + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntDocTemplatePiece from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDocTemplatePiece} obj Optional instance to populate. + * @return {module:model/EntDocTemplatePiece} The populated EntDocTemplatePiece instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDocTemplatePiece(); + + + + + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Context')) { + obj['Context'] = ApiClient.convertToType(data['Context'], 'String'); + } + if (data.hasOwnProperty('Short')) { + obj['Short'] = ApiClient.convertToType(data['Short'], 'String'); + } + if (data.hasOwnProperty('Long')) { + obj['Long'] = ApiClient.convertToType(data['Long'], 'String'); + } + } + return obj; + } + + /** + * @member {String} Name + */ + Name = undefined; + /** + * @member {String} Context + */ + Context = undefined; + /** + * @member {String} Short + */ + Short = undefined; + /** + * @member {String} Long + */ + Long = undefined; + + + + + + + + +} + + diff --git a/src/model/EntDocTemplatesResponse.js b/src/model/EntDocTemplatesResponse.js new file mode 100644 index 0000000..90a4808 --- /dev/null +++ b/src/model/EntDocTemplatesResponse.js @@ -0,0 +1,88 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import EntDocTemplatePiece from './EntDocTemplatePiece'; + + + + + +/** +* The EntDocTemplatesResponse model module. +* @module model/EntDocTemplatesResponse +* @version 2.0 +*/ +export default class EntDocTemplatesResponse { + /** + * Constructs a new EntDocTemplatesResponse. + * @alias module:model/EntDocTemplatesResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntDocTemplatesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntDocTemplatesResponse} obj Optional instance to populate. + * @return {module:model/EntDocTemplatesResponse} The populated EntDocTemplatesResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntDocTemplatesResponse(); + + + + + + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + if (data.hasOwnProperty('Docs')) { + obj['Docs'] = ApiClient.convertToType(data['Docs'], [EntDocTemplatePiece]); + } + } + return obj; + } + + /** + * @member {String} Type + */ + Type = undefined; + /** + * @member {Array.} Docs + */ + Docs = undefined; + + + + + + + + +} + + diff --git a/src/model/EntExternalDirectoryCollection.js b/src/model/EntExternalDirectoryCollection.js new file mode 100644 index 0000000..3d74d5a --- /dev/null +++ b/src/model/EntExternalDirectoryCollection.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import AuthLdapServerConfig from './AuthLdapServerConfig'; + + + + + +/** +* The EntExternalDirectoryCollection model module. +* @module model/EntExternalDirectoryCollection +* @version 2.0 +*/ +export default class EntExternalDirectoryCollection { + /** + * Constructs a new EntExternalDirectoryCollection. + * @alias module:model/EntExternalDirectoryCollection + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntExternalDirectoryCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntExternalDirectoryCollection} obj Optional instance to populate. + * @return {module:model/EntExternalDirectoryCollection} The populated EntExternalDirectoryCollection instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntExternalDirectoryCollection(); + + + + + + if (data.hasOwnProperty('Directories')) { + obj['Directories'] = ApiClient.convertToType(data['Directories'], [AuthLdapServerConfig]); + } + } + return obj; + } + + /** + * @member {Array.} Directories + */ + Directories = undefined; + + + + + + + + +} + + diff --git a/src/model/EntExternalDirectoryConfig.js b/src/model/EntExternalDirectoryConfig.js new file mode 100644 index 0000000..85917ae --- /dev/null +++ b/src/model/EntExternalDirectoryConfig.js @@ -0,0 +1,88 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import AuthLdapServerConfig from './AuthLdapServerConfig'; + + + + + +/** +* The EntExternalDirectoryConfig model module. +* @module model/EntExternalDirectoryConfig +* @version 2.0 +*/ +export default class EntExternalDirectoryConfig { + /** + * Constructs a new EntExternalDirectoryConfig. + * @alias module:model/EntExternalDirectoryConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntExternalDirectoryConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntExternalDirectoryConfig} obj Optional instance to populate. + * @return {module:model/EntExternalDirectoryConfig} The populated EntExternalDirectoryConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntExternalDirectoryConfig(); + + + + + + if (data.hasOwnProperty('ConfigId')) { + obj['ConfigId'] = ApiClient.convertToType(data['ConfigId'], 'String'); + } + if (data.hasOwnProperty('Config')) { + obj['Config'] = AuthLdapServerConfig.constructFromObject(data['Config']); + } + } + return obj; + } + + /** + * @member {String} ConfigId + */ + ConfigId = undefined; + /** + * @member {module:model/AuthLdapServerConfig} Config + */ + Config = undefined; + + + + + + + + +} + + diff --git a/src/model/EntExternalDirectoryResponse.js b/src/model/EntExternalDirectoryResponse.js new file mode 100644 index 0000000..60a3e27 --- /dev/null +++ b/src/model/EntExternalDirectoryResponse.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntExternalDirectoryResponse model module. +* @module model/EntExternalDirectoryResponse +* @version 2.0 +*/ +export default class EntExternalDirectoryResponse { + /** + * Constructs a new EntExternalDirectoryResponse. + * @alias module:model/EntExternalDirectoryResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntExternalDirectoryResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntExternalDirectoryResponse} obj Optional instance to populate. + * @return {module:model/EntExternalDirectoryResponse} The populated EntExternalDirectoryResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntExternalDirectoryResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + + + + + + + + +} + + diff --git a/src/model/EntFrontLoginConnectorsResponse.js b/src/model/EntFrontLoginConnectorsResponse.js new file mode 100644 index 0000000..8702b1a --- /dev/null +++ b/src/model/EntFrontLoginConnectorsResponse.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import EntConnector from './EntConnector'; + + + + + +/** +* The EntFrontLoginConnectorsResponse model module. +* @module model/EntFrontLoginConnectorsResponse +* @version 2.0 +*/ +export default class EntFrontLoginConnectorsResponse { + /** + * Constructs a new EntFrontLoginConnectorsResponse. + * @alias module:model/EntFrontLoginConnectorsResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntFrontLoginConnectorsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntFrontLoginConnectorsResponse} obj Optional instance to populate. + * @return {module:model/EntFrontLoginConnectorsResponse} The populated EntFrontLoginConnectorsResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntFrontLoginConnectorsResponse(); + + + + + + if (data.hasOwnProperty('Connectors')) { + obj['Connectors'] = ApiClient.convertToType(data['Connectors'], [EntConnector]); + } + } + return obj; + } + + /** + * @member {Array.} Connectors + */ + Connectors = undefined; + + + + + + + + +} + + diff --git a/src/model/EntListAccessTokensRequest.js b/src/model/EntListAccessTokensRequest.js new file mode 100644 index 0000000..7f1804a --- /dev/null +++ b/src/model/EntListAccessTokensRequest.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntListAccessTokensRequest model module. +* @module model/EntListAccessTokensRequest +* @version 2.0 +*/ +export default class EntListAccessTokensRequest { + /** + * Constructs a new EntListAccessTokensRequest. + * @alias module:model/EntListAccessTokensRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntListAccessTokensRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListAccessTokensRequest} obj Optional instance to populate. + * @return {module:model/EntListAccessTokensRequest} The populated EntListAccessTokensRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListAccessTokensRequest(); + + + + + + if (data.hasOwnProperty('ByUser')) { + obj['ByUser'] = ApiClient.convertToType(data['ByUser'], 'String'); + } + } + return obj; + } + + /** + * @member {String} ByUser + */ + ByUser = undefined; + + + + + + + + +} + + diff --git a/src/model/EntListActionTemplatesRequest.js b/src/model/EntListActionTemplatesRequest.js new file mode 100644 index 0000000..dff8d93 --- /dev/null +++ b/src/model/EntListActionTemplatesRequest.js @@ -0,0 +1,73 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntListActionTemplatesRequest model module. +* @module model/EntListActionTemplatesRequest +* @version 2.0 +*/ +export default class EntListActionTemplatesRequest { + /** + * Constructs a new EntListActionTemplatesRequest. + * @alias module:model/EntListActionTemplatesRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntListActionTemplatesRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListActionTemplatesRequest} obj Optional instance to populate. + * @return {module:model/EntListActionTemplatesRequest} The populated EntListActionTemplatesRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListActionTemplatesRequest(); + + + + + + } + return obj; + } + + + + + + + + + +} + + diff --git a/src/model/EntListActionTemplatesResponse.js b/src/model/EntListActionTemplatesResponse.js new file mode 100644 index 0000000..7c0517d --- /dev/null +++ b/src/model/EntListActionTemplatesResponse.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import EntActionTemplate from './EntActionTemplate'; + + + + + +/** +* The EntListActionTemplatesResponse model module. +* @module model/EntListActionTemplatesResponse +* @version 2.0 +*/ +export default class EntListActionTemplatesResponse { + /** + * Constructs a new EntListActionTemplatesResponse. + * @alias module:model/EntListActionTemplatesResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntListActionTemplatesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListActionTemplatesResponse} obj Optional instance to populate. + * @return {module:model/EntListActionTemplatesResponse} The populated EntListActionTemplatesResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListActionTemplatesResponse(); + + + + + + if (data.hasOwnProperty('Templates')) { + obj['Templates'] = ApiClient.convertToType(data['Templates'], [EntActionTemplate]); + } + } + return obj; + } + + /** + * @member {Array.} Templates + */ + Templates = undefined; + + + + + + + + +} + + diff --git a/src/model/EntListJobTemplatesRequest.js b/src/model/EntListJobTemplatesRequest.js new file mode 100644 index 0000000..ef7bdf4 --- /dev/null +++ b/src/model/EntListJobTemplatesRequest.js @@ -0,0 +1,73 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntListJobTemplatesRequest model module. +* @module model/EntListJobTemplatesRequest +* @version 2.0 +*/ +export default class EntListJobTemplatesRequest { + /** + * Constructs a new EntListJobTemplatesRequest. + * @alias module:model/EntListJobTemplatesRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntListJobTemplatesRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListJobTemplatesRequest} obj Optional instance to populate. + * @return {module:model/EntListJobTemplatesRequest} The populated EntListJobTemplatesRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListJobTemplatesRequest(); + + + + + + } + return obj; + } + + + + + + + + + +} + + diff --git a/src/model/EntListJobTemplatesResponse.js b/src/model/EntListJobTemplatesResponse.js new file mode 100644 index 0000000..34b91af --- /dev/null +++ b/src/model/EntListJobTemplatesResponse.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsJob from './JobsJob'; + + + + + +/** +* The EntListJobTemplatesResponse model module. +* @module model/EntListJobTemplatesResponse +* @version 2.0 +*/ +export default class EntListJobTemplatesResponse { + /** + * Constructs a new EntListJobTemplatesResponse. + * @alias module:model/EntListJobTemplatesResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntListJobTemplatesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListJobTemplatesResponse} obj Optional instance to populate. + * @return {module:model/EntListJobTemplatesResponse} The populated EntListJobTemplatesResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListJobTemplatesResponse(); + + + + + + if (data.hasOwnProperty('Jobs')) { + obj['Jobs'] = ApiClient.convertToType(data['Jobs'], [JobsJob]); + } + } + return obj; + } + + /** + * @member {Array.} Jobs + */ + Jobs = undefined; + + + + + + + + +} + + diff --git a/src/model/EntListSelectorTemplatesRequest.js b/src/model/EntListSelectorTemplatesRequest.js new file mode 100644 index 0000000..f2a7ce0 --- /dev/null +++ b/src/model/EntListSelectorTemplatesRequest.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntListSelectorTemplatesRequest model module. +* @module model/EntListSelectorTemplatesRequest +* @version 2.0 +*/ +export default class EntListSelectorTemplatesRequest { + /** + * Constructs a new EntListSelectorTemplatesRequest. + * @alias module:model/EntListSelectorTemplatesRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntListSelectorTemplatesRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListSelectorTemplatesRequest} obj Optional instance to populate. + * @return {module:model/EntListSelectorTemplatesRequest} The populated EntListSelectorTemplatesRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListSelectorTemplatesRequest(); + + + + + + if (data.hasOwnProperty('Filter')) { + obj['Filter'] = ApiClient.convertToType(data['Filter'], 'String'); + } + } + return obj; + } + + /** + * @member {String} Filter + */ + Filter = undefined; + + + + + + + + +} + + diff --git a/src/model/EntListSelectorTemplatesResponse.js b/src/model/EntListSelectorTemplatesResponse.js new file mode 100644 index 0000000..4aca7cd --- /dev/null +++ b/src/model/EntListSelectorTemplatesResponse.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import EntSelectorTemplate from './EntSelectorTemplate'; + + + + + +/** +* The EntListSelectorTemplatesResponse model module. +* @module model/EntListSelectorTemplatesResponse +* @version 2.0 +*/ +export default class EntListSelectorTemplatesResponse { + /** + * Constructs a new EntListSelectorTemplatesResponse. + * @alias module:model/EntListSelectorTemplatesResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntListSelectorTemplatesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListSelectorTemplatesResponse} obj Optional instance to populate. + * @return {module:model/EntListSelectorTemplatesResponse} The populated EntListSelectorTemplatesResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListSelectorTemplatesResponse(); + + + + + + if (data.hasOwnProperty('Templates')) { + obj['Templates'] = ApiClient.convertToType(data['Templates'], [EntSelectorTemplate]); + } + } + return obj; + } + + /** + * @member {Array.} Templates + */ + Templates = undefined; + + + + + + + + +} + + diff --git a/src/model/EntListSitesResponse.js b/src/model/EntListSitesResponse.js new file mode 100644 index 0000000..bb27dce --- /dev/null +++ b/src/model/EntListSitesResponse.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import InstallProxyConfig from './InstallProxyConfig'; + + + + + +/** +* The EntListSitesResponse model module. +* @module model/EntListSitesResponse +* @version 2.0 +*/ +export default class EntListSitesResponse { + /** + * Constructs a new EntListSitesResponse. + * @alias module:model/EntListSitesResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntListSitesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntListSitesResponse} obj Optional instance to populate. + * @return {module:model/EntListSitesResponse} The populated EntListSitesResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntListSitesResponse(); + + + + + + if (data.hasOwnProperty('Sites')) { + obj['Sites'] = ApiClient.convertToType(data['Sites'], [InstallProxyConfig]); + } + } + return obj; + } + + /** + * @member {Array.} Sites + */ + Sites = undefined; + + + + + + + + +} + + diff --git a/src/model/EntOAuth2ClientCollection.js b/src/model/EntOAuth2ClientCollection.js new file mode 100644 index 0000000..ef5a1dd --- /dev/null +++ b/src/model/EntOAuth2ClientCollection.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import AuthOAuth2ClientConfig from './AuthOAuth2ClientConfig'; + + + + + +/** +* The EntOAuth2ClientCollection model module. +* @module model/EntOAuth2ClientCollection +* @version 2.0 +*/ +export default class EntOAuth2ClientCollection { + /** + * Constructs a new EntOAuth2ClientCollection. + * @alias module:model/EntOAuth2ClientCollection + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntOAuth2ClientCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntOAuth2ClientCollection} obj Optional instance to populate. + * @return {module:model/EntOAuth2ClientCollection} The populated EntOAuth2ClientCollection instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntOAuth2ClientCollection(); + + + + + + if (data.hasOwnProperty('Clients')) { + obj['Clients'] = ApiClient.convertToType(data['Clients'], [AuthOAuth2ClientConfig]); + } + } + return obj; + } + + /** + * @member {Array.} Clients + */ + Clients = undefined; + + + + + + + + +} + + diff --git a/src/model/EntOAuth2ClientResponse.js b/src/model/EntOAuth2ClientResponse.js new file mode 100644 index 0000000..66bd5db --- /dev/null +++ b/src/model/EntOAuth2ClientResponse.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntOAuth2ClientResponse model module. +* @module model/EntOAuth2ClientResponse +* @version 2.0 +*/ +export default class EntOAuth2ClientResponse { + /** + * Constructs a new EntOAuth2ClientResponse. + * @alias module:model/EntOAuth2ClientResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntOAuth2ClientResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntOAuth2ClientResponse} obj Optional instance to populate. + * @return {module:model/EntOAuth2ClientResponse} The populated EntOAuth2ClientResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntOAuth2ClientResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + + + + + + + + +} + + diff --git a/src/model/EntOAuth2ConnectorCollection.js b/src/model/EntOAuth2ConnectorCollection.js new file mode 100644 index 0000000..9351903 --- /dev/null +++ b/src/model/EntOAuth2ConnectorCollection.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import AuthOAuth2ConnectorConfig from './AuthOAuth2ConnectorConfig'; + + + + + +/** +* The EntOAuth2ConnectorCollection model module. +* @module model/EntOAuth2ConnectorCollection +* @version 2.0 +*/ +export default class EntOAuth2ConnectorCollection { + /** + * Constructs a new EntOAuth2ConnectorCollection. + * @alias module:model/EntOAuth2ConnectorCollection + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntOAuth2ConnectorCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntOAuth2ConnectorCollection} obj Optional instance to populate. + * @return {module:model/EntOAuth2ConnectorCollection} The populated EntOAuth2ConnectorCollection instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntOAuth2ConnectorCollection(); + + + + + + if (data.hasOwnProperty('connectors')) { + obj['connectors'] = ApiClient.convertToType(data['connectors'], [AuthOAuth2ConnectorConfig]); + } + } + return obj; + } + + /** + * @member {Array.} connectors + */ + connectors = undefined; + + + + + + + + +} + + diff --git a/src/model/EntOAuth2ConnectorResponse.js b/src/model/EntOAuth2ConnectorResponse.js new file mode 100644 index 0000000..49e1b8d --- /dev/null +++ b/src/model/EntOAuth2ConnectorResponse.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntOAuth2ConnectorResponse model module. +* @module model/EntOAuth2ConnectorResponse +* @version 2.0 +*/ +export default class EntOAuth2ConnectorResponse { + /** + * Constructs a new EntOAuth2ConnectorResponse. + * @alias module:model/EntOAuth2ConnectorResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntOAuth2ConnectorResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntOAuth2ConnectorResponse} obj Optional instance to populate. + * @return {module:model/EntOAuth2ConnectorResponse} The populated EntOAuth2ConnectorResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntOAuth2ConnectorResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + + + + + + + + +} + + diff --git a/src/model/EntPersonalAccessTokenRequest.js b/src/model/EntPersonalAccessTokenRequest.js new file mode 100644 index 0000000..80e0f7a --- /dev/null +++ b/src/model/EntPersonalAccessTokenRequest.js @@ -0,0 +1,108 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntPersonalAccessTokenRequest model module. +* @module model/EntPersonalAccessTokenRequest +* @version 2.0 +*/ +export default class EntPersonalAccessTokenRequest { + /** + * Constructs a new EntPersonalAccessTokenRequest. + * @alias module:model/EntPersonalAccessTokenRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntPersonalAccessTokenRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPersonalAccessTokenRequest} obj Optional instance to populate. + * @return {module:model/EntPersonalAccessTokenRequest} The populated EntPersonalAccessTokenRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPersonalAccessTokenRequest(); + + + + + + if (data.hasOwnProperty('UserLogin')) { + obj['UserLogin'] = ApiClient.convertToType(data['UserLogin'], 'String'); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('ExpiresAt')) { + obj['ExpiresAt'] = ApiClient.convertToType(data['ExpiresAt'], 'String'); + } + if (data.hasOwnProperty('AutoRefresh')) { + obj['AutoRefresh'] = ApiClient.convertToType(data['AutoRefresh'], 'Number'); + } + if (data.hasOwnProperty('Scopes')) { + obj['Scopes'] = ApiClient.convertToType(data['Scopes'], ['String']); + } + } + return obj; + } + + /** + * @member {String} UserLogin + */ + UserLogin = undefined; + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {String} ExpiresAt + */ + ExpiresAt = undefined; + /** + * @member {Number} AutoRefresh + */ + AutoRefresh = undefined; + /** + * @member {Array.} Scopes + */ + Scopes = undefined; + + + + + + + + +} + + diff --git a/src/model/EntPersonalAccessTokenResponse.js b/src/model/EntPersonalAccessTokenResponse.js new file mode 100644 index 0000000..d74b356 --- /dev/null +++ b/src/model/EntPersonalAccessTokenResponse.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntPersonalAccessTokenResponse model module. +* @module model/EntPersonalAccessTokenResponse +* @version 2.0 +*/ +export default class EntPersonalAccessTokenResponse { + /** + * Constructs a new EntPersonalAccessTokenResponse. + * @alias module:model/EntPersonalAccessTokenResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntPersonalAccessTokenResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPersonalAccessTokenResponse} obj Optional instance to populate. + * @return {module:model/EntPersonalAccessTokenResponse} The populated EntPersonalAccessTokenResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPersonalAccessTokenResponse(); + + + + + + if (data.hasOwnProperty('AccessToken')) { + obj['AccessToken'] = ApiClient.convertToType(data['AccessToken'], 'String'); + } + } + return obj; + } + + /** + * @member {String} AccessToken + */ + AccessToken = undefined; + + + + + + + + +} + + diff --git a/src/model/EntPlaygroundRequest.js b/src/model/EntPlaygroundRequest.js new file mode 100644 index 0000000..8eeaeb3 --- /dev/null +++ b/src/model/EntPlaygroundRequest.js @@ -0,0 +1,95 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsActionMessage from './JobsActionMessage'; + + + + + +/** +* The EntPlaygroundRequest model module. +* @module model/EntPlaygroundRequest +* @version 2.0 +*/ +export default class EntPlaygroundRequest { + /** + * Constructs a new EntPlaygroundRequest. + * @alias module:model/EntPlaygroundRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntPlaygroundRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPlaygroundRequest} obj Optional instance to populate. + * @return {module:model/EntPlaygroundRequest} The populated EntPlaygroundRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPlaygroundRequest(); + + + + + + if (data.hasOwnProperty('Input')) { + obj['Input'] = JobsActionMessage.constructFromObject(data['Input']); + } + if (data.hasOwnProperty('LastOutputJsonBody')) { + obj['LastOutputJsonBody'] = ApiClient.convertToType(data['LastOutputJsonBody'], 'String'); + } + if (data.hasOwnProperty('Code')) { + obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); + } + } + return obj; + } + + /** + * @member {module:model/JobsActionMessage} Input + */ + Input = undefined; + /** + * @member {String} LastOutputJsonBody + */ + LastOutputJsonBody = undefined; + /** + * @member {String} Code + */ + Code = undefined; + + + + + + + + +} + + diff --git a/src/model/EntPlaygroundResponse.js b/src/model/EntPlaygroundResponse.js new file mode 100644 index 0000000..095aaf1 --- /dev/null +++ b/src/model/EntPlaygroundResponse.js @@ -0,0 +1,102 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsActionMessage from './JobsActionMessage'; + + + + + +/** +* The EntPlaygroundResponse model module. +* @module model/EntPlaygroundResponse +* @version 2.0 +*/ +export default class EntPlaygroundResponse { + /** + * Constructs a new EntPlaygroundResponse. + * @alias module:model/EntPlaygroundResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntPlaygroundResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPlaygroundResponse} obj Optional instance to populate. + * @return {module:model/EntPlaygroundResponse} The populated EntPlaygroundResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPlaygroundResponse(); + + + + + + if (data.hasOwnProperty('Input')) { + obj['Input'] = JobsActionMessage.constructFromObject(data['Input']); + } + if (data.hasOwnProperty('LastOutputJsonBody')) { + obj['LastOutputJsonBody'] = ApiClient.convertToType(data['LastOutputJsonBody'], 'String'); + } + if (data.hasOwnProperty('Code')) { + obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); + } + if (data.hasOwnProperty('Output')) { + obj['Output'] = ApiClient.convertToType(data['Output'], 'String'); + } + } + return obj; + } + + /** + * @member {module:model/JobsActionMessage} Input + */ + Input = undefined; + /** + * @member {String} LastOutputJsonBody + */ + LastOutputJsonBody = undefined; + /** + * @member {String} Code + */ + Code = undefined; + /** + * @member {String} Output + */ + Output = undefined; + + + + + + + + +} + + diff --git a/src/model/EntPutActionTemplateRequest.js b/src/model/EntPutActionTemplateRequest.js new file mode 100644 index 0000000..65eae91 --- /dev/null +++ b/src/model/EntPutActionTemplateRequest.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import EntActionTemplate from './EntActionTemplate'; + + + + + +/** +* The EntPutActionTemplateRequest model module. +* @module model/EntPutActionTemplateRequest +* @version 2.0 +*/ +export default class EntPutActionTemplateRequest { + /** + * Constructs a new EntPutActionTemplateRequest. + * @alias module:model/EntPutActionTemplateRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntPutActionTemplateRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPutActionTemplateRequest} obj Optional instance to populate. + * @return {module:model/EntPutActionTemplateRequest} The populated EntPutActionTemplateRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPutActionTemplateRequest(); + + + + + + if (data.hasOwnProperty('Template')) { + obj['Template'] = EntActionTemplate.constructFromObject(data['Template']); + } + } + return obj; + } + + /** + * @member {module:model/EntActionTemplate} Template + */ + Template = undefined; + + + + + + + + +} + + diff --git a/src/model/EntPutActionTemplateResponse.js b/src/model/EntPutActionTemplateResponse.js new file mode 100644 index 0000000..6127d65 --- /dev/null +++ b/src/model/EntPutActionTemplateResponse.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import EntActionTemplate from './EntActionTemplate'; + + + + + +/** +* The EntPutActionTemplateResponse model module. +* @module model/EntPutActionTemplateResponse +* @version 2.0 +*/ +export default class EntPutActionTemplateResponse { + /** + * Constructs a new EntPutActionTemplateResponse. + * @alias module:model/EntPutActionTemplateResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntPutActionTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPutActionTemplateResponse} obj Optional instance to populate. + * @return {module:model/EntPutActionTemplateResponse} The populated EntPutActionTemplateResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPutActionTemplateResponse(); + + + + + + if (data.hasOwnProperty('Template')) { + obj['Template'] = EntActionTemplate.constructFromObject(data['Template']); + } + } + return obj; + } + + /** + * @member {module:model/EntActionTemplate} Template + */ + Template = undefined; + + + + + + + + +} + + diff --git a/src/model/EntPutJobTemplateRequest.js b/src/model/EntPutJobTemplateRequest.js new file mode 100644 index 0000000..fb3bf6c --- /dev/null +++ b/src/model/EntPutJobTemplateRequest.js @@ -0,0 +1,88 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsJob from './JobsJob'; + + + + + +/** +* The EntPutJobTemplateRequest model module. +* @module model/EntPutJobTemplateRequest +* @version 2.0 +*/ +export default class EntPutJobTemplateRequest { + /** + * Constructs a new EntPutJobTemplateRequest. + * @alias module:model/EntPutJobTemplateRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntPutJobTemplateRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPutJobTemplateRequest} obj Optional instance to populate. + * @return {module:model/EntPutJobTemplateRequest} The populated EntPutJobTemplateRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPutJobTemplateRequest(); + + + + + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Job')) { + obj['Job'] = JobsJob.constructFromObject(data['Job']); + } + } + return obj; + } + + /** + * @member {String} Name + */ + Name = undefined; + /** + * @member {module:model/JobsJob} Job + */ + Job = undefined; + + + + + + + + +} + + diff --git a/src/model/EntPutJobTemplateResponse.js b/src/model/EntPutJobTemplateResponse.js new file mode 100644 index 0000000..3f02b21 --- /dev/null +++ b/src/model/EntPutJobTemplateResponse.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsJob from './JobsJob'; + + + + + +/** +* The EntPutJobTemplateResponse model module. +* @module model/EntPutJobTemplateResponse +* @version 2.0 +*/ +export default class EntPutJobTemplateResponse { + /** + * Constructs a new EntPutJobTemplateResponse. + * @alias module:model/EntPutJobTemplateResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntPutJobTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPutJobTemplateResponse} obj Optional instance to populate. + * @return {module:model/EntPutJobTemplateResponse} The populated EntPutJobTemplateResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPutJobTemplateResponse(); + + + + + + if (data.hasOwnProperty('Job')) { + obj['Job'] = JobsJob.constructFromObject(data['Job']); + } + } + return obj; + } + + /** + * @member {module:model/JobsJob} Job + */ + Job = undefined; + + + + + + + + +} + + diff --git a/src/model/EntPutSelectorTemplateRequest.js b/src/model/EntPutSelectorTemplateRequest.js new file mode 100644 index 0000000..69f705a --- /dev/null +++ b/src/model/EntPutSelectorTemplateRequest.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import EntSelectorTemplate from './EntSelectorTemplate'; + + + + + +/** +* The EntPutSelectorTemplateRequest model module. +* @module model/EntPutSelectorTemplateRequest +* @version 2.0 +*/ +export default class EntPutSelectorTemplateRequest { + /** + * Constructs a new EntPutSelectorTemplateRequest. + * @alias module:model/EntPutSelectorTemplateRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntPutSelectorTemplateRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPutSelectorTemplateRequest} obj Optional instance to populate. + * @return {module:model/EntPutSelectorTemplateRequest} The populated EntPutSelectorTemplateRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPutSelectorTemplateRequest(); + + + + + + if (data.hasOwnProperty('Template')) { + obj['Template'] = EntSelectorTemplate.constructFromObject(data['Template']); + } + } + return obj; + } + + /** + * @member {module:model/EntSelectorTemplate} Template + */ + Template = undefined; + + + + + + + + +} + + diff --git a/src/model/EntPutSelectorTemplateResponse.js b/src/model/EntPutSelectorTemplateResponse.js new file mode 100644 index 0000000..b96d808 --- /dev/null +++ b/src/model/EntPutSelectorTemplateResponse.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The EntPutSelectorTemplateResponse model module. +* @module model/EntPutSelectorTemplateResponse +* @version 2.0 +*/ +export default class EntPutSelectorTemplateResponse { + /** + * Constructs a new EntPutSelectorTemplateResponse. + * @alias module:model/EntPutSelectorTemplateResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntPutSelectorTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntPutSelectorTemplateResponse} obj Optional instance to populate. + * @return {module:model/EntPutSelectorTemplateResponse} The populated EntPutSelectorTemplateResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntPutSelectorTemplateResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + + + + + + + + +} + + diff --git a/src/model/EntSelectorTemplate.js b/src/model/EntSelectorTemplate.js new file mode 100644 index 0000000..9ec97c8 --- /dev/null +++ b/src/model/EntSelectorTemplate.js @@ -0,0 +1,149 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsActionOutputFilter from './JobsActionOutputFilter'; +import JobsContextMetaFilter from './JobsContextMetaFilter'; +import JobsDataSourceSelector from './JobsDataSourceSelector'; +import JobsIdmSelector from './JobsIdmSelector'; +import JobsNodesSelector from './JobsNodesSelector'; +import JobsTriggerFilter from './JobsTriggerFilter'; + + + + + +/** +* The EntSelectorTemplate model module. +* @module model/EntSelectorTemplate +* @version 2.0 +*/ +export default class EntSelectorTemplate { + /** + * Constructs a new EntSelectorTemplate. + * @alias module:model/EntSelectorTemplate + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a EntSelectorTemplate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EntSelectorTemplate} obj Optional instance to populate. + * @return {module:model/EntSelectorTemplate} The populated EntSelectorTemplate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new EntSelectorTemplate(); + + + + + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('AsFilter')) { + obj['AsFilter'] = ApiClient.convertToType(data['AsFilter'], 'Boolean'); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('NodesSelector')) { + obj['NodesSelector'] = JobsNodesSelector.constructFromObject(data['NodesSelector']); + } + if (data.hasOwnProperty('IdmSelector')) { + obj['IdmSelector'] = JobsIdmSelector.constructFromObject(data['IdmSelector']); + } + if (data.hasOwnProperty('ActionOutputFilter')) { + obj['ActionOutputFilter'] = JobsActionOutputFilter.constructFromObject(data['ActionOutputFilter']); + } + if (data.hasOwnProperty('ContextMetaFilter')) { + obj['ContextMetaFilter'] = JobsContextMetaFilter.constructFromObject(data['ContextMetaFilter']); + } + if (data.hasOwnProperty('DataSourceSelector')) { + obj['DataSourceSelector'] = JobsDataSourceSelector.constructFromObject(data['DataSourceSelector']); + } + if (data.hasOwnProperty('TriggerFilter')) { + obj['TriggerFilter'] = JobsTriggerFilter.constructFromObject(data['TriggerFilter']); + } + } + return obj; + } + + /** + * @member {String} Name + */ + Name = undefined; + /** + * @member {Boolean} AsFilter + */ + AsFilter = undefined; + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {String} Description + */ + Description = undefined; + /** + * @member {module:model/JobsNodesSelector} NodesSelector + */ + NodesSelector = undefined; + /** + * @member {module:model/JobsIdmSelector} IdmSelector + */ + IdmSelector = undefined; + /** + * @member {module:model/JobsActionOutputFilter} ActionOutputFilter + */ + ActionOutputFilter = undefined; + /** + * @member {module:model/JobsContextMetaFilter} ContextMetaFilter + */ + ContextMetaFilter = undefined; + /** + * @member {module:model/JobsDataSourceSelector} DataSourceSelector + */ + DataSourceSelector = undefined; + /** + * @member {module:model/JobsTriggerFilter} TriggerFilter + */ + TriggerFilter = undefined; + + + + + + + + +} + + diff --git a/src/model/IdmACL.js b/src/model/IdmACL.js new file mode 100644 index 0000000..3289607 --- /dev/null +++ b/src/model/IdmACL.js @@ -0,0 +1,110 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import IdmACLAction from './IdmACLAction'; + + + + + +/** +* The IdmACL model module. +* @module model/IdmACL +* @version 2.0 +*/ +export default class IdmACL { + /** + * Constructs a new IdmACL. + * ACL are the basic flags that can be put anywhere in the tree to provide some specific rights to a given role. The context of how they apply can be fine-tuned by workspace. + * @alias module:model/IdmACL + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IdmACL from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmACL} obj Optional instance to populate. + * @return {module:model/IdmACL} The populated IdmACL instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmACL(); + + + + + + if (data.hasOwnProperty('ID')) { + obj['ID'] = ApiClient.convertToType(data['ID'], 'String'); + } + if (data.hasOwnProperty('Action')) { + obj['Action'] = IdmACLAction.constructFromObject(data['Action']); + } + if (data.hasOwnProperty('RoleID')) { + obj['RoleID'] = ApiClient.convertToType(data['RoleID'], 'String'); + } + if (data.hasOwnProperty('WorkspaceID')) { + obj['WorkspaceID'] = ApiClient.convertToType(data['WorkspaceID'], 'String'); + } + if (data.hasOwnProperty('NodeID')) { + obj['NodeID'] = ApiClient.convertToType(data['NodeID'], 'String'); + } + } + return obj; + } + + /** + * @member {String} ID + */ + ID = undefined; + /** + * @member {module:model/IdmACLAction} Action + */ + Action = undefined; + /** + * @member {String} RoleID + */ + RoleID = undefined; + /** + * @member {String} WorkspaceID + */ + WorkspaceID = undefined; + /** + * @member {String} NodeID + */ + NodeID = undefined; + + + + + + + + +} + + diff --git a/src/model/IdmACLAction.js b/src/model/IdmACLAction.js new file mode 100644 index 0000000..ce15cf2 --- /dev/null +++ b/src/model/IdmACLAction.js @@ -0,0 +1,87 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The IdmACLAction model module. +* @module model/IdmACLAction +* @version 2.0 +*/ +export default class IdmACLAction { + /** + * Constructs a new IdmACLAction. + * @alias module:model/IdmACLAction + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IdmACLAction from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmACLAction} obj Optional instance to populate. + * @return {module:model/IdmACLAction} The populated IdmACLAction instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmACLAction(); + + + + + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], 'String'); + } + } + return obj; + } + + /** + * @member {String} Name + */ + Name = undefined; + /** + * @member {String} Value + */ + Value = undefined; + + + + + + + + +} + + diff --git a/src/model/IdmPolicy.js b/src/model/IdmPolicy.js new file mode 100644 index 0000000..3088623 --- /dev/null +++ b/src/model/IdmPolicy.js @@ -0,0 +1,124 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import IdmPolicyCondition from './IdmPolicyCondition'; +import IdmPolicyEffect from './IdmPolicyEffect'; + + + + + +/** +* The IdmPolicy model module. +* @module model/IdmPolicy +* @version 2.0 +*/ +export default class IdmPolicy { + /** + * Constructs a new IdmPolicy. + * @alias module:model/IdmPolicy + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IdmPolicy from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmPolicy} obj Optional instance to populate. + * @return {module:model/IdmPolicy} The populated IdmPolicy instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmPolicy(); + + + + + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + } + if (data.hasOwnProperty('subjects')) { + obj['subjects'] = ApiClient.convertToType(data['subjects'], ['String']); + } + if (data.hasOwnProperty('resources')) { + obj['resources'] = ApiClient.convertToType(data['resources'], ['String']); + } + if (data.hasOwnProperty('actions')) { + obj['actions'] = ApiClient.convertToType(data['actions'], ['String']); + } + if (data.hasOwnProperty('effect')) { + obj['effect'] = IdmPolicyEffect.constructFromObject(data['effect']); + } + if (data.hasOwnProperty('conditions')) { + obj['conditions'] = ApiClient.convertToType(data['conditions'], {'String': IdmPolicyCondition}); + } + } + return obj; + } + + /** + * @member {String} id + */ + id = undefined; + /** + * @member {String} description + */ + description = undefined; + /** + * @member {Array.} subjects + */ + subjects = undefined; + /** + * @member {Array.} resources + */ + resources = undefined; + /** + * @member {Array.} actions + */ + actions = undefined; + /** + * @member {module:model/IdmPolicyEffect} effect + */ + effect = undefined; + /** + * @member {Object.} conditions + */ + conditions = undefined; + + + + + + + + +} + + diff --git a/src/model/IdmPolicyCondition.js b/src/model/IdmPolicyCondition.js new file mode 100644 index 0000000..f7fb15a --- /dev/null +++ b/src/model/IdmPolicyCondition.js @@ -0,0 +1,87 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The IdmPolicyCondition model module. +* @module model/IdmPolicyCondition +* @version 2.0 +*/ +export default class IdmPolicyCondition { + /** + * Constructs a new IdmPolicyCondition. + * @alias module:model/IdmPolicyCondition + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IdmPolicyCondition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmPolicyCondition} obj Optional instance to populate. + * @return {module:model/IdmPolicyCondition} The populated IdmPolicyCondition instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmPolicyCondition(); + + + + + + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('jsonOptions')) { + obj['jsonOptions'] = ApiClient.convertToType(data['jsonOptions'], 'String'); + } + } + return obj; + } + + /** + * @member {String} type + */ + type = undefined; + /** + * @member {String} jsonOptions + */ + jsonOptions = undefined; + + + + + + + + +} + + diff --git a/src/model/IdmPolicyEffect.js b/src/model/IdmPolicyEffect.js new file mode 100644 index 0000000..5536573 --- /dev/null +++ b/src/model/IdmPolicyEffect.js @@ -0,0 +1,57 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class IdmPolicyEffect. +* @enum {} +* @readonly +*/ +export default class IdmPolicyEffect { + + /** + * value: "unknown" + * @const + */ + unknown = "unknown"; + + + /** + * value: "deny" + * @const + */ + deny = "deny"; + + + /** + * value: "allow" + * @const + */ + allow = "allow"; + + + + /** + * Returns a IdmPolicyEffect enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/IdmPolicyEffect} The enum IdmPolicyEffect value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/IdmPolicyGroup.js b/src/model/IdmPolicyGroup.js new file mode 100644 index 0000000..f29cdc9 --- /dev/null +++ b/src/model/IdmPolicyGroup.js @@ -0,0 +1,124 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import IdmPolicy from './IdmPolicy'; +import IdmPolicyResourceGroup from './IdmPolicyResourceGroup'; + + + + + +/** +* The IdmPolicyGroup model module. +* @module model/IdmPolicyGroup +* @version 2.0 +*/ +export default class IdmPolicyGroup { + /** + * Constructs a new IdmPolicyGroup. + * @alias module:model/IdmPolicyGroup + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IdmPolicyGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmPolicyGroup} obj Optional instance to populate. + * @return {module:model/IdmPolicyGroup} The populated IdmPolicyGroup instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmPolicyGroup(); + + + + + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('OwnerUuid')) { + obj['OwnerUuid'] = ApiClient.convertToType(data['OwnerUuid'], 'String'); + } + if (data.hasOwnProperty('ResourceGroup')) { + obj['ResourceGroup'] = IdmPolicyResourceGroup.constructFromObject(data['ResourceGroup']); + } + if (data.hasOwnProperty('LastUpdated')) { + obj['LastUpdated'] = ApiClient.convertToType(data['LastUpdated'], 'Number'); + } + if (data.hasOwnProperty('Policies')) { + obj['Policies'] = ApiClient.convertToType(data['Policies'], [IdmPolicy]); + } + } + return obj; + } + + /** + * @member {String} Uuid + */ + Uuid = undefined; + /** + * @member {String} Name + */ + Name = undefined; + /** + * @member {String} Description + */ + Description = undefined; + /** + * @member {String} OwnerUuid + */ + OwnerUuid = undefined; + /** + * @member {module:model/IdmPolicyResourceGroup} ResourceGroup + */ + ResourceGroup = undefined; + /** + * @member {Number} LastUpdated + */ + LastUpdated = undefined; + /** + * @member {Array.} Policies + */ + Policies = undefined; + + + + + + + + +} + + diff --git a/src/model/IdmPolicyResourceGroup.js b/src/model/IdmPolicyResourceGroup.js new file mode 100644 index 0000000..865bf72 --- /dev/null +++ b/src/model/IdmPolicyResourceGroup.js @@ -0,0 +1,57 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class IdmPolicyResourceGroup. +* @enum {} +* @readonly +*/ +export default class IdmPolicyResourceGroup { + + /** + * value: "rest" + * @const + */ + rest = "rest"; + + + /** + * value: "acl" + * @const + */ + acl = "acl"; + + + /** + * value: "oidc" + * @const + */ + oidc = "oidc"; + + + + /** + * Returns a IdmPolicyResourceGroup enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/IdmPolicyResourceGroup} The enum IdmPolicyResourceGroup value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/IdmRole.js b/src/model/IdmRole.js new file mode 100644 index 0000000..6654a32 --- /dev/null +++ b/src/model/IdmRole.js @@ -0,0 +1,146 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import ServiceResourcePolicy from './ServiceResourcePolicy'; + + + + + +/** +* The IdmRole model module. +* @module model/IdmRole +* @version 2.0 +*/ +export default class IdmRole { + /** + * Constructs a new IdmRole. + * Role represents a generic set of permissions that can be applied to any users or groups. + * @alias module:model/IdmRole + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IdmRole from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmRole} obj Optional instance to populate. + * @return {module:model/IdmRole} The populated IdmRole instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmRole(); + + + + + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String'); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('IsTeam')) { + obj['IsTeam'] = ApiClient.convertToType(data['IsTeam'], 'Boolean'); + } + if (data.hasOwnProperty('GroupRole')) { + obj['GroupRole'] = ApiClient.convertToType(data['GroupRole'], 'Boolean'); + } + if (data.hasOwnProperty('UserRole')) { + obj['UserRole'] = ApiClient.convertToType(data['UserRole'], 'Boolean'); + } + if (data.hasOwnProperty('LastUpdated')) { + obj['LastUpdated'] = ApiClient.convertToType(data['LastUpdated'], 'Number'); + } + if (data.hasOwnProperty('AutoApplies')) { + obj['AutoApplies'] = ApiClient.convertToType(data['AutoApplies'], ['String']); + } + if (data.hasOwnProperty('Policies')) { + obj['Policies'] = ApiClient.convertToType(data['Policies'], [ServiceResourcePolicy]); + } + if (data.hasOwnProperty('PoliciesContextEditable')) { + obj['PoliciesContextEditable'] = ApiClient.convertToType(data['PoliciesContextEditable'], 'Boolean'); + } + if (data.hasOwnProperty('ForceOverride')) { + obj['ForceOverride'] = ApiClient.convertToType(data['ForceOverride'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {String} Uuid + */ + Uuid = undefined; + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {Boolean} IsTeam + */ + IsTeam = undefined; + /** + * @member {Boolean} GroupRole + */ + GroupRole = undefined; + /** + * @member {Boolean} UserRole + */ + UserRole = undefined; + /** + * @member {Number} LastUpdated + */ + LastUpdated = undefined; + /** + * @member {Array.} AutoApplies + */ + AutoApplies = undefined; + /** + * @member {Array.} Policies + */ + Policies = undefined; + /** + * @member {Boolean} PoliciesContextEditable + */ + PoliciesContextEditable = undefined; + /** + * Is used in a stack of roles, this one will always be applied last. + * @member {Boolean} ForceOverride + */ + ForceOverride = undefined; + + + + + + + + +} + + diff --git a/src/model/IdmUser.js b/src/model/IdmUser.js new file mode 100644 index 0000000..82a42b1 --- /dev/null +++ b/src/model/IdmUser.js @@ -0,0 +1,160 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import IdmRole from './IdmRole'; +import ServiceResourcePolicy from './ServiceResourcePolicy'; + + + + + +/** +* The IdmUser model module. +* @module model/IdmUser +* @version 2.0 +*/ +export default class IdmUser { + /** + * Constructs a new IdmUser. + * @alias module:model/IdmUser + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IdmUser from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmUser} obj Optional instance to populate. + * @return {module:model/IdmUser} The populated IdmUser instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmUser(); + + + + + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String'); + } + if (data.hasOwnProperty('GroupPath')) { + obj['GroupPath'] = ApiClient.convertToType(data['GroupPath'], 'String'); + } + if (data.hasOwnProperty('Attributes')) { + obj['Attributes'] = ApiClient.convertToType(data['Attributes'], {'String': 'String'}); + } + if (data.hasOwnProperty('Roles')) { + obj['Roles'] = ApiClient.convertToType(data['Roles'], [IdmRole]); + } + if (data.hasOwnProperty('Login')) { + obj['Login'] = ApiClient.convertToType(data['Login'], 'String'); + } + if (data.hasOwnProperty('Password')) { + obj['Password'] = ApiClient.convertToType(data['Password'], 'String'); + } + if (data.hasOwnProperty('OldPassword')) { + obj['OldPassword'] = ApiClient.convertToType(data['OldPassword'], 'String'); + } + if (data.hasOwnProperty('IsGroup')) { + obj['IsGroup'] = ApiClient.convertToType(data['IsGroup'], 'Boolean'); + } + if (data.hasOwnProperty('GroupLabel')) { + obj['GroupLabel'] = ApiClient.convertToType(data['GroupLabel'], 'String'); + } + if (data.hasOwnProperty('LastConnected')) { + obj['LastConnected'] = ApiClient.convertToType(data['LastConnected'], 'Number'); + } + if (data.hasOwnProperty('Policies')) { + obj['Policies'] = ApiClient.convertToType(data['Policies'], [ServiceResourcePolicy]); + } + if (data.hasOwnProperty('PoliciesContextEditable')) { + obj['PoliciesContextEditable'] = ApiClient.convertToType(data['PoliciesContextEditable'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {String} Uuid + */ + Uuid = undefined; + /** + * @member {String} GroupPath + */ + GroupPath = undefined; + /** + * @member {Object.} Attributes + */ + Attributes = undefined; + /** + * @member {Array.} Roles + */ + Roles = undefined; + /** + * @member {String} Login + */ + Login = undefined; + /** + * @member {String} Password + */ + Password = undefined; + /** + * @member {String} OldPassword + */ + OldPassword = undefined; + /** + * @member {Boolean} IsGroup + */ + IsGroup = undefined; + /** + * @member {String} GroupLabel + */ + GroupLabel = undefined; + /** + * @member {Number} LastConnected + */ + LastConnected = undefined; + /** + * @member {Array.} Policies + */ + Policies = undefined; + /** + * Context-resolved to quickly check if user is editable or not. + * @member {Boolean} PoliciesContextEditable + */ + PoliciesContextEditable = undefined; + + + + + + + + +} + + diff --git a/src/model/IdmWorkspace.js b/src/model/IdmWorkspace.js new file mode 100644 index 0000000..668cd3e --- /dev/null +++ b/src/model/IdmWorkspace.js @@ -0,0 +1,154 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import IdmWorkspaceScope from './IdmWorkspaceScope'; +import ServiceResourcePolicy from './ServiceResourcePolicy'; +import TreeNode from './TreeNode'; + + + + + +/** +* The IdmWorkspace model module. +* @module model/IdmWorkspace +* @version 2.0 +*/ +export default class IdmWorkspace { + /** + * Constructs a new IdmWorkspace. + * A Workspace is composed of a set of nodes UUIDs and is used to provide accesses to the tree via ACLs. + * @alias module:model/IdmWorkspace + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IdmWorkspace from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IdmWorkspace} obj Optional instance to populate. + * @return {module:model/IdmWorkspace} The populated IdmWorkspace instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IdmWorkspace(); + + + + + + if (data.hasOwnProperty('UUID')) { + obj['UUID'] = ApiClient.convertToType(data['UUID'], 'String'); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Slug')) { + obj['Slug'] = ApiClient.convertToType(data['Slug'], 'String'); + } + if (data.hasOwnProperty('Scope')) { + obj['Scope'] = IdmWorkspaceScope.constructFromObject(data['Scope']); + } + if (data.hasOwnProperty('LastUpdated')) { + obj['LastUpdated'] = ApiClient.convertToType(data['LastUpdated'], 'Number'); + } + if (data.hasOwnProperty('Policies')) { + obj['Policies'] = ApiClient.convertToType(data['Policies'], [ServiceResourcePolicy]); + } + if (data.hasOwnProperty('Attributes')) { + obj['Attributes'] = ApiClient.convertToType(data['Attributes'], 'String'); + } + if (data.hasOwnProperty('RootUUIDs')) { + obj['RootUUIDs'] = ApiClient.convertToType(data['RootUUIDs'], ['String']); + } + if (data.hasOwnProperty('RootNodes')) { + obj['RootNodes'] = ApiClient.convertToType(data['RootNodes'], {'String': TreeNode}); + } + if (data.hasOwnProperty('PoliciesContextEditable')) { + obj['PoliciesContextEditable'] = ApiClient.convertToType(data['PoliciesContextEditable'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {String} UUID + */ + UUID = undefined; + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {String} Description + */ + Description = undefined; + /** + * @member {String} Slug + */ + Slug = undefined; + /** + * @member {module:model/IdmWorkspaceScope} Scope + */ + Scope = undefined; + /** + * @member {Number} LastUpdated + */ + LastUpdated = undefined; + /** + * @member {Array.} Policies + */ + Policies = undefined; + /** + * @member {String} Attributes + */ + Attributes = undefined; + /** + * @member {Array.} RootUUIDs + */ + RootUUIDs = undefined; + /** + * @member {Object.} RootNodes + */ + RootNodes = undefined; + /** + * @member {Boolean} PoliciesContextEditable + */ + PoliciesContextEditable = undefined; + + + + + + + + +} + + diff --git a/src/model/IdmWorkspaceScope.js b/src/model/IdmWorkspaceScope.js new file mode 100644 index 0000000..c8f28ce --- /dev/null +++ b/src/model/IdmWorkspaceScope.js @@ -0,0 +1,64 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class IdmWorkspaceScope. +* @enum {} +* @readonly +*/ +export default class IdmWorkspaceScope { + + /** + * value: "ANY" + * @const + */ + ANY = "ANY"; + + + /** + * value: "ADMIN" + * @const + */ + ADMIN = "ADMIN"; + + + /** + * value: "ROOM" + * @const + */ + ROOM = "ROOM"; + + + /** + * value: "LINK" + * @const + */ + LINK = "LINK"; + + + + /** + * Returns a IdmWorkspaceScope enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/IdmWorkspaceScope} The enum IdmWorkspaceScope value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/InstallProxyConfig.js b/src/model/InstallProxyConfig.js new file mode 100644 index 0000000..ca0e62f --- /dev/null +++ b/src/model/InstallProxyConfig.js @@ -0,0 +1,132 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import InstallTLSCertificate from './InstallTLSCertificate'; +import InstallTLSLetsEncrypt from './InstallTLSLetsEncrypt'; +import InstallTLSSelfSigned from './InstallTLSSelfSigned'; + + + + + +/** +* The InstallProxyConfig model module. +* @module model/InstallProxyConfig +* @version 2.0 +*/ +export default class InstallProxyConfig { + /** + * Constructs a new InstallProxyConfig. + * @alias module:model/InstallProxyConfig + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a InstallProxyConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstallProxyConfig} obj Optional instance to populate. + * @return {module:model/InstallProxyConfig} The populated InstallProxyConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InstallProxyConfig(); + + + + + + if (data.hasOwnProperty('Binds')) { + obj['Binds'] = ApiClient.convertToType(data['Binds'], ['String']); + } + if (data.hasOwnProperty('ReverseProxyURL')) { + obj['ReverseProxyURL'] = ApiClient.convertToType(data['ReverseProxyURL'], 'String'); + } + if (data.hasOwnProperty('SelfSigned')) { + obj['SelfSigned'] = InstallTLSSelfSigned.constructFromObject(data['SelfSigned']); + } + if (data.hasOwnProperty('LetsEncrypt')) { + obj['LetsEncrypt'] = InstallTLSLetsEncrypt.constructFromObject(data['LetsEncrypt']); + } + if (data.hasOwnProperty('Certificate')) { + obj['Certificate'] = InstallTLSCertificate.constructFromObject(data['Certificate']); + } + if (data.hasOwnProperty('SSLRedirect')) { + obj['SSLRedirect'] = ApiClient.convertToType(data['SSLRedirect'], 'Boolean'); + } + if (data.hasOwnProperty('Maintenance')) { + obj['Maintenance'] = ApiClient.convertToType(data['Maintenance'], 'Boolean'); + } + if (data.hasOwnProperty('MaintenanceConditions')) { + obj['MaintenanceConditions'] = ApiClient.convertToType(data['MaintenanceConditions'], ['String']); + } + } + return obj; + } + + /** + * @member {Array.} Binds + */ + Binds = undefined; + /** + * @member {String} ReverseProxyURL + */ + ReverseProxyURL = undefined; + /** + * @member {module:model/InstallTLSSelfSigned} SelfSigned + */ + SelfSigned = undefined; + /** + * @member {module:model/InstallTLSLetsEncrypt} LetsEncrypt + */ + LetsEncrypt = undefined; + /** + * @member {module:model/InstallTLSCertificate} Certificate + */ + Certificate = undefined; + /** + * @member {Boolean} SSLRedirect + */ + SSLRedirect = undefined; + /** + * @member {Boolean} Maintenance + */ + Maintenance = undefined; + /** + * @member {Array.} MaintenanceConditions + */ + MaintenanceConditions = undefined; + + + + + + + + +} + + diff --git a/src/model/InstallTLSCertificate.js b/src/model/InstallTLSCertificate.js new file mode 100644 index 0000000..d9572a3 --- /dev/null +++ b/src/model/InstallTLSCertificate.js @@ -0,0 +1,94 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The InstallTLSCertificate model module. +* @module model/InstallTLSCertificate +* @version 2.0 +*/ +export default class InstallTLSCertificate { + /** + * Constructs a new InstallTLSCertificate. + * @alias module:model/InstallTLSCertificate + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a InstallTLSCertificate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstallTLSCertificate} obj Optional instance to populate. + * @return {module:model/InstallTLSCertificate} The populated InstallTLSCertificate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InstallTLSCertificate(); + + + + + + if (data.hasOwnProperty('CertFile')) { + obj['CertFile'] = ApiClient.convertToType(data['CertFile'], 'String'); + } + if (data.hasOwnProperty('KeyFile')) { + obj['KeyFile'] = ApiClient.convertToType(data['KeyFile'], 'String'); + } + if (data.hasOwnProperty('CellsRootCA')) { + obj['CellsRootCA'] = ApiClient.convertToType(data['CellsRootCA'], 'String'); + } + } + return obj; + } + + /** + * @member {String} CertFile + */ + CertFile = undefined; + /** + * @member {String} KeyFile + */ + KeyFile = undefined; + /** + * @member {String} CellsRootCA + */ + CellsRootCA = undefined; + + + + + + + + +} + + diff --git a/src/model/InstallTLSLetsEncrypt.js b/src/model/InstallTLSLetsEncrypt.js new file mode 100644 index 0000000..1e9913e --- /dev/null +++ b/src/model/InstallTLSLetsEncrypt.js @@ -0,0 +1,94 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The InstallTLSLetsEncrypt model module. +* @module model/InstallTLSLetsEncrypt +* @version 2.0 +*/ +export default class InstallTLSLetsEncrypt { + /** + * Constructs a new InstallTLSLetsEncrypt. + * @alias module:model/InstallTLSLetsEncrypt + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a InstallTLSLetsEncrypt from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstallTLSLetsEncrypt} obj Optional instance to populate. + * @return {module:model/InstallTLSLetsEncrypt} The populated InstallTLSLetsEncrypt instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InstallTLSLetsEncrypt(); + + + + + + if (data.hasOwnProperty('Email')) { + obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); + } + if (data.hasOwnProperty('AcceptEULA')) { + obj['AcceptEULA'] = ApiClient.convertToType(data['AcceptEULA'], 'Boolean'); + } + if (data.hasOwnProperty('StagingCA')) { + obj['StagingCA'] = ApiClient.convertToType(data['StagingCA'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {String} Email + */ + Email = undefined; + /** + * @member {Boolean} AcceptEULA + */ + AcceptEULA = undefined; + /** + * @member {Boolean} StagingCA + */ + StagingCA = undefined; + + + + + + + + +} + + diff --git a/src/model/InstallTLSSelfSigned.js b/src/model/InstallTLSSelfSigned.js new file mode 100644 index 0000000..f60ae0a --- /dev/null +++ b/src/model/InstallTLSSelfSigned.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The InstallTLSSelfSigned model module. +* @module model/InstallTLSSelfSigned +* @version 2.0 +*/ +export default class InstallTLSSelfSigned { + /** + * Constructs a new InstallTLSSelfSigned. + * @alias module:model/InstallTLSSelfSigned + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a InstallTLSSelfSigned from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstallTLSSelfSigned} obj Optional instance to populate. + * @return {module:model/InstallTLSSelfSigned} The populated InstallTLSSelfSigned instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InstallTLSSelfSigned(); + + + + + + if (data.hasOwnProperty('Hostnames')) { + obj['Hostnames'] = ApiClient.convertToType(data['Hostnames'], ['String']); + } + } + return obj; + } + + /** + * @member {Array.} Hostnames + */ + Hostnames = undefined; + + + + + + + + +} + + diff --git a/src/model/IpbanBannedConnection.js b/src/model/IpbanBannedConnection.js new file mode 100644 index 0000000..1f84008 --- /dev/null +++ b/src/model/IpbanBannedConnection.js @@ -0,0 +1,95 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import IpbanConnectionAttempt from './IpbanConnectionAttempt'; + + + + + +/** +* The IpbanBannedConnection model module. +* @module model/IpbanBannedConnection +* @version 2.0 +*/ +export default class IpbanBannedConnection { + /** + * Constructs a new IpbanBannedConnection. + * @alias module:model/IpbanBannedConnection + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IpbanBannedConnection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IpbanBannedConnection} obj Optional instance to populate. + * @return {module:model/IpbanBannedConnection} The populated IpbanBannedConnection instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IpbanBannedConnection(); + + + + + + if (data.hasOwnProperty('IP')) { + obj['IP'] = ApiClient.convertToType(data['IP'], 'String'); + } + if (data.hasOwnProperty('BanExpire')) { + obj['BanExpire'] = ApiClient.convertToType(data['BanExpire'], 'String'); + } + if (data.hasOwnProperty('History')) { + obj['History'] = ApiClient.convertToType(data['History'], [IpbanConnectionAttempt]); + } + } + return obj; + } + + /** + * @member {String} IP + */ + IP = undefined; + /** + * @member {String} BanExpire + */ + BanExpire = undefined; + /** + * @member {Array.} History + */ + History = undefined; + + + + + + + + +} + + diff --git a/src/model/IpbanConnectionAttempt.js b/src/model/IpbanConnectionAttempt.js new file mode 100644 index 0000000..06d5d16 --- /dev/null +++ b/src/model/IpbanConnectionAttempt.js @@ -0,0 +1,101 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The IpbanConnectionAttempt model module. +* @module model/IpbanConnectionAttempt +* @version 2.0 +*/ +export default class IpbanConnectionAttempt { + /** + * Constructs a new IpbanConnectionAttempt. + * @alias module:model/IpbanConnectionAttempt + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IpbanConnectionAttempt from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IpbanConnectionAttempt} obj Optional instance to populate. + * @return {module:model/IpbanConnectionAttempt} The populated IpbanConnectionAttempt instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IpbanConnectionAttempt(); + + + + + + if (data.hasOwnProperty('IP')) { + obj['IP'] = ApiClient.convertToType(data['IP'], 'String'); + } + if (data.hasOwnProperty('connectionTime')) { + obj['connectionTime'] = ApiClient.convertToType(data['connectionTime'], 'String'); + } + if (data.hasOwnProperty('IsSuccess')) { + obj['IsSuccess'] = ApiClient.convertToType(data['IsSuccess'], 'Boolean'); + } + if (data.hasOwnProperty('Details')) { + obj['Details'] = ApiClient.convertToType(data['Details'], {'String': 'String'}); + } + } + return obj; + } + + /** + * @member {String} IP + */ + IP = undefined; + /** + * @member {String} connectionTime + */ + connectionTime = undefined; + /** + * @member {Boolean} IsSuccess + */ + IsSuccess = undefined; + /** + * @member {Object.} Details + */ + Details = undefined; + + + + + + + + +} + + diff --git a/src/model/IpbanIPsCollection.js b/src/model/IpbanIPsCollection.js new file mode 100644 index 0000000..a017e85 --- /dev/null +++ b/src/model/IpbanIPsCollection.js @@ -0,0 +1,87 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The IpbanIPsCollection model module. +* @module model/IpbanIPsCollection +* @version 2.0 +*/ +export default class IpbanIPsCollection { + /** + * Constructs a new IpbanIPsCollection. + * @alias module:model/IpbanIPsCollection + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IpbanIPsCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IpbanIPsCollection} obj Optional instance to populate. + * @return {module:model/IpbanIPsCollection} The populated IpbanIPsCollection instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IpbanIPsCollection(); + + + + + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('IPs')) { + obj['IPs'] = ApiClient.convertToType(data['IPs'], ['String']); + } + } + return obj; + } + + /** + * @member {String} Name + */ + Name = undefined; + /** + * @member {Array.} IPs + */ + IPs = undefined; + + + + + + + + +} + + diff --git a/src/model/IpbanListBansCollection.js b/src/model/IpbanListBansCollection.js new file mode 100644 index 0000000..5cd7a97 --- /dev/null +++ b/src/model/IpbanListBansCollection.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import IpbanBannedConnection from './IpbanBannedConnection'; + + + + + +/** +* The IpbanListBansCollection model module. +* @module model/IpbanListBansCollection +* @version 2.0 +*/ +export default class IpbanListBansCollection { + /** + * Constructs a new IpbanListBansCollection. + * @alias module:model/IpbanListBansCollection + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IpbanListBansCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IpbanListBansCollection} obj Optional instance to populate. + * @return {module:model/IpbanListBansCollection} The populated IpbanListBansCollection instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IpbanListBansCollection(); + + + + + + if (data.hasOwnProperty('Bans')) { + obj['Bans'] = ApiClient.convertToType(data['Bans'], [IpbanBannedConnection]); + } + } + return obj; + } + + /** + * @member {Array.} Bans + */ + Bans = undefined; + + + + + + + + +} + + diff --git a/src/model/IpbanUnbanRequest.js b/src/model/IpbanUnbanRequest.js new file mode 100644 index 0000000..bb77103 --- /dev/null +++ b/src/model/IpbanUnbanRequest.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The IpbanUnbanRequest model module. +* @module model/IpbanUnbanRequest +* @version 2.0 +*/ +export default class IpbanUnbanRequest { + /** + * Constructs a new IpbanUnbanRequest. + * @alias module:model/IpbanUnbanRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IpbanUnbanRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IpbanUnbanRequest} obj Optional instance to populate. + * @return {module:model/IpbanUnbanRequest} The populated IpbanUnbanRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IpbanUnbanRequest(); + + + + + + if (data.hasOwnProperty('IP')) { + obj['IP'] = ApiClient.convertToType(data['IP'], 'String'); + } + } + return obj; + } + + /** + * @member {String} IP + */ + IP = undefined; + + + + + + + + +} + + diff --git a/src/model/IpbanUnbanResponse.js b/src/model/IpbanUnbanResponse.js new file mode 100644 index 0000000..ef57a02 --- /dev/null +++ b/src/model/IpbanUnbanResponse.js @@ -0,0 +1,80 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The IpbanUnbanResponse model module. +* @module model/IpbanUnbanResponse +* @version 2.0 +*/ +export default class IpbanUnbanResponse { + /** + * Constructs a new IpbanUnbanResponse. + * @alias module:model/IpbanUnbanResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a IpbanUnbanResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IpbanUnbanResponse} obj Optional instance to populate. + * @return {module:model/IpbanUnbanResponse} The populated IpbanUnbanResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new IpbanUnbanResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsAction.js b/src/model/JobsAction.js new file mode 100644 index 0000000..7e8e0b5 --- /dev/null +++ b/src/model/JobsAction.js @@ -0,0 +1,213 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsActionOutputFilter from './JobsActionOutputFilter'; +import JobsContextMetaFilter from './JobsContextMetaFilter'; +import JobsDataSourceSelector from './JobsDataSourceSelector'; +import JobsIdmSelector from './JobsIdmSelector'; +import JobsNodesSelector from './JobsNodesSelector'; +import JobsTriggerFilter from './JobsTriggerFilter'; +import JobsUsersSelector from './JobsUsersSelector'; + + + + + +/** +* The JobsAction model module. +* @module model/JobsAction +* @version 2.0 +*/ +export default class JobsAction { + /** + * Constructs a new JobsAction. + * @alias module:model/JobsAction + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsAction from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsAction} obj Optional instance to populate. + * @return {module:model/JobsAction} The populated JobsAction instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsAction(); + + + + + + if (data.hasOwnProperty('ID')) { + obj['ID'] = ApiClient.convertToType(data['ID'], 'String'); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Bypass')) { + obj['Bypass'] = ApiClient.convertToType(data['Bypass'], 'Boolean'); + } + if (data.hasOwnProperty('BreakAfter')) { + obj['BreakAfter'] = ApiClient.convertToType(data['BreakAfter'], 'Boolean'); + } + if (data.hasOwnProperty('NodesSelector')) { + obj['NodesSelector'] = JobsNodesSelector.constructFromObject(data['NodesSelector']); + } + if (data.hasOwnProperty('UsersSelector')) { + obj['UsersSelector'] = JobsUsersSelector.constructFromObject(data['UsersSelector']); + } + if (data.hasOwnProperty('NodesFilter')) { + obj['NodesFilter'] = JobsNodesSelector.constructFromObject(data['NodesFilter']); + } + if (data.hasOwnProperty('UsersFilter')) { + obj['UsersFilter'] = JobsUsersSelector.constructFromObject(data['UsersFilter']); + } + if (data.hasOwnProperty('IdmSelector')) { + obj['IdmSelector'] = JobsIdmSelector.constructFromObject(data['IdmSelector']); + } + if (data.hasOwnProperty('IdmFilter')) { + obj['IdmFilter'] = JobsIdmSelector.constructFromObject(data['IdmFilter']); + } + if (data.hasOwnProperty('DataSourceSelector')) { + obj['DataSourceSelector'] = JobsDataSourceSelector.constructFromObject(data['DataSourceSelector']); + } + if (data.hasOwnProperty('DataSourceFilter')) { + obj['DataSourceFilter'] = JobsDataSourceSelector.constructFromObject(data['DataSourceFilter']); + } + if (data.hasOwnProperty('ActionOutputFilter')) { + obj['ActionOutputFilter'] = JobsActionOutputFilter.constructFromObject(data['ActionOutputFilter']); + } + if (data.hasOwnProperty('ContextMetaFilter')) { + obj['ContextMetaFilter'] = JobsContextMetaFilter.constructFromObject(data['ContextMetaFilter']); + } + if (data.hasOwnProperty('TriggerFilter')) { + obj['TriggerFilter'] = JobsTriggerFilter.constructFromObject(data['TriggerFilter']); + } + if (data.hasOwnProperty('Parameters')) { + obj['Parameters'] = ApiClient.convertToType(data['Parameters'], {'String': 'String'}); + } + if (data.hasOwnProperty('ChainedActions')) { + obj['ChainedActions'] = ApiClient.convertToType(data['ChainedActions'], [JobsAction]); + } + if (data.hasOwnProperty('FailedFilterActions')) { + obj['FailedFilterActions'] = ApiClient.convertToType(data['FailedFilterActions'], [JobsAction]); + } + } + return obj; + } + + /** + * @member {String} ID + */ + ID = undefined; + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {String} Description + */ + Description = undefined; + /** + * @member {Boolean} Bypass + */ + Bypass = undefined; + /** + * @member {Boolean} BreakAfter + */ + BreakAfter = undefined; + /** + * @member {module:model/JobsNodesSelector} NodesSelector + */ + NodesSelector = undefined; + /** + * @member {module:model/JobsUsersSelector} UsersSelector + */ + UsersSelector = undefined; + /** + * @member {module:model/JobsNodesSelector} NodesFilter + */ + NodesFilter = undefined; + /** + * @member {module:model/JobsUsersSelector} UsersFilter + */ + UsersFilter = undefined; + /** + * @member {module:model/JobsIdmSelector} IdmSelector + */ + IdmSelector = undefined; + /** + * @member {module:model/JobsIdmSelector} IdmFilter + */ + IdmFilter = undefined; + /** + * @member {module:model/JobsDataSourceSelector} DataSourceSelector + */ + DataSourceSelector = undefined; + /** + * @member {module:model/JobsDataSourceSelector} DataSourceFilter + */ + DataSourceFilter = undefined; + /** + * @member {module:model/JobsActionOutputFilter} ActionOutputFilter + */ + ActionOutputFilter = undefined; + /** + * @member {module:model/JobsContextMetaFilter} ContextMetaFilter + */ + ContextMetaFilter = undefined; + /** + * @member {module:model/JobsTriggerFilter} TriggerFilter + */ + TriggerFilter = undefined; + /** + * @member {Object.} Parameters + */ + Parameters = undefined; + /** + * @member {Array.} ChainedActions + */ + ChainedActions = undefined; + /** + * @member {Array.} FailedFilterActions + */ + FailedFilterActions = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsActionLog.js b/src/model/JobsActionLog.js new file mode 100644 index 0000000..4b1b51f --- /dev/null +++ b/src/model/JobsActionLog.js @@ -0,0 +1,96 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsAction from './JobsAction'; +import JobsActionMessage from './JobsActionMessage'; + + + + + +/** +* The JobsActionLog model module. +* @module model/JobsActionLog +* @version 2.0 +*/ +export default class JobsActionLog { + /** + * Constructs a new JobsActionLog. + * @alias module:model/JobsActionLog + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsActionLog from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsActionLog} obj Optional instance to populate. + * @return {module:model/JobsActionLog} The populated JobsActionLog instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsActionLog(); + + + + + + if (data.hasOwnProperty('Action')) { + obj['Action'] = JobsAction.constructFromObject(data['Action']); + } + if (data.hasOwnProperty('InputMessage')) { + obj['InputMessage'] = JobsActionMessage.constructFromObject(data['InputMessage']); + } + if (data.hasOwnProperty('OutputMessage')) { + obj['OutputMessage'] = JobsActionMessage.constructFromObject(data['OutputMessage']); + } + } + return obj; + } + + /** + * @member {module:model/JobsAction} Action + */ + Action = undefined; + /** + * @member {module:model/JobsActionMessage} InputMessage + */ + InputMessage = undefined; + /** + * @member {module:model/JobsActionMessage} OutputMessage + */ + OutputMessage = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsActionMessage.js b/src/model/JobsActionMessage.js new file mode 100644 index 0000000..0041d7f --- /dev/null +++ b/src/model/JobsActionMessage.js @@ -0,0 +1,145 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import ActivityObject from './ActivityObject'; +import IdmACL from './IdmACL'; +import IdmRole from './IdmRole'; +import IdmUser from './IdmUser'; +import IdmWorkspace from './IdmWorkspace'; +import JobsActionOutput from './JobsActionOutput'; +import ObjectDataSource from './ObjectDataSource'; +import ProtobufAny from './ProtobufAny'; +import TreeNode from './TreeNode'; + + + + + +/** +* The JobsActionMessage model module. +* @module model/JobsActionMessage +* @version 2.0 +*/ +export default class JobsActionMessage { + /** + * Constructs a new JobsActionMessage. + * @alias module:model/JobsActionMessage + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsActionMessage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsActionMessage} obj Optional instance to populate. + * @return {module:model/JobsActionMessage} The populated JobsActionMessage instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsActionMessage(); + + + + + + if (data.hasOwnProperty('Event')) { + obj['Event'] = ProtobufAny.constructFromObject(data['Event']); + } + if (data.hasOwnProperty('Nodes')) { + obj['Nodes'] = ApiClient.convertToType(data['Nodes'], [TreeNode]); + } + if (data.hasOwnProperty('Users')) { + obj['Users'] = ApiClient.convertToType(data['Users'], [IdmUser]); + } + if (data.hasOwnProperty('Roles')) { + obj['Roles'] = ApiClient.convertToType(data['Roles'], [IdmRole]); + } + if (data.hasOwnProperty('Workspaces')) { + obj['Workspaces'] = ApiClient.convertToType(data['Workspaces'], [IdmWorkspace]); + } + if (data.hasOwnProperty('Acls')) { + obj['Acls'] = ApiClient.convertToType(data['Acls'], [IdmACL]); + } + if (data.hasOwnProperty('Activities')) { + obj['Activities'] = ApiClient.convertToType(data['Activities'], [ActivityObject]); + } + if (data.hasOwnProperty('DataSources')) { + obj['DataSources'] = ApiClient.convertToType(data['DataSources'], [ObjectDataSource]); + } + if (data.hasOwnProperty('OutputChain')) { + obj['OutputChain'] = ApiClient.convertToType(data['OutputChain'], [JobsActionOutput]); + } + } + return obj; + } + + /** + * @member {module:model/ProtobufAny} Event + */ + Event = undefined; + /** + * @member {Array.} Nodes + */ + Nodes = undefined; + /** + * @member {Array.} Users + */ + Users = undefined; + /** + * @member {Array.} Roles + */ + Roles = undefined; + /** + * @member {Array.} Workspaces + */ + Workspaces = undefined; + /** + * @member {Array.} Acls + */ + Acls = undefined; + /** + * @member {Array.} Activities + */ + Activities = undefined; + /** + * @member {Array.} DataSources + */ + DataSources = undefined; + /** + * @member {Array.} OutputChain + */ + OutputChain = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsActionOutput.js b/src/model/JobsActionOutput.js new file mode 100644 index 0000000..4d59d4a --- /dev/null +++ b/src/model/JobsActionOutput.js @@ -0,0 +1,122 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The JobsActionOutput model module. +* @module model/JobsActionOutput +* @version 2.0 +*/ +export default class JobsActionOutput { + /** + * Constructs a new JobsActionOutput. + * @alias module:model/JobsActionOutput + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsActionOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsActionOutput} obj Optional instance to populate. + * @return {module:model/JobsActionOutput} The populated JobsActionOutput instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsActionOutput(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + if (data.hasOwnProperty('RawBody')) { + obj['RawBody'] = ApiClient.convertToType(data['RawBody'], 'Blob'); + } + if (data.hasOwnProperty('StringBody')) { + obj['StringBody'] = ApiClient.convertToType(data['StringBody'], 'String'); + } + if (data.hasOwnProperty('JsonBody')) { + obj['JsonBody'] = ApiClient.convertToType(data['JsonBody'], 'Blob'); + } + if (data.hasOwnProperty('ErrorString')) { + obj['ErrorString'] = ApiClient.convertToType(data['ErrorString'], 'String'); + } + if (data.hasOwnProperty('Ignored')) { + obj['Ignored'] = ApiClient.convertToType(data['Ignored'], 'Boolean'); + } + if (data.hasOwnProperty('Time')) { + obj['Time'] = ApiClient.convertToType(data['Time'], 'Number'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + /** + * @member {Blob} RawBody + */ + RawBody = undefined; + /** + * @member {String} StringBody + */ + StringBody = undefined; + /** + * @member {Blob} JsonBody + */ + JsonBody = undefined; + /** + * @member {String} ErrorString + */ + ErrorString = undefined; + /** + * @member {Boolean} Ignored + */ + Ignored = undefined; + /** + * @member {Number} Time + */ + Time = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsActionOutputFilter.js b/src/model/JobsActionOutputFilter.js new file mode 100644 index 0000000..e8287b8 --- /dev/null +++ b/src/model/JobsActionOutputFilter.js @@ -0,0 +1,95 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import ServiceQuery from './ServiceQuery'; + + + + + +/** +* The JobsActionOutputFilter model module. +* @module model/JobsActionOutputFilter +* @version 2.0 +*/ +export default class JobsActionOutputFilter { + /** + * Constructs a new JobsActionOutputFilter. + * @alias module:model/JobsActionOutputFilter + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsActionOutputFilter from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsActionOutputFilter} obj Optional instance to populate. + * @return {module:model/JobsActionOutputFilter} The populated JobsActionOutputFilter instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsActionOutputFilter(); + + + + + + if (data.hasOwnProperty('Query')) { + obj['Query'] = ServiceQuery.constructFromObject(data['Query']); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + } + return obj; + } + + /** + * @member {module:model/ServiceQuery} Query + */ + Query = undefined; + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {String} Description + */ + Description = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsContextMetaFilter.js b/src/model/JobsContextMetaFilter.js new file mode 100644 index 0000000..89ceb4a --- /dev/null +++ b/src/model/JobsContextMetaFilter.js @@ -0,0 +1,103 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsContextMetaFilterType from './JobsContextMetaFilterType'; +import ServiceQuery from './ServiceQuery'; + + + + + +/** +* The JobsContextMetaFilter model module. +* @module model/JobsContextMetaFilter +* @version 2.0 +*/ +export default class JobsContextMetaFilter { + /** + * Constructs a new JobsContextMetaFilter. + * @alias module:model/JobsContextMetaFilter + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsContextMetaFilter from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsContextMetaFilter} obj Optional instance to populate. + * @return {module:model/JobsContextMetaFilter} The populated JobsContextMetaFilter instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsContextMetaFilter(); + + + + + + if (data.hasOwnProperty('Type')) { + obj['Type'] = JobsContextMetaFilterType.constructFromObject(data['Type']); + } + if (data.hasOwnProperty('Query')) { + obj['Query'] = ServiceQuery.constructFromObject(data['Query']); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + } + return obj; + } + + /** + * @member {module:model/JobsContextMetaFilterType} Type + */ + Type = undefined; + /** + * @member {module:model/ServiceQuery} Query + */ + Query = undefined; + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {String} Description + */ + Description = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsContextMetaFilterType.js b/src/model/JobsContextMetaFilterType.js new file mode 100644 index 0000000..94930e5 --- /dev/null +++ b/src/model/JobsContextMetaFilterType.js @@ -0,0 +1,50 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class JobsContextMetaFilterType. +* @enum {} +* @readonly +*/ +export default class JobsContextMetaFilterType { + + /** + * value: "RequestMeta" + * @const + */ + RequestMeta = "RequestMeta"; + + + /** + * value: "ContextUser" + * @const + */ + ContextUser = "ContextUser"; + + + + /** + * Returns a JobsContextMetaFilterType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/JobsContextMetaFilterType} The enum JobsContextMetaFilterType value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/JobsDataSourceSelector.js b/src/model/JobsDataSourceSelector.js new file mode 100644 index 0000000..369ef30 --- /dev/null +++ b/src/model/JobsDataSourceSelector.js @@ -0,0 +1,117 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsDataSourceSelectorType from './JobsDataSourceSelectorType'; +import ServiceQuery from './ServiceQuery'; + + + + + +/** +* The JobsDataSourceSelector model module. +* @module model/JobsDataSourceSelector +* @version 2.0 +*/ +export default class JobsDataSourceSelector { + /** + * Constructs a new JobsDataSourceSelector. + * @alias module:model/JobsDataSourceSelector + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsDataSourceSelector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsDataSourceSelector} obj Optional instance to populate. + * @return {module:model/JobsDataSourceSelector} The populated JobsDataSourceSelector instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsDataSourceSelector(); + + + + + + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = JobsDataSourceSelectorType.constructFromObject(data['Type']); + } + if (data.hasOwnProperty('All')) { + obj['All'] = ApiClient.convertToType(data['All'], 'Boolean'); + } + if (data.hasOwnProperty('Collect')) { + obj['Collect'] = ApiClient.convertToType(data['Collect'], 'Boolean'); + } + if (data.hasOwnProperty('Query')) { + obj['Query'] = ServiceQuery.constructFromObject(data['Query']); + } + } + return obj; + } + + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {String} Description + */ + Description = undefined; + /** + * @member {module:model/JobsDataSourceSelectorType} Type + */ + Type = undefined; + /** + * @member {Boolean} All + */ + All = undefined; + /** + * @member {Boolean} Collect + */ + Collect = undefined; + /** + * @member {module:model/ServiceQuery} Query + */ + Query = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsDataSourceSelectorType.js b/src/model/JobsDataSourceSelectorType.js new file mode 100644 index 0000000..c50fe23 --- /dev/null +++ b/src/model/JobsDataSourceSelectorType.js @@ -0,0 +1,50 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class JobsDataSourceSelectorType. +* @enum {} +* @readonly +*/ +export default class JobsDataSourceSelectorType { + + /** + * value: "DataSource" + * @const + */ + DataSource = "DataSource"; + + + /** + * value: "Object" + * @const + */ + Object = "Object"; + + + + /** + * Returns a JobsDataSourceSelectorType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/JobsDataSourceSelectorType} The enum JobsDataSourceSelectorType value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/JobsDeleteJobResponse.js b/src/model/JobsDeleteJobResponse.js new file mode 100644 index 0000000..aa4adc9 --- /dev/null +++ b/src/model/JobsDeleteJobResponse.js @@ -0,0 +1,87 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The JobsDeleteJobResponse model module. +* @module model/JobsDeleteJobResponse +* @version 2.0 +*/ +export default class JobsDeleteJobResponse { + /** + * Constructs a new JobsDeleteJobResponse. + * @alias module:model/JobsDeleteJobResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsDeleteJobResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsDeleteJobResponse} obj Optional instance to populate. + * @return {module:model/JobsDeleteJobResponse} The populated JobsDeleteJobResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsDeleteJobResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + if (data.hasOwnProperty('DeleteCount')) { + obj['DeleteCount'] = ApiClient.convertToType(data['DeleteCount'], 'Number'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + /** + * @member {Number} DeleteCount + */ + DeleteCount = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsIdmSelector.js b/src/model/JobsIdmSelector.js new file mode 100644 index 0000000..10f5476 --- /dev/null +++ b/src/model/JobsIdmSelector.js @@ -0,0 +1,117 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsIdmSelectorType from './JobsIdmSelectorType'; +import ServiceQuery from './ServiceQuery'; + + + + + +/** +* The JobsIdmSelector model module. +* @module model/JobsIdmSelector +* @version 2.0 +*/ +export default class JobsIdmSelector { + /** + * Constructs a new JobsIdmSelector. + * @alias module:model/JobsIdmSelector + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsIdmSelector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsIdmSelector} obj Optional instance to populate. + * @return {module:model/JobsIdmSelector} The populated JobsIdmSelector instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsIdmSelector(); + + + + + + if (data.hasOwnProperty('Type')) { + obj['Type'] = JobsIdmSelectorType.constructFromObject(data['Type']); + } + if (data.hasOwnProperty('All')) { + obj['All'] = ApiClient.convertToType(data['All'], 'Boolean'); + } + if (data.hasOwnProperty('Query')) { + obj['Query'] = ServiceQuery.constructFromObject(data['Query']); + } + if (data.hasOwnProperty('Collect')) { + obj['Collect'] = ApiClient.convertToType(data['Collect'], 'Boolean'); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + } + return obj; + } + + /** + * @member {module:model/JobsIdmSelectorType} Type + */ + Type = undefined; + /** + * @member {Boolean} All + */ + All = undefined; + /** + * @member {module:model/ServiceQuery} Query + */ + Query = undefined; + /** + * @member {Boolean} Collect + */ + Collect = undefined; + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {String} Description + */ + Description = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsIdmSelectorType.js b/src/model/JobsIdmSelectorType.js new file mode 100644 index 0000000..acbb224 --- /dev/null +++ b/src/model/JobsIdmSelectorType.js @@ -0,0 +1,64 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class JobsIdmSelectorType. +* @enum {} +* @readonly +*/ +export default class JobsIdmSelectorType { + + /** + * value: "User" + * @const + */ + User = "User"; + + + /** + * value: "Role" + * @const + */ + Role = "Role"; + + + /** + * value: "Workspace" + * @const + */ + Workspace = "Workspace"; + + + /** + * value: "Acl" + * @const + */ + Acl = "Acl"; + + + + /** + * Returns a JobsIdmSelectorType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/JobsIdmSelectorType} The enum JobsIdmSelectorType value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/JobsJob.js b/src/model/JobsJob.js new file mode 100644 index 0000000..67b5c33 --- /dev/null +++ b/src/model/JobsJob.js @@ -0,0 +1,230 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsAction from './JobsAction'; +import JobsContextMetaFilter from './JobsContextMetaFilter'; +import JobsDataSourceSelector from './JobsDataSourceSelector'; +import JobsIdmSelector from './JobsIdmSelector'; +import JobsJobParameter from './JobsJobParameter'; +import JobsNodesSelector from './JobsNodesSelector'; +import JobsSchedule from './JobsSchedule'; +import JobsTask from './JobsTask'; +import JobsUsersSelector from './JobsUsersSelector'; +import ProtobufAny from './ProtobufAny'; + + + + + +/** +* The JobsJob model module. +* @module model/JobsJob +* @version 2.0 +*/ +export default class JobsJob { + /** + * Constructs a new JobsJob. + * @alias module:model/JobsJob + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsJob from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsJob} obj Optional instance to populate. + * @return {module:model/JobsJob} The populated JobsJob instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsJob(); + + + + + + if (data.hasOwnProperty('ID')) { + obj['ID'] = ApiClient.convertToType(data['ID'], 'String'); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('Owner')) { + obj['Owner'] = ApiClient.convertToType(data['Owner'], 'String'); + } + if (data.hasOwnProperty('Inactive')) { + obj['Inactive'] = ApiClient.convertToType(data['Inactive'], 'Boolean'); + } + if (data.hasOwnProperty('Custom')) { + obj['Custom'] = ApiClient.convertToType(data['Custom'], 'Boolean'); + } + if (data.hasOwnProperty('Languages')) { + obj['Languages'] = ApiClient.convertToType(data['Languages'], ['String']); + } + if (data.hasOwnProperty('EventNames')) { + obj['EventNames'] = ApiClient.convertToType(data['EventNames'], ['String']); + } + if (data.hasOwnProperty('Schedule')) { + obj['Schedule'] = JobsSchedule.constructFromObject(data['Schedule']); + } + if (data.hasOwnProperty('AutoStart')) { + obj['AutoStart'] = ApiClient.convertToType(data['AutoStart'], 'Boolean'); + } + if (data.hasOwnProperty('AutoClean')) { + obj['AutoClean'] = ApiClient.convertToType(data['AutoClean'], 'Boolean'); + } + if (data.hasOwnProperty('Actions')) { + obj['Actions'] = ApiClient.convertToType(data['Actions'], [JobsAction]); + } + if (data.hasOwnProperty('MaxConcurrency')) { + obj['MaxConcurrency'] = ApiClient.convertToType(data['MaxConcurrency'], 'Number'); + } + if (data.hasOwnProperty('TasksSilentUpdate')) { + obj['TasksSilentUpdate'] = ApiClient.convertToType(data['TasksSilentUpdate'], 'Boolean'); + } + if (data.hasOwnProperty('Tasks')) { + obj['Tasks'] = ApiClient.convertToType(data['Tasks'], [JobsTask]); + } + if (data.hasOwnProperty('NodeEventFilter')) { + obj['NodeEventFilter'] = JobsNodesSelector.constructFromObject(data['NodeEventFilter']); + } + if (data.hasOwnProperty('UserEventFilter')) { + obj['UserEventFilter'] = JobsUsersSelector.constructFromObject(data['UserEventFilter']); + } + if (data.hasOwnProperty('IdmFilter')) { + obj['IdmFilter'] = JobsIdmSelector.constructFromObject(data['IdmFilter']); + } + if (data.hasOwnProperty('ContextMetaFilter')) { + obj['ContextMetaFilter'] = JobsContextMetaFilter.constructFromObject(data['ContextMetaFilter']); + } + if (data.hasOwnProperty('DataSourceFilter')) { + obj['DataSourceFilter'] = JobsDataSourceSelector.constructFromObject(data['DataSourceFilter']); + } + if (data.hasOwnProperty('Parameters')) { + obj['Parameters'] = ApiClient.convertToType(data['Parameters'], [JobsJobParameter]); + } + if (data.hasOwnProperty('ResourcesDependencies')) { + obj['ResourcesDependencies'] = ApiClient.convertToType(data['ResourcesDependencies'], [ProtobufAny]); + } + } + return obj; + } + + /** + * @member {String} ID + */ + ID = undefined; + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {String} Owner + */ + Owner = undefined; + /** + * @member {Boolean} Inactive + */ + Inactive = undefined; + /** + * @member {Boolean} Custom + */ + Custom = undefined; + /** + * @member {Array.} Languages + */ + Languages = undefined; + /** + * @member {Array.} EventNames + */ + EventNames = undefined; + /** + * @member {module:model/JobsSchedule} Schedule + */ + Schedule = undefined; + /** + * @member {Boolean} AutoStart + */ + AutoStart = undefined; + /** + * @member {Boolean} AutoClean + */ + AutoClean = undefined; + /** + * @member {Array.} Actions + */ + Actions = undefined; + /** + * @member {Number} MaxConcurrency + */ + MaxConcurrency = undefined; + /** + * @member {Boolean} TasksSilentUpdate + */ + TasksSilentUpdate = undefined; + /** + * @member {Array.} Tasks + */ + Tasks = undefined; + /** + * @member {module:model/JobsNodesSelector} NodeEventFilter + */ + NodeEventFilter = undefined; + /** + * @member {module:model/JobsUsersSelector} UserEventFilter + */ + UserEventFilter = undefined; + /** + * @member {module:model/JobsIdmSelector} IdmFilter + */ + IdmFilter = undefined; + /** + * @member {module:model/JobsContextMetaFilter} ContextMetaFilter + */ + ContextMetaFilter = undefined; + /** + * @member {module:model/JobsDataSourceSelector} DataSourceFilter + */ + DataSourceFilter = undefined; + /** + * @member {Array.} Parameters + */ + Parameters = undefined; + /** + * @member {Array.} ResourcesDependencies + */ + ResourcesDependencies = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsJobParameter.js b/src/model/JobsJobParameter.js new file mode 100644 index 0000000..da2bbcc --- /dev/null +++ b/src/model/JobsJobParameter.js @@ -0,0 +1,115 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The JobsJobParameter model module. +* @module model/JobsJobParameter +* @version 2.0 +*/ +export default class JobsJobParameter { + /** + * Constructs a new JobsJobParameter. + * @alias module:model/JobsJobParameter + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsJobParameter from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsJobParameter} obj Optional instance to populate. + * @return {module:model/JobsJobParameter} The populated JobsJobParameter instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsJobParameter(); + + + + + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Value')) { + obj['Value'] = ApiClient.convertToType(data['Value'], 'String'); + } + if (data.hasOwnProperty('Mandatory')) { + obj['Mandatory'] = ApiClient.convertToType(data['Mandatory'], 'Boolean'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); + } + if (data.hasOwnProperty('JsonChoices')) { + obj['JsonChoices'] = ApiClient.convertToType(data['JsonChoices'], 'String'); + } + } + return obj; + } + + /** + * @member {String} Name + */ + Name = undefined; + /** + * @member {String} Description + */ + Description = undefined; + /** + * @member {String} Value + */ + Value = undefined; + /** + * @member {Boolean} Mandatory + */ + Mandatory = undefined; + /** + * @member {String} Type + */ + Type = undefined; + /** + * @member {String} JsonChoices + */ + JsonChoices = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsNodesSelector.js b/src/model/JobsNodesSelector.js new file mode 100644 index 0000000..4e200fd --- /dev/null +++ b/src/model/JobsNodesSelector.js @@ -0,0 +1,116 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import ServiceQuery from './ServiceQuery'; + + + + + +/** +* The JobsNodesSelector model module. +* @module model/JobsNodesSelector +* @version 2.0 +*/ +export default class JobsNodesSelector { + /** + * Constructs a new JobsNodesSelector. + * @alias module:model/JobsNodesSelector + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsNodesSelector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsNodesSelector} obj Optional instance to populate. + * @return {module:model/JobsNodesSelector} The populated JobsNodesSelector instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsNodesSelector(); + + + + + + if (data.hasOwnProperty('All')) { + obj['All'] = ApiClient.convertToType(data['All'], 'Boolean'); + } + if (data.hasOwnProperty('Pathes')) { + obj['Pathes'] = ApiClient.convertToType(data['Pathes'], ['String']); + } + if (data.hasOwnProperty('Query')) { + obj['Query'] = ServiceQuery.constructFromObject(data['Query']); + } + if (data.hasOwnProperty('Collect')) { + obj['Collect'] = ApiClient.convertToType(data['Collect'], 'Boolean'); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + } + return obj; + } + + /** + * @member {Boolean} All + */ + All = undefined; + /** + * @member {Array.} Pathes + */ + Pathes = undefined; + /** + * @member {module:model/ServiceQuery} Query + */ + Query = undefined; + /** + * @member {Boolean} Collect + */ + Collect = undefined; + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {String} Description + */ + Description = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsPutJobRequest.js b/src/model/JobsPutJobRequest.js new file mode 100644 index 0000000..3089e1c --- /dev/null +++ b/src/model/JobsPutJobRequest.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsJob from './JobsJob'; + + + + + +/** +* The JobsPutJobRequest model module. +* @module model/JobsPutJobRequest +* @version 2.0 +*/ +export default class JobsPutJobRequest { + /** + * Constructs a new JobsPutJobRequest. + * @alias module:model/JobsPutJobRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsPutJobRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsPutJobRequest} obj Optional instance to populate. + * @return {module:model/JobsPutJobRequest} The populated JobsPutJobRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsPutJobRequest(); + + + + + + if (data.hasOwnProperty('Job')) { + obj['Job'] = JobsJob.constructFromObject(data['Job']); + } + } + return obj; + } + + /** + * @member {module:model/JobsJob} Job + */ + Job = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsPutJobResponse.js b/src/model/JobsPutJobResponse.js new file mode 100644 index 0000000..9799199 --- /dev/null +++ b/src/model/JobsPutJobResponse.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsJob from './JobsJob'; + + + + + +/** +* The JobsPutJobResponse model module. +* @module model/JobsPutJobResponse +* @version 2.0 +*/ +export default class JobsPutJobResponse { + /** + * Constructs a new JobsPutJobResponse. + * @alias module:model/JobsPutJobResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsPutJobResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsPutJobResponse} obj Optional instance to populate. + * @return {module:model/JobsPutJobResponse} The populated JobsPutJobResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsPutJobResponse(); + + + + + + if (data.hasOwnProperty('Job')) { + obj['Job'] = JobsJob.constructFromObject(data['Job']); + } + } + return obj; + } + + /** + * @member {module:model/JobsJob} Job + */ + Job = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsSchedule.js b/src/model/JobsSchedule.js new file mode 100644 index 0000000..94d4fd0 --- /dev/null +++ b/src/model/JobsSchedule.js @@ -0,0 +1,88 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The JobsSchedule model module. +* @module model/JobsSchedule +* @version 2.0 +*/ +export default class JobsSchedule { + /** + * Constructs a new JobsSchedule. + * @alias module:model/JobsSchedule + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsSchedule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsSchedule} obj Optional instance to populate. + * @return {module:model/JobsSchedule} The populated JobsSchedule instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsSchedule(); + + + + + + if (data.hasOwnProperty('Iso8601Schedule')) { + obj['Iso8601Schedule'] = ApiClient.convertToType(data['Iso8601Schedule'], 'String'); + } + if (data.hasOwnProperty('Iso8601MinDelta')) { + obj['Iso8601MinDelta'] = ApiClient.convertToType(data['Iso8601MinDelta'], 'String'); + } + } + return obj; + } + + /** + * ISO 8601 Description of the scheduling for instance \"R2/2015-06-04T19:25:16.828696-07:00/PT4S\" where first part is the number of repetitions (if 0, infinite repetition), second part the starting date and last part, the duration between 2 occurrences. + * @member {String} Iso8601Schedule + */ + Iso8601Schedule = undefined; + /** + * @member {String} Iso8601MinDelta + */ + Iso8601MinDelta = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsTask.js b/src/model/JobsTask.js new file mode 100644 index 0000000..034ef3f --- /dev/null +++ b/src/model/JobsTask.js @@ -0,0 +1,159 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import JobsActionLog from './JobsActionLog'; +import JobsTaskStatus from './JobsTaskStatus'; + + + + + +/** +* The JobsTask model module. +* @module model/JobsTask +* @version 2.0 +*/ +export default class JobsTask { + /** + * Constructs a new JobsTask. + * @alias module:model/JobsTask + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsTask from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsTask} obj Optional instance to populate. + * @return {module:model/JobsTask} The populated JobsTask instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsTask(); + + + + + + if (data.hasOwnProperty('ID')) { + obj['ID'] = ApiClient.convertToType(data['ID'], 'String'); + } + if (data.hasOwnProperty('JobID')) { + obj['JobID'] = ApiClient.convertToType(data['JobID'], 'String'); + } + if (data.hasOwnProperty('Status')) { + obj['Status'] = JobsTaskStatus.constructFromObject(data['Status']); + } + if (data.hasOwnProperty('StatusMessage')) { + obj['StatusMessage'] = ApiClient.convertToType(data['StatusMessage'], 'String'); + } + if (data.hasOwnProperty('TriggerOwner')) { + obj['TriggerOwner'] = ApiClient.convertToType(data['TriggerOwner'], 'String'); + } + if (data.hasOwnProperty('StartTime')) { + obj['StartTime'] = ApiClient.convertToType(data['StartTime'], 'Number'); + } + if (data.hasOwnProperty('EndTime')) { + obj['EndTime'] = ApiClient.convertToType(data['EndTime'], 'Number'); + } + if (data.hasOwnProperty('CanStop')) { + obj['CanStop'] = ApiClient.convertToType(data['CanStop'], 'Boolean'); + } + if (data.hasOwnProperty('CanPause')) { + obj['CanPause'] = ApiClient.convertToType(data['CanPause'], 'Boolean'); + } + if (data.hasOwnProperty('HasProgress')) { + obj['HasProgress'] = ApiClient.convertToType(data['HasProgress'], 'Boolean'); + } + if (data.hasOwnProperty('Progress')) { + obj['Progress'] = ApiClient.convertToType(data['Progress'], 'Number'); + } + if (data.hasOwnProperty('ActionsLogs')) { + obj['ActionsLogs'] = ApiClient.convertToType(data['ActionsLogs'], [JobsActionLog]); + } + } + return obj; + } + + /** + * @member {String} ID + */ + ID = undefined; + /** + * @member {String} JobID + */ + JobID = undefined; + /** + * @member {module:model/JobsTaskStatus} Status + */ + Status = undefined; + /** + * @member {String} StatusMessage + */ + StatusMessage = undefined; + /** + * @member {String} TriggerOwner + */ + TriggerOwner = undefined; + /** + * @member {Number} StartTime + */ + StartTime = undefined; + /** + * @member {Number} EndTime + */ + EndTime = undefined; + /** + * @member {Boolean} CanStop + */ + CanStop = undefined; + /** + * @member {Boolean} CanPause + */ + CanPause = undefined; + /** + * @member {Boolean} HasProgress + */ + HasProgress = undefined; + /** + * @member {Number} Progress + */ + Progress = undefined; + /** + * @member {Array.} ActionsLogs + */ + ActionsLogs = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsTaskStatus.js b/src/model/JobsTaskStatus.js new file mode 100644 index 0000000..92c3e9f --- /dev/null +++ b/src/model/JobsTaskStatus.js @@ -0,0 +1,99 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class JobsTaskStatus. +* @enum {} +* @readonly +*/ +export default class JobsTaskStatus { + + /** + * value: "Unknown" + * @const + */ + Unknown = "Unknown"; + + + /** + * value: "Idle" + * @const + */ + Idle = "Idle"; + + + /** + * value: "Running" + * @const + */ + Running = "Running"; + + + /** + * value: "Finished" + * @const + */ + Finished = "Finished"; + + + /** + * value: "Interrupted" + * @const + */ + Interrupted = "Interrupted"; + + + /** + * value: "Paused" + * @const + */ + Paused = "Paused"; + + + /** + * value: "Any" + * @const + */ + Any = "Any"; + + + /** + * value: "Error" + * @const + */ + Error = "Error"; + + + /** + * value: "Queued" + * @const + */ + Queued = "Queued"; + + + + /** + * Returns a JobsTaskStatus enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/JobsTaskStatus} The enum JobsTaskStatus value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/JobsTriggerFilter.js b/src/model/JobsTriggerFilter.js new file mode 100644 index 0000000..071ad0a --- /dev/null +++ b/src/model/JobsTriggerFilter.js @@ -0,0 +1,95 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import ServiceQuery from './ServiceQuery'; + + + + + +/** +* The JobsTriggerFilter model module. +* @module model/JobsTriggerFilter +* @version 2.0 +*/ +export default class JobsTriggerFilter { + /** + * Constructs a new JobsTriggerFilter. + * @alias module:model/JobsTriggerFilter + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsTriggerFilter from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsTriggerFilter} obj Optional instance to populate. + * @return {module:model/JobsTriggerFilter} The populated JobsTriggerFilter instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsTriggerFilter(); + + + + + + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('Query')) { + obj['Query'] = ServiceQuery.constructFromObject(data['Query']); + } + } + return obj; + } + + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {String} Description + */ + Description = undefined; + /** + * @member {module:model/ServiceQuery} Query + */ + Query = undefined; + + + + + + + + +} + + diff --git a/src/model/JobsUsersSelector.js b/src/model/JobsUsersSelector.js new file mode 100644 index 0000000..0b030ec --- /dev/null +++ b/src/model/JobsUsersSelector.js @@ -0,0 +1,117 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import IdmUser from './IdmUser'; +import ServiceQuery from './ServiceQuery'; + + + + + +/** +* The JobsUsersSelector model module. +* @module model/JobsUsersSelector +* @version 2.0 +*/ +export default class JobsUsersSelector { + /** + * Constructs a new JobsUsersSelector. + * @alias module:model/JobsUsersSelector + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a JobsUsersSelector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JobsUsersSelector} obj Optional instance to populate. + * @return {module:model/JobsUsersSelector} The populated JobsUsersSelector instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JobsUsersSelector(); + + + + + + if (data.hasOwnProperty('All')) { + obj['All'] = ApiClient.convertToType(data['All'], 'Boolean'); + } + if (data.hasOwnProperty('Users')) { + obj['Users'] = ApiClient.convertToType(data['Users'], [IdmUser]); + } + if (data.hasOwnProperty('Query')) { + obj['Query'] = ServiceQuery.constructFromObject(data['Query']); + } + if (data.hasOwnProperty('Collect')) { + obj['Collect'] = ApiClient.convertToType(data['Collect'], 'Boolean'); + } + if (data.hasOwnProperty('Label')) { + obj['Label'] = ApiClient.convertToType(data['Label'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + } + return obj; + } + + /** + * @member {Boolean} All + */ + All = undefined; + /** + * @member {Array.} Users + */ + Users = undefined; + /** + * @member {module:model/ServiceQuery} Query + */ + Query = undefined; + /** + * @member {Boolean} Collect + */ + Collect = undefined; + /** + * @member {String} Label + */ + Label = undefined; + /** + * @member {String} Description + */ + Description = undefined; + + + + + + + + +} + + diff --git a/src/model/ListLogRequestLogFormat.js b/src/model/ListLogRequestLogFormat.js new file mode 100644 index 0000000..dfe3441 --- /dev/null +++ b/src/model/ListLogRequestLogFormat.js @@ -0,0 +1,57 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class ListLogRequestLogFormat. +* @enum {} +* @readonly +*/ +export default class ListLogRequestLogFormat { + + /** + * value: "JSON" + * @const + */ + JSON = "JSON"; + + + /** + * value: "CSV" + * @const + */ + CSV = "CSV"; + + + /** + * value: "XLSX" + * @const + */ + XLSX = "XLSX"; + + + + /** + * Returns a ListLogRequestLogFormat enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ListLogRequestLogFormat} The enum ListLogRequestLogFormat value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/LogListLogRequest.js b/src/model/LogListLogRequest.js new file mode 100644 index 0000000..f801f2e --- /dev/null +++ b/src/model/LogListLogRequest.js @@ -0,0 +1,103 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import ListLogRequestLogFormat from './ListLogRequestLogFormat'; + + + + + +/** +* The LogListLogRequest model module. +* @module model/LogListLogRequest +* @version 2.0 +*/ +export default class LogListLogRequest { + /** + * Constructs a new LogListLogRequest. + * ListLogRequest launches a parameterised query in the log repository and streams the results. + * @alias module:model/LogListLogRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a LogListLogRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LogListLogRequest} obj Optional instance to populate. + * @return {module:model/LogListLogRequest} The populated LogListLogRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LogListLogRequest(); + + + + + + if (data.hasOwnProperty('Query')) { + obj['Query'] = ApiClient.convertToType(data['Query'], 'String'); + } + if (data.hasOwnProperty('Page')) { + obj['Page'] = ApiClient.convertToType(data['Page'], 'Number'); + } + if (data.hasOwnProperty('Size')) { + obj['Size'] = ApiClient.convertToType(data['Size'], 'Number'); + } + if (data.hasOwnProperty('Format')) { + obj['Format'] = ListLogRequestLogFormat.constructFromObject(data['Format']); + } + } + return obj; + } + + /** + * @member {String} Query + */ + Query = undefined; + /** + * @member {Number} Page + */ + Page = undefined; + /** + * @member {Number} Size + */ + Size = undefined; + /** + * @member {module:model/ListLogRequestLogFormat} Format + */ + Format = undefined; + + + + + + + + +} + + diff --git a/src/model/LogLogMessage.js b/src/model/LogLogMessage.js new file mode 100644 index 0000000..5ee8a4c --- /dev/null +++ b/src/model/LogLogMessage.js @@ -0,0 +1,256 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The LogLogMessage model module. +* @module model/LogLogMessage +* @version 2.0 +*/ +export default class LogLogMessage { + /** + * Constructs a new LogLogMessage. + * LogMessage is the format used to transmit log messages to clients via the REST API. + * @alias module:model/LogLogMessage + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a LogLogMessage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LogLogMessage} obj Optional instance to populate. + * @return {module:model/LogLogMessage} The populated LogLogMessage instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LogLogMessage(); + + + + + + if (data.hasOwnProperty('Ts')) { + obj['Ts'] = ApiClient.convertToType(data['Ts'], 'Number'); + } + if (data.hasOwnProperty('Level')) { + obj['Level'] = ApiClient.convertToType(data['Level'], 'String'); + } + if (data.hasOwnProperty('Logger')) { + obj['Logger'] = ApiClient.convertToType(data['Logger'], 'String'); + } + if (data.hasOwnProperty('Msg')) { + obj['Msg'] = ApiClient.convertToType(data['Msg'], 'String'); + } + if (data.hasOwnProperty('MsgId')) { + obj['MsgId'] = ApiClient.convertToType(data['MsgId'], 'String'); + } + if (data.hasOwnProperty('UserName')) { + obj['UserName'] = ApiClient.convertToType(data['UserName'], 'String'); + } + if (data.hasOwnProperty('UserUuid')) { + obj['UserUuid'] = ApiClient.convertToType(data['UserUuid'], 'String'); + } + if (data.hasOwnProperty('GroupPath')) { + obj['GroupPath'] = ApiClient.convertToType(data['GroupPath'], 'String'); + } + if (data.hasOwnProperty('Profile')) { + obj['Profile'] = ApiClient.convertToType(data['Profile'], 'String'); + } + if (data.hasOwnProperty('RoleUuids')) { + obj['RoleUuids'] = ApiClient.convertToType(data['RoleUuids'], ['String']); + } + if (data.hasOwnProperty('RemoteAddress')) { + obj['RemoteAddress'] = ApiClient.convertToType(data['RemoteAddress'], 'String'); + } + if (data.hasOwnProperty('UserAgent')) { + obj['UserAgent'] = ApiClient.convertToType(data['UserAgent'], 'String'); + } + if (data.hasOwnProperty('HttpProtocol')) { + obj['HttpProtocol'] = ApiClient.convertToType(data['HttpProtocol'], 'String'); + } + if (data.hasOwnProperty('NodeUuid')) { + obj['NodeUuid'] = ApiClient.convertToType(data['NodeUuid'], 'String'); + } + if (data.hasOwnProperty('NodePath')) { + obj['NodePath'] = ApiClient.convertToType(data['NodePath'], 'String'); + } + if (data.hasOwnProperty('WsUuid')) { + obj['WsUuid'] = ApiClient.convertToType(data['WsUuid'], 'String'); + } + if (data.hasOwnProperty('WsScope')) { + obj['WsScope'] = ApiClient.convertToType(data['WsScope'], 'String'); + } + if (data.hasOwnProperty('SpanUuid')) { + obj['SpanUuid'] = ApiClient.convertToType(data['SpanUuid'], 'String'); + } + if (data.hasOwnProperty('SpanParentUuid')) { + obj['SpanParentUuid'] = ApiClient.convertToType(data['SpanParentUuid'], 'String'); + } + if (data.hasOwnProperty('SpanRootUuid')) { + obj['SpanRootUuid'] = ApiClient.convertToType(data['SpanRootUuid'], 'String'); + } + if (data.hasOwnProperty('OperationUuid')) { + obj['OperationUuid'] = ApiClient.convertToType(data['OperationUuid'], 'String'); + } + if (data.hasOwnProperty('OperationLabel')) { + obj['OperationLabel'] = ApiClient.convertToType(data['OperationLabel'], 'String'); + } + if (data.hasOwnProperty('SchedulerJobUuid')) { + obj['SchedulerJobUuid'] = ApiClient.convertToType(data['SchedulerJobUuid'], 'String'); + } + if (data.hasOwnProperty('SchedulerTaskUuid')) { + obj['SchedulerTaskUuid'] = ApiClient.convertToType(data['SchedulerTaskUuid'], 'String'); + } + if (data.hasOwnProperty('SchedulerTaskActionPath')) { + obj['SchedulerTaskActionPath'] = ApiClient.convertToType(data['SchedulerTaskActionPath'], 'String'); + } + if (data.hasOwnProperty('JsonZaps')) { + obj['JsonZaps'] = ApiClient.convertToType(data['JsonZaps'], 'String'); + } + } + return obj; + } + + /** + * @member {Number} Ts + */ + Ts = undefined; + /** + * @member {String} Level + */ + Level = undefined; + /** + * @member {String} Logger + */ + Logger = undefined; + /** + * @member {String} Msg + */ + Msg = undefined; + /** + * @member {String} MsgId + */ + MsgId = undefined; + /** + * @member {String} UserName + */ + UserName = undefined; + /** + * @member {String} UserUuid + */ + UserUuid = undefined; + /** + * @member {String} GroupPath + */ + GroupPath = undefined; + /** + * @member {String} Profile + */ + Profile = undefined; + /** + * @member {Array.} RoleUuids + */ + RoleUuids = undefined; + /** + * @member {String} RemoteAddress + */ + RemoteAddress = undefined; + /** + * @member {String} UserAgent + */ + UserAgent = undefined; + /** + * @member {String} HttpProtocol + */ + HttpProtocol = undefined; + /** + * @member {String} NodeUuid + */ + NodeUuid = undefined; + /** + * @member {String} NodePath + */ + NodePath = undefined; + /** + * @member {String} WsUuid + */ + WsUuid = undefined; + /** + * @member {String} WsScope + */ + WsScope = undefined; + /** + * @member {String} SpanUuid + */ + SpanUuid = undefined; + /** + * @member {String} SpanParentUuid + */ + SpanParentUuid = undefined; + /** + * @member {String} SpanRootUuid + */ + SpanRootUuid = undefined; + /** + * @member {String} OperationUuid + */ + OperationUuid = undefined; + /** + * @member {String} OperationLabel + */ + OperationLabel = undefined; + /** + * @member {String} SchedulerJobUuid + */ + SchedulerJobUuid = undefined; + /** + * @member {String} SchedulerTaskUuid + */ + SchedulerTaskUuid = undefined; + /** + * @member {String} SchedulerTaskActionPath + */ + SchedulerTaskActionPath = undefined; + /** + * @member {String} JsonZaps + */ + JsonZaps = undefined; + + + + + + + + +} + + diff --git a/src/model/LogRelType.js b/src/model/LogRelType.js new file mode 100644 index 0000000..56feb49 --- /dev/null +++ b/src/model/LogRelType.js @@ -0,0 +1,71 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class LogRelType. +* @enum {} +* @readonly +*/ +export default class LogRelType { + + /** + * value: "NONE" + * @const + */ + NONE = "NONE"; + + + /** + * value: "FIRST" + * @const + */ + FIRST = "FIRST"; + + + /** + * value: "PREV" + * @const + */ + PREV = "PREV"; + + + /** + * value: "NEXT" + * @const + */ + NEXT = "NEXT"; + + + /** + * value: "LAST" + * @const + */ + LAST = "LAST"; + + + + /** + * Returns a LogRelType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/LogRelType} The enum LogRelType value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/LogTimeRangeCursor.js b/src/model/LogTimeRangeCursor.js new file mode 100644 index 0000000..44c5281 --- /dev/null +++ b/src/model/LogTimeRangeCursor.js @@ -0,0 +1,96 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import LogRelType from './LogRelType'; + + + + + +/** +* The LogTimeRangeCursor model module. +* @module model/LogTimeRangeCursor +* @version 2.0 +*/ +export default class LogTimeRangeCursor { + /** + * Constructs a new LogTimeRangeCursor. + * Ease implementation of data navigation for a chart. + * @alias module:model/LogTimeRangeCursor + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a LogTimeRangeCursor from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LogTimeRangeCursor} obj Optional instance to populate. + * @return {module:model/LogTimeRangeCursor} The populated LogTimeRangeCursor instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LogTimeRangeCursor(); + + + + + + if (data.hasOwnProperty('Rel')) { + obj['Rel'] = LogRelType.constructFromObject(data['Rel']); + } + if (data.hasOwnProperty('RefTime')) { + obj['RefTime'] = ApiClient.convertToType(data['RefTime'], 'Number'); + } + if (data.hasOwnProperty('Count')) { + obj['Count'] = ApiClient.convertToType(data['Count'], 'Number'); + } + } + return obj; + } + + /** + * @member {module:model/LogRelType} Rel + */ + Rel = undefined; + /** + * @member {Number} RefTime + */ + RefTime = undefined; + /** + * @member {Number} Count + */ + Count = undefined; + + + + + + + + +} + + diff --git a/src/model/LogTimeRangeRequest.js b/src/model/LogTimeRangeRequest.js new file mode 100644 index 0000000..d35b6be --- /dev/null +++ b/src/model/LogTimeRangeRequest.js @@ -0,0 +1,95 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The LogTimeRangeRequest model module. +* @module model/LogTimeRangeRequest +* @version 2.0 +*/ +export default class LogTimeRangeRequest { + /** + * Constructs a new LogTimeRangeRequest. + * TimeRangeRequest contains the parameter to configure the query to retrieve the number of audit events of this type for a given time range defined by last timestamp and a range type. + * @alias module:model/LogTimeRangeRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a LogTimeRangeRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LogTimeRangeRequest} obj Optional instance to populate. + * @return {module:model/LogTimeRangeRequest} The populated LogTimeRangeRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LogTimeRangeRequest(); + + + + + + if (data.hasOwnProperty('MsgId')) { + obj['MsgId'] = ApiClient.convertToType(data['MsgId'], 'String'); + } + if (data.hasOwnProperty('TimeRangeType')) { + obj['TimeRangeType'] = ApiClient.convertToType(data['TimeRangeType'], 'String'); + } + if (data.hasOwnProperty('RefTime')) { + obj['RefTime'] = ApiClient.convertToType(data['RefTime'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} MsgId + */ + MsgId = undefined; + /** + * @member {String} TimeRangeType + */ + TimeRangeType = undefined; + /** + * @member {Number} RefTime + */ + RefTime = undefined; + + + + + + + + +} + + diff --git a/src/model/LogTimeRangeResult.js b/src/model/LogTimeRangeResult.js new file mode 100644 index 0000000..5521b39 --- /dev/null +++ b/src/model/LogTimeRangeResult.js @@ -0,0 +1,109 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The LogTimeRangeResult model module. +* @module model/LogTimeRangeResult +* @version 2.0 +*/ +export default class LogTimeRangeResult { + /** + * Constructs a new LogTimeRangeResult. + * TimeRangeResult represents one point of a graph. + * @alias module:model/LogTimeRangeResult + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a LogTimeRangeResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LogTimeRangeResult} obj Optional instance to populate. + * @return {module:model/LogTimeRangeResult} The populated LogTimeRangeResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LogTimeRangeResult(); + + + + + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Start')) { + obj['Start'] = ApiClient.convertToType(data['Start'], 'Number'); + } + if (data.hasOwnProperty('End')) { + obj['End'] = ApiClient.convertToType(data['End'], 'Number'); + } + if (data.hasOwnProperty('Count')) { + obj['Count'] = ApiClient.convertToType(data['Count'], 'Number'); + } + if (data.hasOwnProperty('Relevance')) { + obj['Relevance'] = ApiClient.convertToType(data['Relevance'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} Name + */ + Name = undefined; + /** + * @member {Number} Start + */ + Start = undefined; + /** + * @member {Number} End + */ + End = undefined; + /** + * @member {Number} Count + */ + Count = undefined; + /** + * @member {Number} Relevance + */ + Relevance = undefined; + + + + + + + + +} + + diff --git a/src/model/NodeChangeEventEventType.js b/src/model/NodeChangeEventEventType.js new file mode 100644 index 0000000..6c3b658 --- /dev/null +++ b/src/model/NodeChangeEventEventType.js @@ -0,0 +1,85 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class NodeChangeEventEventType. +* @enum {} +* @readonly +*/ +export default class NodeChangeEventEventType { + + /** + * value: "CREATE" + * @const + */ + CREATE = "CREATE"; + + + /** + * value: "READ" + * @const + */ + READ = "READ"; + + + /** + * value: "UPDATE_PATH" + * @const + */ + UPDATE_PATH = "UPDATE_PATH"; + + + /** + * value: "UPDATE_CONTENT" + * @const + */ + UPDATE_CONTENT = "UPDATE_CONTENT"; + + + /** + * value: "UPDATE_META" + * @const + */ + UPDATE_META = "UPDATE_META"; + + + /** + * value: "UPDATE_USER_META" + * @const + */ + UPDATE_USER_META = "UPDATE_USER_META"; + + + /** + * value: "DELETE" + * @const + */ + DELETE = "DELETE"; + + + + /** + * Returns a NodeChangeEventEventType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/NodeChangeEventEventType} The enum NodeChangeEventEventType value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/ObjectDataSource.js b/src/model/ObjectDataSource.js new file mode 100644 index 0000000..ee1cbc5 --- /dev/null +++ b/src/model/ObjectDataSource.js @@ -0,0 +1,222 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import ObjectEncryptionMode from './ObjectEncryptionMode'; +import ObjectStorageType from './ObjectStorageType'; + + + + + +/** +* The ObjectDataSource model module. +* @module model/ObjectDataSource +* @version 2.0 +*/ +export default class ObjectDataSource { + /** + * Constructs a new ObjectDataSource. + * @alias module:model/ObjectDataSource + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ObjectDataSource from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ObjectDataSource} obj Optional instance to populate. + * @return {module:model/ObjectDataSource} The populated ObjectDataSource instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectDataSource(); + + + + + + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Disabled')) { + obj['Disabled'] = ApiClient.convertToType(data['Disabled'], 'Boolean'); + } + if (data.hasOwnProperty('StorageType')) { + obj['StorageType'] = ObjectStorageType.constructFromObject(data['StorageType']); + } + if (data.hasOwnProperty('StorageConfiguration')) { + obj['StorageConfiguration'] = ApiClient.convertToType(data['StorageConfiguration'], {'String': 'String'}); + } + if (data.hasOwnProperty('ObjectsServiceName')) { + obj['ObjectsServiceName'] = ApiClient.convertToType(data['ObjectsServiceName'], 'String'); + } + if (data.hasOwnProperty('ObjectsHost')) { + obj['ObjectsHost'] = ApiClient.convertToType(data['ObjectsHost'], 'String'); + } + if (data.hasOwnProperty('ObjectsPort')) { + obj['ObjectsPort'] = ApiClient.convertToType(data['ObjectsPort'], 'Number'); + } + if (data.hasOwnProperty('ObjectsSecure')) { + obj['ObjectsSecure'] = ApiClient.convertToType(data['ObjectsSecure'], 'Boolean'); + } + if (data.hasOwnProperty('ObjectsBucket')) { + obj['ObjectsBucket'] = ApiClient.convertToType(data['ObjectsBucket'], 'String'); + } + if (data.hasOwnProperty('ObjectsBaseFolder')) { + obj['ObjectsBaseFolder'] = ApiClient.convertToType(data['ObjectsBaseFolder'], 'String'); + } + if (data.hasOwnProperty('ApiKey')) { + obj['ApiKey'] = ApiClient.convertToType(data['ApiKey'], 'String'); + } + if (data.hasOwnProperty('ApiSecret')) { + obj['ApiSecret'] = ApiClient.convertToType(data['ApiSecret'], 'String'); + } + if (data.hasOwnProperty('PeerAddress')) { + obj['PeerAddress'] = ApiClient.convertToType(data['PeerAddress'], 'String'); + } + if (data.hasOwnProperty('Watch')) { + obj['Watch'] = ApiClient.convertToType(data['Watch'], 'Boolean'); + } + if (data.hasOwnProperty('FlatStorage')) { + obj['FlatStorage'] = ApiClient.convertToType(data['FlatStorage'], 'Boolean'); + } + if (data.hasOwnProperty('SkipSyncOnRestart')) { + obj['SkipSyncOnRestart'] = ApiClient.convertToType(data['SkipSyncOnRestart'], 'Boolean'); + } + if (data.hasOwnProperty('EncryptionMode')) { + obj['EncryptionMode'] = ObjectEncryptionMode.constructFromObject(data['EncryptionMode']); + } + if (data.hasOwnProperty('EncryptionKey')) { + obj['EncryptionKey'] = ApiClient.convertToType(data['EncryptionKey'], 'String'); + } + if (data.hasOwnProperty('VersioningPolicyName')) { + obj['VersioningPolicyName'] = ApiClient.convertToType(data['VersioningPolicyName'], 'String'); + } + if (data.hasOwnProperty('CreationDate')) { + obj['CreationDate'] = ApiClient.convertToType(data['CreationDate'], 'Number'); + } + if (data.hasOwnProperty('LastSynchronizationDate')) { + obj['LastSynchronizationDate'] = ApiClient.convertToType(data['LastSynchronizationDate'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} Name + */ + Name = undefined; + /** + * @member {Boolean} Disabled + */ + Disabled = undefined; + /** + * @member {module:model/ObjectStorageType} StorageType + */ + StorageType = undefined; + /** + * @member {Object.} StorageConfiguration + */ + StorageConfiguration = undefined; + /** + * @member {String} ObjectsServiceName + */ + ObjectsServiceName = undefined; + /** + * @member {String} ObjectsHost + */ + ObjectsHost = undefined; + /** + * @member {Number} ObjectsPort + */ + ObjectsPort = undefined; + /** + * @member {Boolean} ObjectsSecure + */ + ObjectsSecure = undefined; + /** + * @member {String} ObjectsBucket + */ + ObjectsBucket = undefined; + /** + * @member {String} ObjectsBaseFolder + */ + ObjectsBaseFolder = undefined; + /** + * @member {String} ApiKey + */ + ApiKey = undefined; + /** + * @member {String} ApiSecret + */ + ApiSecret = undefined; + /** + * @member {String} PeerAddress + */ + PeerAddress = undefined; + /** + * @member {Boolean} Watch + */ + Watch = undefined; + /** + * @member {Boolean} FlatStorage + */ + FlatStorage = undefined; + /** + * @member {Boolean} SkipSyncOnRestart + */ + SkipSyncOnRestart = undefined; + /** + * @member {module:model/ObjectEncryptionMode} EncryptionMode + */ + EncryptionMode = undefined; + /** + * @member {String} EncryptionKey + */ + EncryptionKey = undefined; + /** + * @member {String} VersioningPolicyName + */ + VersioningPolicyName = undefined; + /** + * @member {Number} CreationDate + */ + CreationDate = undefined; + /** + * @member {Number} LastSynchronizationDate + */ + LastSynchronizationDate = undefined; + + + + + + + + +} + + diff --git a/src/model/ObjectEncryptionMode.js b/src/model/ObjectEncryptionMode.js new file mode 100644 index 0000000..5a253ab --- /dev/null +++ b/src/model/ObjectEncryptionMode.js @@ -0,0 +1,64 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class ObjectEncryptionMode. +* @enum {} +* @readonly +*/ +export default class ObjectEncryptionMode { + + /** + * value: "CLEAR" + * @const + */ + CLEAR = "CLEAR"; + + + /** + * value: "MASTER" + * @const + */ + MASTER = "MASTER"; + + + /** + * value: "USER" + * @const + */ + USER = "USER"; + + + /** + * value: "USER_PWD" + * @const + */ + USER_PWD = "USER_PWD"; + + + + /** + * Returns a ObjectEncryptionMode enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ObjectEncryptionMode} The enum ObjectEncryptionMode value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/ObjectStorageType.js b/src/model/ObjectStorageType.js new file mode 100644 index 0000000..fec57d5 --- /dev/null +++ b/src/model/ObjectStorageType.js @@ -0,0 +1,99 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class ObjectStorageType. +* @enum {} +* @readonly +*/ +export default class ObjectStorageType { + + /** + * value: "LOCAL" + * @const + */ + LOCAL = "LOCAL"; + + + /** + * value: "S3" + * @const + */ + S3 = "S3"; + + + /** + * value: "SMB" + * @const + */ + SMB = "SMB"; + + + /** + * value: "CELLS" + * @const + */ + CELLS = "CELLS"; + + + /** + * value: "AZURE" + * @const + */ + AZURE = "AZURE"; + + + /** + * value: "GCS" + * @const + */ + GCS = "GCS"; + + + /** + * value: "B2" + * @const + */ + B2 = "B2"; + + + /** + * value: "MANTA" + * @const + */ + MANTA = "MANTA"; + + + /** + * value: "SIA" + * @const + */ + SIA = "SIA"; + + + + /** + * Returns a ObjectStorageType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ObjectStorageType} The enum ObjectStorageType value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/ProtobufAny.js b/src/model/ProtobufAny.js new file mode 100644 index 0000000..8012ab7 --- /dev/null +++ b/src/model/ProtobufAny.js @@ -0,0 +1,99 @@ +/** + * Pydio Cells Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** + * The ProtobufAny model module. + * @module model/ProtobufAny + * @version 1.0 + */ +export default class ProtobufAny { + /** + * Constructs a new ProtobufAny. + * `Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message. Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type. Example 1: Pack and unpack a message in C++. Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... } Example 2: Pack and unpack a message in Java. Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any.Unpack(foo) ... Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := ptypes.MarshalAny(foo) ... foo := &pb.Foo{} if err := ptypes.UnmarshalAny(any, foo); err != nil { ... } The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example \"foo.bar.com/x/y.z\" will yield type name \"y.z\". JSON ==== The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example: package google.profile; message Person { string first_name = 1; string last_name = 2; } { \"@type\": \"type.googleapis.com/google.profile.Person\", \"firstName\": <string>, \"lastName\": <string> } If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]): { \"@type\": \"type.googleapis.com/google.protobuf.Duration\", \"value\": \"1.212s\" } + * @alias module:model/ProtobufAny + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ProtobufAny from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProtobufAny} obj Optional instance to populate. + * @return {module:model/ProtobufAny} The populated ProtobufAny instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProtobufAny(); + + obj.value = {}; + Object.keys(data).forEach(k => { + if(k === '@type') { + obj.type_url = data[k]; + } else if (k === 'SubQueries' && data[k].map) { + obj.value[k] = data[k].map(d => ProtobufAny.constructFromObject(d)); + } else { + obj.value[k] = data[k]; + } + }); + + } + return obj; + } + + /** + * A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. + * @member {String} type_url + */ + type_url = undefined; + /** + * Must be a valid serialized protocol buffer of the above specified type. + * @member {Blob} value + */ + value = undefined; + + + /** + * Overrides standard serialization function + */ + toJSON(){ + // Expand this.value keys to a unique array + return { + '@type': this.type_url, + ...this.value + }; + } + + + + +} + + diff --git a/src/model/ReportsAuditedWorkspace.js b/src/model/ReportsAuditedWorkspace.js new file mode 100644 index 0000000..774b2fe --- /dev/null +++ b/src/model/ReportsAuditedWorkspace.js @@ -0,0 +1,125 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import IdmRole from './IdmRole'; +import IdmUser from './IdmUser'; +import IdmWorkspace from './IdmWorkspace'; + + + + + +/** +* The ReportsAuditedWorkspace model module. +* @module model/ReportsAuditedWorkspace +* @version 2.0 +*/ +export default class ReportsAuditedWorkspace { + /** + * Constructs a new ReportsAuditedWorkspace. + * @alias module:model/ReportsAuditedWorkspace + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ReportsAuditedWorkspace from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReportsAuditedWorkspace} obj Optional instance to populate. + * @return {module:model/ReportsAuditedWorkspace} The populated ReportsAuditedWorkspace instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ReportsAuditedWorkspace(); + + + + + + if (data.hasOwnProperty('Workspace')) { + obj['Workspace'] = IdmWorkspace.constructFromObject(data['Workspace']); + } + if (data.hasOwnProperty('UsersReadCount')) { + obj['UsersReadCount'] = ApiClient.convertToType(data['UsersReadCount'], 'Number'); + } + if (data.hasOwnProperty('UsersWriteCount')) { + obj['UsersWriteCount'] = ApiClient.convertToType(data['UsersWriteCount'], 'Number'); + } + if (data.hasOwnProperty('OwnerUser')) { + obj['OwnerUser'] = IdmUser.constructFromObject(data['OwnerUser']); + } + if (data.hasOwnProperty('RolesRead')) { + obj['RolesRead'] = ApiClient.convertToType(data['RolesRead'], [IdmRole]); + } + if (data.hasOwnProperty('RolesWrite')) { + obj['RolesWrite'] = ApiClient.convertToType(data['RolesWrite'], [IdmRole]); + } + if (data.hasOwnProperty('BrokenLink')) { + obj['BrokenLink'] = ApiClient.convertToType(data['BrokenLink'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {module:model/IdmWorkspace} Workspace + */ + Workspace = undefined; + /** + * @member {Number} UsersReadCount + */ + UsersReadCount = undefined; + /** + * @member {Number} UsersWriteCount + */ + UsersWriteCount = undefined; + /** + * @member {module:model/IdmUser} OwnerUser + */ + OwnerUser = undefined; + /** + * @member {Array.} RolesRead + */ + RolesRead = undefined; + /** + * @member {Array.} RolesWrite + */ + RolesWrite = undefined; + /** + * @member {Boolean} BrokenLink + */ + BrokenLink = undefined; + + + + + + + + +} + + diff --git a/src/model/ReportsSharedResource.js b/src/model/ReportsSharedResource.js new file mode 100644 index 0000000..8811c37 --- /dev/null +++ b/src/model/ReportsSharedResource.js @@ -0,0 +1,96 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import ReportsAuditedWorkspace from './ReportsAuditedWorkspace'; +import TreeNode from './TreeNode'; + + + + + +/** +* The ReportsSharedResource model module. +* @module model/ReportsSharedResource +* @version 2.0 +*/ +export default class ReportsSharedResource { + /** + * Constructs a new ReportsSharedResource. + * @alias module:model/ReportsSharedResource + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ReportsSharedResource from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReportsSharedResource} obj Optional instance to populate. + * @return {module:model/ReportsSharedResource} The populated ReportsSharedResource instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ReportsSharedResource(); + + + + + + if (data.hasOwnProperty('Node')) { + obj['Node'] = TreeNode.constructFromObject(data['Node']); + } + if (data.hasOwnProperty('Workspaces')) { + obj['Workspaces'] = ApiClient.convertToType(data['Workspaces'], [ReportsAuditedWorkspace]); + } + if (data.hasOwnProperty('ChildrenSharedResources')) { + obj['ChildrenSharedResources'] = ApiClient.convertToType(data['ChildrenSharedResources'], 'Number'); + } + } + return obj; + } + + /** + * @member {module:model/TreeNode} Node + */ + Node = undefined; + /** + * @member {Array.} Workspaces + */ + Workspaces = undefined; + /** + * @member {Number} ChildrenSharedResources + */ + ChildrenSharedResources = undefined; + + + + + + + + +} + + diff --git a/src/model/ReportsSharedResourceShareType.js b/src/model/ReportsSharedResourceShareType.js new file mode 100644 index 0000000..5e44131 --- /dev/null +++ b/src/model/ReportsSharedResourceShareType.js @@ -0,0 +1,64 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class ReportsSharedResourceShareType. +* @enum {} +* @readonly +*/ +export default class ReportsSharedResourceShareType { + + /** + * value: "ANY" + * @const + */ + ANY = "ANY"; + + + /** + * value: "WORKSPACE" + * @const + */ + WORKSPACE = "WORKSPACE"; + + + /** + * value: "CELL" + * @const + */ + CELL = "CELL"; + + + /** + * value: "LINK" + * @const + */ + LINK = "LINK"; + + + + /** + * Returns a ReportsSharedResourceShareType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ReportsSharedResourceShareType} The enum ReportsSharedResourceShareType value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/ReportsSharedResourcesRequest.js b/src/model/ReportsSharedResourcesRequest.js new file mode 100644 index 0000000..0abd65d --- /dev/null +++ b/src/model/ReportsSharedResourcesRequest.js @@ -0,0 +1,166 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import ReportsSharedResourceShareType from './ReportsSharedResourceShareType'; +import TreeNodeType from './TreeNodeType'; + + + + + +/** +* The ReportsSharedResourcesRequest model module. +* @module model/ReportsSharedResourcesRequest +* @version 2.0 +*/ +export default class ReportsSharedResourcesRequest { + /** + * Constructs a new ReportsSharedResourcesRequest. + * @alias module:model/ReportsSharedResourcesRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ReportsSharedResourcesRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReportsSharedResourcesRequest} obj Optional instance to populate. + * @return {module:model/ReportsSharedResourcesRequest} The populated ReportsSharedResourcesRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ReportsSharedResourcesRequest(); + + + + + + if (data.hasOwnProperty('RootPath')) { + obj['RootPath'] = ApiClient.convertToType(data['RootPath'], 'String'); + } + if (data.hasOwnProperty('ShareType')) { + obj['ShareType'] = ReportsSharedResourceShareType.constructFromObject(data['ShareType']); + } + if (data.hasOwnProperty('OwnerUUID')) { + obj['OwnerUUID'] = ApiClient.convertToType(data['OwnerUUID'], 'String'); + } + if (data.hasOwnProperty('UsersReadCountMin')) { + obj['UsersReadCountMin'] = ApiClient.convertToType(data['UsersReadCountMin'], 'Number'); + } + if (data.hasOwnProperty('UsersReadCountMax')) { + obj['UsersReadCountMax'] = ApiClient.convertToType(data['UsersReadCountMax'], 'Number'); + } + if (data.hasOwnProperty('LastUpdatedBefore')) { + obj['LastUpdatedBefore'] = ApiClient.convertToType(data['LastUpdatedBefore'], 'Number'); + } + if (data.hasOwnProperty('LastUpdatedSince')) { + obj['LastUpdatedSince'] = ApiClient.convertToType(data['LastUpdatedSince'], 'Number'); + } + if (data.hasOwnProperty('RolesReadUUIDs')) { + obj['RolesReadUUIDs'] = ApiClient.convertToType(data['RolesReadUUIDs'], ['String']); + } + if (data.hasOwnProperty('RolesReadAND')) { + obj['RolesReadAND'] = ApiClient.convertToType(data['RolesReadAND'], 'Boolean'); + } + if (data.hasOwnProperty('NodeType')) { + obj['NodeType'] = TreeNodeType.constructFromObject(data['NodeType']); + } + if (data.hasOwnProperty('NodeSizeMin')) { + obj['NodeSizeMin'] = ApiClient.convertToType(data['NodeSizeMin'], 'Number'); + } + if (data.hasOwnProperty('Offset')) { + obj['Offset'] = ApiClient.convertToType(data['Offset'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} RootPath + */ + RootPath = undefined; + /** + * @member {module:model/ReportsSharedResourceShareType} ShareType + */ + ShareType = undefined; + /** + * @member {String} OwnerUUID + */ + OwnerUUID = undefined; + /** + * @member {Number} UsersReadCountMin + */ + UsersReadCountMin = undefined; + /** + * @member {Number} UsersReadCountMax + */ + UsersReadCountMax = undefined; + /** + * @member {Number} LastUpdatedBefore + */ + LastUpdatedBefore = undefined; + /** + * @member {Number} LastUpdatedSince + */ + LastUpdatedSince = undefined; + /** + * @member {Array.} RolesReadUUIDs + */ + RolesReadUUIDs = undefined; + /** + * @member {Boolean} RolesReadAND + */ + RolesReadAND = undefined; + /** + * @member {module:model/TreeNodeType} NodeType + */ + NodeType = undefined; + /** + * @member {Number} NodeSizeMin + */ + NodeSizeMin = undefined; + /** + * @member {Number} Offset + */ + Offset = undefined; + /** + * @member {Number} Limit + */ + Limit = undefined; + + + + + + + + +} + + diff --git a/src/model/ReportsSharedResourcesResponse.js b/src/model/ReportsSharedResourcesResponse.js new file mode 100644 index 0000000..7cd13fa --- /dev/null +++ b/src/model/ReportsSharedResourcesResponse.js @@ -0,0 +1,109 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import ReportsSharedResource from './ReportsSharedResource'; + + + + + +/** +* The ReportsSharedResourcesResponse model module. +* @module model/ReportsSharedResourcesResponse +* @version 2.0 +*/ +export default class ReportsSharedResourcesResponse { + /** + * Constructs a new ReportsSharedResourcesResponse. + * @alias module:model/ReportsSharedResourcesResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ReportsSharedResourcesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReportsSharedResourcesResponse} obj Optional instance to populate. + * @return {module:model/ReportsSharedResourcesResponse} The populated ReportsSharedResourcesResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ReportsSharedResourcesResponse(); + + + + + + if (data.hasOwnProperty('Resources')) { + obj['Resources'] = ApiClient.convertToType(data['Resources'], [ReportsSharedResource]); + } + if (data.hasOwnProperty('Offset')) { + obj['Offset'] = ApiClient.convertToType(data['Offset'], 'Number'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'Number'); + } + if (data.hasOwnProperty('Total')) { + obj['Total'] = ApiClient.convertToType(data['Total'], 'Number'); + } + if (data.hasOwnProperty('Facets')) { + obj['Facets'] = ApiClient.convertToType(data['Facets'], {'String': 'Number'}); + } + } + return obj; + } + + /** + * @member {Array.} Resources + */ + Resources = undefined; + /** + * @member {Number} Offset + */ + Offset = undefined; + /** + * @member {Number} Limit + */ + Limit = undefined; + /** + * @member {Number} Total + */ + Total = undefined; + /** + * @member {Object.} Facets + */ + Facets = undefined; + + + + + + + + +} + + diff --git a/src/model/RestDeleteResponse.js b/src/model/RestDeleteResponse.js new file mode 100644 index 0000000..aff554b --- /dev/null +++ b/src/model/RestDeleteResponse.js @@ -0,0 +1,87 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The RestDeleteResponse model module. +* @module model/RestDeleteResponse +* @version 2.0 +*/ +export default class RestDeleteResponse { + /** + * Constructs a new RestDeleteResponse. + * @alias module:model/RestDeleteResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a RestDeleteResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestDeleteResponse} obj Optional instance to populate. + * @return {module:model/RestDeleteResponse} The populated RestDeleteResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestDeleteResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + if (data.hasOwnProperty('NumRows')) { + obj['NumRows'] = ApiClient.convertToType(data['NumRows'], 'String'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + /** + * @member {String} NumRows + */ + NumRows = undefined; + + + + + + + + +} + + diff --git a/src/model/RestError.js b/src/model/RestError.js new file mode 100644 index 0000000..6c5a03c --- /dev/null +++ b/src/model/RestError.js @@ -0,0 +1,108 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The RestError model module. +* @module model/RestError +* @version 2.0 +*/ +export default class RestError { + /** + * Constructs a new RestError. + * @alias module:model/RestError + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a RestError from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestError} obj Optional instance to populate. + * @return {module:model/RestError} The populated RestError instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestError(); + + + + + + if (data.hasOwnProperty('Code')) { + obj['Code'] = ApiClient.convertToType(data['Code'], 'String'); + } + if (data.hasOwnProperty('Title')) { + obj['Title'] = ApiClient.convertToType(data['Title'], 'String'); + } + if (data.hasOwnProperty('Detail')) { + obj['Detail'] = ApiClient.convertToType(data['Detail'], 'String'); + } + if (data.hasOwnProperty('Source')) { + obj['Source'] = ApiClient.convertToType(data['Source'], 'String'); + } + if (data.hasOwnProperty('Meta')) { + obj['Meta'] = ApiClient.convertToType(data['Meta'], {'String': 'String'}); + } + } + return obj; + } + + /** + * @member {String} Code + */ + Code = undefined; + /** + * @member {String} Title + */ + Title = undefined; + /** + * @member {String} Detail + */ + Detail = undefined; + /** + * @member {String} Source + */ + Source = undefined; + /** + * @member {Object.} Meta + */ + Meta = undefined; + + + + + + + + +} + + diff --git a/src/model/RestLogMessageCollection.js b/src/model/RestLogMessageCollection.js new file mode 100644 index 0000000..2c1bb20 --- /dev/null +++ b/src/model/RestLogMessageCollection.js @@ -0,0 +1,81 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import LogLogMessage from './LogLogMessage'; + + + + + +/** +* The RestLogMessageCollection model module. +* @module model/RestLogMessageCollection +* @version 2.0 +*/ +export default class RestLogMessageCollection { + /** + * Constructs a new RestLogMessageCollection. + * @alias module:model/RestLogMessageCollection + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a RestLogMessageCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestLogMessageCollection} obj Optional instance to populate. + * @return {module:model/RestLogMessageCollection} The populated RestLogMessageCollection instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestLogMessageCollection(); + + + + + + if (data.hasOwnProperty('Logs')) { + obj['Logs'] = ApiClient.convertToType(data['Logs'], [LogLogMessage]); + } + } + return obj; + } + + /** + * @member {Array.} Logs + */ + Logs = undefined; + + + + + + + + +} + + diff --git a/src/model/RestRevokeResponse.js b/src/model/RestRevokeResponse.js new file mode 100644 index 0000000..fb1e0ac --- /dev/null +++ b/src/model/RestRevokeResponse.js @@ -0,0 +1,87 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The RestRevokeResponse model module. +* @module model/RestRevokeResponse +* @version 2.0 +*/ +export default class RestRevokeResponse { + /** + * Constructs a new RestRevokeResponse. + * @alias module:model/RestRevokeResponse + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a RestRevokeResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestRevokeResponse} obj Optional instance to populate. + * @return {module:model/RestRevokeResponse} The populated RestRevokeResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestRevokeResponse(); + + + + + + if (data.hasOwnProperty('Success')) { + obj['Success'] = ApiClient.convertToType(data['Success'], 'Boolean'); + } + if (data.hasOwnProperty('Message')) { + obj['Message'] = ApiClient.convertToType(data['Message'], 'String'); + } + } + return obj; + } + + /** + * @member {Boolean} Success + */ + Success = undefined; + /** + * @member {String} Message + */ + Message = undefined; + + + + + + + + +} + + diff --git a/src/model/RestTimeRangeResultCollection.js b/src/model/RestTimeRangeResultCollection.js new file mode 100644 index 0000000..bf04c57 --- /dev/null +++ b/src/model/RestTimeRangeResultCollection.js @@ -0,0 +1,89 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import LogTimeRangeCursor from './LogTimeRangeCursor'; +import LogTimeRangeResult from './LogTimeRangeResult'; + + + + + +/** +* The RestTimeRangeResultCollection model module. +* @module model/RestTimeRangeResultCollection +* @version 2.0 +*/ +export default class RestTimeRangeResultCollection { + /** + * Constructs a new RestTimeRangeResultCollection. + * @alias module:model/RestTimeRangeResultCollection + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a RestTimeRangeResultCollection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestTimeRangeResultCollection} obj Optional instance to populate. + * @return {module:model/RestTimeRangeResultCollection} The populated RestTimeRangeResultCollection instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestTimeRangeResultCollection(); + + + + + + if (data.hasOwnProperty('Results')) { + obj['Results'] = ApiClient.convertToType(data['Results'], [LogTimeRangeResult]); + } + if (data.hasOwnProperty('Links')) { + obj['Links'] = ApiClient.convertToType(data['Links'], [LogTimeRangeCursor]); + } + } + return obj; + } + + /** + * @member {Array.} Results + */ + Results = undefined; + /** + * @member {Array.} Links + */ + Links = undefined; + + + + + + + + +} + + diff --git a/src/model/ServiceOperationType.js b/src/model/ServiceOperationType.js new file mode 100644 index 0000000..352d754 --- /dev/null +++ b/src/model/ServiceOperationType.js @@ -0,0 +1,50 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class ServiceOperationType. +* @enum {} +* @readonly +*/ +export default class ServiceOperationType { + + /** + * value: "OR" + * @const + */ + OR = "OR"; + + + /** + * value: "AND" + * @const + */ + AND = "AND"; + + + + /** + * Returns a ServiceOperationType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ServiceOperationType} The enum ServiceOperationType value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/ServiceQuery.js b/src/model/ServiceQuery.js new file mode 100644 index 0000000..b90b022 --- /dev/null +++ b/src/model/ServiceQuery.js @@ -0,0 +1,118 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import ProtobufAny from './ProtobufAny'; +import ServiceOperationType from './ServiceOperationType'; +import ServiceResourcePolicyQuery from './ServiceResourcePolicyQuery'; + + + + + +/** +* The ServiceQuery model module. +* @module model/ServiceQuery +* @version 2.0 +*/ +export default class ServiceQuery { + /** + * Constructs a new ServiceQuery. + * @alias module:model/ServiceQuery + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ServiceQuery from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ServiceQuery} obj Optional instance to populate. + * @return {module:model/ServiceQuery} The populated ServiceQuery instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ServiceQuery(); + + + + + + if (data.hasOwnProperty('SubQueries')) { + obj['SubQueries'] = ApiClient.convertToType(data['SubQueries'], [ProtobufAny]); + } + if (data.hasOwnProperty('Operation')) { + obj['Operation'] = ServiceOperationType.constructFromObject(data['Operation']); + } + if (data.hasOwnProperty('ResourcePolicyQuery')) { + obj['ResourcePolicyQuery'] = ServiceResourcePolicyQuery.constructFromObject(data['ResourcePolicyQuery']); + } + if (data.hasOwnProperty('Offset')) { + obj['Offset'] = ApiClient.convertToType(data['Offset'], 'String'); + } + if (data.hasOwnProperty('Limit')) { + obj['Limit'] = ApiClient.convertToType(data['Limit'], 'String'); + } + if (data.hasOwnProperty('groupBy')) { + obj['groupBy'] = ApiClient.convertToType(data['groupBy'], 'Number'); + } + } + return obj; + } + + /** + * @member {Array.} SubQueries + */ + SubQueries = undefined; + /** + * @member {module:model/ServiceOperationType} Operation + */ + Operation = undefined; + /** + * @member {module:model/ServiceResourcePolicyQuery} ResourcePolicyQuery + */ + ResourcePolicyQuery = undefined; + /** + * @member {String} Offset + */ + Offset = undefined; + /** + * @member {String} Limit + */ + Limit = undefined; + /** + * @member {Number} groupBy + */ + groupBy = undefined; + + + + + + + + +} + + diff --git a/src/model/ServiceResourcePolicy.js b/src/model/ServiceResourcePolicy.js new file mode 100644 index 0000000..99c80f5 --- /dev/null +++ b/src/model/ServiceResourcePolicy.js @@ -0,0 +1,117 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import ServiceResourcePolicyAction from './ServiceResourcePolicyAction'; +import ServiceResourcePolicyPolicyEffect from './ServiceResourcePolicyPolicyEffect'; + + + + + +/** +* The ServiceResourcePolicy model module. +* @module model/ServiceResourcePolicy +* @version 2.0 +*/ +export default class ServiceResourcePolicy { + /** + * Constructs a new ServiceResourcePolicy. + * @alias module:model/ServiceResourcePolicy + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ServiceResourcePolicy from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ServiceResourcePolicy} obj Optional instance to populate. + * @return {module:model/ServiceResourcePolicy} The populated ServiceResourcePolicy instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ServiceResourcePolicy(); + + + + + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + if (data.hasOwnProperty('Resource')) { + obj['Resource'] = ApiClient.convertToType(data['Resource'], 'String'); + } + if (data.hasOwnProperty('Action')) { + obj['Action'] = ServiceResourcePolicyAction.constructFromObject(data['Action']); + } + if (data.hasOwnProperty('Subject')) { + obj['Subject'] = ApiClient.convertToType(data['Subject'], 'String'); + } + if (data.hasOwnProperty('Effect')) { + obj['Effect'] = ServiceResourcePolicyPolicyEffect.constructFromObject(data['Effect']); + } + if (data.hasOwnProperty('JsonConditions')) { + obj['JsonConditions'] = ApiClient.convertToType(data['JsonConditions'], 'String'); + } + } + return obj; + } + + /** + * @member {String} id + */ + id = undefined; + /** + * @member {String} Resource + */ + Resource = undefined; + /** + * @member {module:model/ServiceResourcePolicyAction} Action + */ + Action = undefined; + /** + * @member {String} Subject + */ + Subject = undefined; + /** + * @member {module:model/ServiceResourcePolicyPolicyEffect} Effect + */ + Effect = undefined; + /** + * @member {String} JsonConditions + */ + JsonConditions = undefined; + + + + + + + + +} + + diff --git a/src/model/ServiceResourcePolicyAction.js b/src/model/ServiceResourcePolicyAction.js new file mode 100644 index 0000000..6676474 --- /dev/null +++ b/src/model/ServiceResourcePolicyAction.js @@ -0,0 +1,71 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class ServiceResourcePolicyAction. +* @enum {} +* @readonly +*/ +export default class ServiceResourcePolicyAction { + + /** + * value: "ANY" + * @const + */ + ANY = "ANY"; + + + /** + * value: "OWNER" + * @const + */ + OWNER = "OWNER"; + + + /** + * value: "READ" + * @const + */ + READ = "READ"; + + + /** + * value: "WRITE" + * @const + */ + WRITE = "WRITE"; + + + /** + * value: "EDIT_RULES" + * @const + */ + EDIT_RULES = "EDIT_RULES"; + + + + /** + * Returns a ServiceResourcePolicyAction enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ServiceResourcePolicyAction} The enum ServiceResourcePolicyAction value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/ServiceResourcePolicyPolicyEffect.js b/src/model/ServiceResourcePolicyPolicyEffect.js new file mode 100644 index 0000000..c9471ec --- /dev/null +++ b/src/model/ServiceResourcePolicyPolicyEffect.js @@ -0,0 +1,50 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class ServiceResourcePolicyPolicyEffect. +* @enum {} +* @readonly +*/ +export default class ServiceResourcePolicyPolicyEffect { + + /** + * value: "deny" + * @const + */ + deny = "deny"; + + + /** + * value: "allow" + * @const + */ + allow = "allow"; + + + + /** + * Returns a ServiceResourcePolicyPolicyEffect enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ServiceResourcePolicyPolicyEffect} The enum ServiceResourcePolicyPolicyEffect value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/ServiceResourcePolicyQuery.js b/src/model/ServiceResourcePolicyQuery.js new file mode 100644 index 0000000..32dd6e5 --- /dev/null +++ b/src/model/ServiceResourcePolicyQuery.js @@ -0,0 +1,94 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The ServiceResourcePolicyQuery model module. +* @module model/ServiceResourcePolicyQuery +* @version 2.0 +*/ +export default class ServiceResourcePolicyQuery { + /** + * Constructs a new ServiceResourcePolicyQuery. + * @alias module:model/ServiceResourcePolicyQuery + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ServiceResourcePolicyQuery from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ServiceResourcePolicyQuery} obj Optional instance to populate. + * @return {module:model/ServiceResourcePolicyQuery} The populated ServiceResourcePolicyQuery instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ServiceResourcePolicyQuery(); + + + + + + if (data.hasOwnProperty('Subjects')) { + obj['Subjects'] = ApiClient.convertToType(data['Subjects'], ['String']); + } + if (data.hasOwnProperty('Empty')) { + obj['Empty'] = ApiClient.convertToType(data['Empty'], 'Boolean'); + } + if (data.hasOwnProperty('Any')) { + obj['Any'] = ApiClient.convertToType(data['Any'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Array.} Subjects + */ + Subjects = undefined; + /** + * @member {Boolean} Empty + */ + Empty = undefined; + /** + * @member {Boolean} Any + */ + Any = undefined; + + + + + + + + +} + + diff --git a/src/model/TreeChangeLog.js b/src/model/TreeChangeLog.js new file mode 100644 index 0000000..2afa007 --- /dev/null +++ b/src/model/TreeChangeLog.js @@ -0,0 +1,131 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import TreeNode from './TreeNode'; +import TreeNodeChangeEvent from './TreeNodeChangeEvent'; + + + + + +/** +* The TreeChangeLog model module. +* @module model/TreeChangeLog +* @version 2.0 +*/ +export default class TreeChangeLog { + /** + * Constructs a new TreeChangeLog. + * @alias module:model/TreeChangeLog + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a TreeChangeLog from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TreeChangeLog} obj Optional instance to populate. + * @return {module:model/TreeChangeLog} The populated TreeChangeLog instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TreeChangeLog(); + + + + + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('MTime')) { + obj['MTime'] = ApiClient.convertToType(data['MTime'], 'String'); + } + if (data.hasOwnProperty('Size')) { + obj['Size'] = ApiClient.convertToType(data['Size'], 'String'); + } + if (data.hasOwnProperty('Data')) { + obj['Data'] = ApiClient.convertToType(data['Data'], 'Blob'); + } + if (data.hasOwnProperty('OwnerUuid')) { + obj['OwnerUuid'] = ApiClient.convertToType(data['OwnerUuid'], 'String'); + } + if (data.hasOwnProperty('Event')) { + obj['Event'] = TreeNodeChangeEvent.constructFromObject(data['Event']); + } + if (data.hasOwnProperty('Location')) { + obj['Location'] = TreeNode.constructFromObject(data['Location']); + } + } + return obj; + } + + /** + * @member {String} Uuid + */ + Uuid = undefined; + /** + * @member {String} Description + */ + Description = undefined; + /** + * @member {String} MTime + */ + MTime = undefined; + /** + * @member {String} Size + */ + Size = undefined; + /** + * @member {Blob} Data + */ + Data = undefined; + /** + * @member {String} OwnerUuid + */ + OwnerUuid = undefined; + /** + * @member {module:model/TreeNodeChangeEvent} Event + */ + Event = undefined; + /** + * @member {module:model/TreeNode} Location + */ + Location = undefined; + + + + + + + + +} + + diff --git a/src/model/TreeNode.js b/src/model/TreeNode.js new file mode 100644 index 0000000..e3ba5cb --- /dev/null +++ b/src/model/TreeNode.js @@ -0,0 +1,146 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import TreeChangeLog from './TreeChangeLog'; +import TreeNodeType from './TreeNodeType'; +import TreeWorkspaceRelativePath from './TreeWorkspaceRelativePath'; + + + + + +/** +* The TreeNode model module. +* @module model/TreeNode +* @version 2.0 +*/ +export default class TreeNode { + /** + * Constructs a new TreeNode. + * @alias module:model/TreeNode + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a TreeNode from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TreeNode} obj Optional instance to populate. + * @return {module:model/TreeNode} The populated TreeNode instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TreeNode(); + + + + + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String'); + } + if (data.hasOwnProperty('Path')) { + obj['Path'] = ApiClient.convertToType(data['Path'], 'String'); + } + if (data.hasOwnProperty('Type')) { + obj['Type'] = TreeNodeType.constructFromObject(data['Type']); + } + if (data.hasOwnProperty('Size')) { + obj['Size'] = ApiClient.convertToType(data['Size'], 'String'); + } + if (data.hasOwnProperty('MTime')) { + obj['MTime'] = ApiClient.convertToType(data['MTime'], 'String'); + } + if (data.hasOwnProperty('Mode')) { + obj['Mode'] = ApiClient.convertToType(data['Mode'], 'Number'); + } + if (data.hasOwnProperty('Etag')) { + obj['Etag'] = ApiClient.convertToType(data['Etag'], 'String'); + } + if (data.hasOwnProperty('Commits')) { + obj['Commits'] = ApiClient.convertToType(data['Commits'], [TreeChangeLog]); + } + if (data.hasOwnProperty('MetaStore')) { + obj['MetaStore'] = ApiClient.convertToType(data['MetaStore'], {'String': 'String'}); + } + if (data.hasOwnProperty('AppearsIn')) { + obj['AppearsIn'] = ApiClient.convertToType(data['AppearsIn'], [TreeWorkspaceRelativePath]); + } + } + return obj; + } + + /** + * @member {String} Uuid + */ + Uuid = undefined; + /** + * @member {String} Path + */ + Path = undefined; + /** + * @member {module:model/TreeNodeType} Type + */ + Type = undefined; + /** + * @member {String} Size + */ + Size = undefined; + /** + * @member {String} MTime + */ + MTime = undefined; + /** + * @member {Number} Mode + */ + Mode = undefined; + /** + * @member {String} Etag + */ + Etag = undefined; + /** + * @member {Array.} Commits + */ + Commits = undefined; + /** + * @member {Object.} MetaStore + */ + MetaStore = undefined; + /** + * @member {Array.} AppearsIn + */ + AppearsIn = undefined; + + + + + + + + +} + + diff --git a/src/model/TreeNodeChangeEvent.js b/src/model/TreeNodeChangeEvent.js new file mode 100644 index 0000000..452dcf0 --- /dev/null +++ b/src/model/TreeNodeChangeEvent.js @@ -0,0 +1,117 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import NodeChangeEventEventType from './NodeChangeEventEventType'; +import TreeNode from './TreeNode'; + + + + + +/** +* The TreeNodeChangeEvent model module. +* @module model/TreeNodeChangeEvent +* @version 2.0 +*/ +export default class TreeNodeChangeEvent { + /** + * Constructs a new TreeNodeChangeEvent. + * @alias module:model/TreeNodeChangeEvent + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a TreeNodeChangeEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TreeNodeChangeEvent} obj Optional instance to populate. + * @return {module:model/TreeNodeChangeEvent} The populated TreeNodeChangeEvent instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TreeNodeChangeEvent(); + + + + + + if (data.hasOwnProperty('Type')) { + obj['Type'] = NodeChangeEventEventType.constructFromObject(data['Type']); + } + if (data.hasOwnProperty('Source')) { + obj['Source'] = TreeNode.constructFromObject(data['Source']); + } + if (data.hasOwnProperty('Target')) { + obj['Target'] = TreeNode.constructFromObject(data['Target']); + } + if (data.hasOwnProperty('Metadata')) { + obj['Metadata'] = ApiClient.convertToType(data['Metadata'], {'String': 'String'}); + } + if (data.hasOwnProperty('Silent')) { + obj['Silent'] = ApiClient.convertToType(data['Silent'], 'Boolean'); + } + if (data.hasOwnProperty('Optimistic')) { + obj['Optimistic'] = ApiClient.convertToType(data['Optimistic'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {module:model/NodeChangeEventEventType} Type + */ + Type = undefined; + /** + * @member {module:model/TreeNode} Source + */ + Source = undefined; + /** + * @member {module:model/TreeNode} Target + */ + Target = undefined; + /** + * @member {Object.} Metadata + */ + Metadata = undefined; + /** + * @member {Boolean} Silent + */ + Silent = undefined; + /** + * @member {Boolean} Optimistic + */ + Optimistic = undefined; + + + + + + + + +} + + diff --git a/src/model/TreeNodeType.js b/src/model/TreeNodeType.js new file mode 100644 index 0000000..2486e9a --- /dev/null +++ b/src/model/TreeNodeType.js @@ -0,0 +1,57 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class TreeNodeType. +* @enum {} +* @readonly +*/ +export default class TreeNodeType { + + /** + * value: "UNKNOWN" + * @const + */ + UNKNOWN = "UNKNOWN"; + + + /** + * value: "LEAF" + * @const + */ + LEAF = "LEAF"; + + + /** + * value: "COLLECTION" + * @const + */ + COLLECTION = "COLLECTION"; + + + + /** + * Returns a TreeNodeType enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/TreeNodeType} The enum TreeNodeType value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/TreeVersioningKeepPeriod.js b/src/model/TreeVersioningKeepPeriod.js new file mode 100644 index 0000000..c37e8bc --- /dev/null +++ b/src/model/TreeVersioningKeepPeriod.js @@ -0,0 +1,87 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The TreeVersioningKeepPeriod model module. +* @module model/TreeVersioningKeepPeriod +* @version 2.0 +*/ +export default class TreeVersioningKeepPeriod { + /** + * Constructs a new TreeVersioningKeepPeriod. + * @alias module:model/TreeVersioningKeepPeriod + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a TreeVersioningKeepPeriod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TreeVersioningKeepPeriod} obj Optional instance to populate. + * @return {module:model/TreeVersioningKeepPeriod} The populated TreeVersioningKeepPeriod instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TreeVersioningKeepPeriod(); + + + + + + if (data.hasOwnProperty('IntervalStart')) { + obj['IntervalStart'] = ApiClient.convertToType(data['IntervalStart'], 'String'); + } + if (data.hasOwnProperty('MaxNumber')) { + obj['MaxNumber'] = ApiClient.convertToType(data['MaxNumber'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} IntervalStart + */ + IntervalStart = undefined; + /** + * @member {Number} MaxNumber + */ + MaxNumber = undefined; + + + + + + + + +} + + diff --git a/src/model/TreeVersioningNodeDeletedStrategy.js b/src/model/TreeVersioningNodeDeletedStrategy.js new file mode 100644 index 0000000..90f5fa9 --- /dev/null +++ b/src/model/TreeVersioningNodeDeletedStrategy.js @@ -0,0 +1,57 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + +/** +* Enum class TreeVersioningNodeDeletedStrategy. +* @enum {} +* @readonly +*/ +export default class TreeVersioningNodeDeletedStrategy { + + /** + * value: "KeepAll" + * @const + */ + KeepAll = "KeepAll"; + + + /** + * value: "KeepLast" + * @const + */ + KeepLast = "KeepLast"; + + + /** + * value: "KeepNone" + * @const + */ + KeepNone = "KeepNone"; + + + + /** + * Returns a TreeVersioningNodeDeletedStrategy enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/TreeVersioningNodeDeletedStrategy} The enum TreeVersioningNodeDeletedStrategy value. + */ + static constructFromObject(object) { + return object; + } +} + + diff --git a/src/model/TreeVersioningPolicy.js b/src/model/TreeVersioningPolicy.js new file mode 100644 index 0000000..f9c76a2 --- /dev/null +++ b/src/model/TreeVersioningPolicy.js @@ -0,0 +1,145 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; +import TreeVersioningKeepPeriod from './TreeVersioningKeepPeriod'; +import TreeVersioningNodeDeletedStrategy from './TreeVersioningNodeDeletedStrategy'; + + + + + +/** +* The TreeVersioningPolicy model module. +* @module model/TreeVersioningPolicy +* @version 2.0 +*/ +export default class TreeVersioningPolicy { + /** + * Constructs a new TreeVersioningPolicy. + * @alias module:model/TreeVersioningPolicy + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a TreeVersioningPolicy from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TreeVersioningPolicy} obj Optional instance to populate. + * @return {module:model/TreeVersioningPolicy} The populated TreeVersioningPolicy instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TreeVersioningPolicy(); + + + + + + if (data.hasOwnProperty('Uuid')) { + obj['Uuid'] = ApiClient.convertToType(data['Uuid'], 'String'); + } + if (data.hasOwnProperty('Name')) { + obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); + } + if (data.hasOwnProperty('Description')) { + obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); + } + if (data.hasOwnProperty('VersionsDataSourceName')) { + obj['VersionsDataSourceName'] = ApiClient.convertToType(data['VersionsDataSourceName'], 'String'); + } + if (data.hasOwnProperty('VersionsDataSourceBucket')) { + obj['VersionsDataSourceBucket'] = ApiClient.convertToType(data['VersionsDataSourceBucket'], 'String'); + } + if (data.hasOwnProperty('MaxTotalSize')) { + obj['MaxTotalSize'] = ApiClient.convertToType(data['MaxTotalSize'], 'String'); + } + if (data.hasOwnProperty('MaxSizePerFile')) { + obj['MaxSizePerFile'] = ApiClient.convertToType(data['MaxSizePerFile'], 'String'); + } + if (data.hasOwnProperty('IgnoreFilesGreaterThan')) { + obj['IgnoreFilesGreaterThan'] = ApiClient.convertToType(data['IgnoreFilesGreaterThan'], 'String'); + } + if (data.hasOwnProperty('KeepPeriods')) { + obj['KeepPeriods'] = ApiClient.convertToType(data['KeepPeriods'], [TreeVersioningKeepPeriod]); + } + if (data.hasOwnProperty('NodeDeletedStrategy')) { + obj['NodeDeletedStrategy'] = TreeVersioningNodeDeletedStrategy.constructFromObject(data['NodeDeletedStrategy']); + } + } + return obj; + } + + /** + * @member {String} Uuid + */ + Uuid = undefined; + /** + * @member {String} Name + */ + Name = undefined; + /** + * @member {String} Description + */ + Description = undefined; + /** + * @member {String} VersionsDataSourceName + */ + VersionsDataSourceName = undefined; + /** + * @member {String} VersionsDataSourceBucket + */ + VersionsDataSourceBucket = undefined; + /** + * @member {String} MaxTotalSize + */ + MaxTotalSize = undefined; + /** + * @member {String} MaxSizePerFile + */ + MaxSizePerFile = undefined; + /** + * @member {String} IgnoreFilesGreaterThan + */ + IgnoreFilesGreaterThan = undefined; + /** + * @member {Array.} KeepPeriods + */ + KeepPeriods = undefined; + /** + * @member {module:model/TreeVersioningNodeDeletedStrategy} NodeDeletedStrategy + */ + NodeDeletedStrategy = undefined; + + + + + + + + +} + + diff --git a/src/model/TreeWorkspaceRelativePath.js b/src/model/TreeWorkspaceRelativePath.js new file mode 100644 index 0000000..7cab13f --- /dev/null +++ b/src/model/TreeWorkspaceRelativePath.js @@ -0,0 +1,108 @@ +/** + * Pydio Cells Enterprise Rest API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 2.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient'; + + + + + +/** +* The TreeWorkspaceRelativePath model module. +* @module model/TreeWorkspaceRelativePath +* @version 2.0 +*/ +export default class TreeWorkspaceRelativePath { + /** + * Constructs a new TreeWorkspaceRelativePath. + * @alias module:model/TreeWorkspaceRelativePath + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a TreeWorkspaceRelativePath from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TreeWorkspaceRelativePath} obj Optional instance to populate. + * @return {module:model/TreeWorkspaceRelativePath} The populated TreeWorkspaceRelativePath instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TreeWorkspaceRelativePath(); + + + + + + if (data.hasOwnProperty('WsUuid')) { + obj['WsUuid'] = ApiClient.convertToType(data['WsUuid'], 'String'); + } + if (data.hasOwnProperty('WsLabel')) { + obj['WsLabel'] = ApiClient.convertToType(data['WsLabel'], 'String'); + } + if (data.hasOwnProperty('Path')) { + obj['Path'] = ApiClient.convertToType(data['Path'], 'String'); + } + if (data.hasOwnProperty('WsSlug')) { + obj['WsSlug'] = ApiClient.convertToType(data['WsSlug'], 'String'); + } + if (data.hasOwnProperty('WsScope')) { + obj['WsScope'] = ApiClient.convertToType(data['WsScope'], 'String'); + } + } + return obj; + } + + /** + * @member {String} WsUuid + */ + WsUuid = undefined; + /** + * @member {String} WsLabel + */ + WsLabel = undefined; + /** + * @member {String} Path + */ + Path = undefined; + /** + * @member {String} WsSlug + */ + WsSlug = undefined; + /** + * @member {String} WsScope + */ + WsScope = undefined; + + + + + + + + +} + +