cmv4-openapi-client 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +606 -0
- data/Rakefile +10 -0
- data/build_gem.sh +2 -0
- data/cm4-openapi.config.json +6 -0
- data/cm4-openapi.yaml +14221 -0
- data/cmv4-openapi-client-1.0.1.gem +0 -0
- data/cmv4-openapi-client-1.0.2.gem +0 -0
- data/cmv4-openapi-client.gemspec +39 -0
- data/docs/Action.md +55 -0
- data/docs/ActionCalendarRequest.md +19 -0
- data/docs/ActionDocumentRelationship.md +35 -0
- data/docs/Actions.md +35 -0
- data/docs/AddressModel.md +29 -0
- data/docs/AffectedStakeholderRelationship.md +35 -0
- data/docs/AggregateGrowthCountsRequest.md +17 -0
- data/docs/AssignedBy.md +35 -0
- data/docs/AssignedTo.md +35 -0
- data/docs/Change.md +21 -0
- data/docs/ChangeLog.md +19 -0
- data/docs/ChannelMessageNotificationType.md +16 -0
- data/docs/Claim.md +19 -0
- data/docs/Classification.md +25 -0
- data/docs/ClassificationModel.md +25 -0
- data/docs/ClassificationSetModel.md +17 -0
- data/docs/ClassificationStatisticsRequest.md +21 -0
- data/docs/ClassificationViewModel.md +31 -0
- data/docs/ClassificationViewModelAllOf.md +21 -0
- data/docs/CompletionRequest.md +17 -0
- data/docs/ConcreteEnterpriseDefinition.md +19 -0
- data/docs/Correspondence.md +41 -0
- data/docs/DictionaryOfObject.md +19 -0
- data/docs/Document.md +45 -0
- data/docs/DocumentStakeholderRelationship.md +35 -0
- data/docs/DocumentUserRelationship.md +35 -0
- data/docs/Documents.md +35 -0
- data/docs/DomainObjectDefinitionBase.md +35 -0
- data/docs/DomainObjectDefinitionBaseAllOf.md +17 -0
- data/docs/DomainObjectNature.md +16 -0
- data/docs/DomainObjectPermissions.md +21 -0
- data/docs/DomainObjectTypes.md +16 -0
- data/docs/EnsureClassificationCommandData.md +17 -0
- data/docs/EnsureClassificationCommandDataValues.md +25 -0
- data/docs/EnsureEntityInstanceCommandData.md +21 -0
- data/docs/EnsureProjectCommandData.md +19 -0
- data/docs/EnsureRelationshipInstanceCommandData.md +21 -0
- data/docs/EnsureTeamCommandData.md +21 -0
- data/docs/EnsureUserCommandData.md +23 -0
- data/docs/EnterpriseConfiguration.md +25 -0
- data/docs/EnterpriseConfigurationModified.md +25 -0
- data/docs/EntityActionsApi.md +572 -0
- data/docs/EntityCorrespondenceApi.md +572 -0
- data/docs/EntityDefinition.md +39 -0
- data/docs/EntityDefinitionAllOf.md +21 -0
- data/docs/EntityDocumentsApi.md +572 -0
- data/docs/EntityEventsApi.md +572 -0
- data/docs/EntityOrganisationsApi.md +572 -0
- data/docs/EntityProjectsApi.md +572 -0
- data/docs/EntityPropertiesApi.md +572 -0
- data/docs/EntityStakeholdersApi.md +572 -0
- data/docs/EntityTeamsApi.md +572 -0
- data/docs/EntityUsersApi.md +572 -0
- data/docs/Event.md +75 -0
- data/docs/EventActionRelationship.md +35 -0
- data/docs/EventDocumentRelationship.md +35 -0
- data/docs/EventOrganisation.md +35 -0
- data/docs/EventUserRelationship.md +35 -0
- data/docs/Events.md +35 -0
- data/docs/FieldAccessLevel.md +16 -0
- data/docs/FieldNature.md +16 -0
- data/docs/FieldSecurity.md +19 -0
- data/docs/FieldType.md +16 -0
- data/docs/FilteredReportsRequest.md +25 -0
- data/docs/ForgotPasswordData.md +17 -0
- data/docs/GeneralAvailableProjectsApi.md +52 -0
- data/docs/GeneralClassificationsApi.md +545 -0
- data/docs/GeneralDefinitionApi.md +240 -0
- data/docs/GeneralDiffApi.md +64 -0
- data/docs/GeneralFeaturesApi.md +96 -0
- data/docs/GeneralHistorySearchApi.md +56 -0
- data/docs/GeneralOrganisationalSettingsApi.md +56 -0
- data/docs/GeneralQueryApi.md +56 -0
- data/docs/GeneralSearchApi.md +104 -0
- data/docs/GeneralSecurityApi.md +358 -0
- data/docs/GeneralStorageApi.md +110 -0
- data/docs/GrantTeamMembershipCommandData.md +19 -0
- data/docs/IEntityDefinition.md +17 -0
- data/docs/IEnumerableOfProjectOfObject.md +21 -0
- data/docs/IIdentityReference.md +21 -0
- data/docs/IKnowledgeBaseDataObjectDefinition.md +23 -0
- data/docs/IKnowledgeBaseFieldDefinition.md +37 -0
- data/docs/IKnowledgeBaseObjectDefinitionFeature.md +19 -0
- data/docs/IModifier.md +17 -0
- data/docs/IReadOnlyKnowledgeBaseObjectDefinition.md +37 -0
- data/docs/IRelationshipDefinition.md +23 -0
- data/docs/ISecurityConstraint.md +17 -0
- data/docs/ISystemPolicy.md +19 -0
- data/docs/IUploadToken.md +19 -0
- data/docs/IdentityModel.md +25 -0
- data/docs/KnowledgeBaseObjectDefinitionBase.md +33 -0
- data/docs/KnowledgeBaseObjectTypes.md +16 -0
- data/docs/LicensePolicies.md +16 -0
- data/docs/LocationModel.md +19 -0
- data/docs/Measures.md +16 -0
- data/docs/Membership.md +37 -0
- data/docs/MergeEntityInstancesCommandData.md +17 -0
- data/docs/ModifyData.md +19 -0
- data/docs/Notification.md +19 -0
- data/docs/Organisation.md +71 -0
- data/docs/Organisations.md +35 -0
- data/docs/OutstandingActionsByUserCountsRequest.md +19 -0
- data/docs/Project.md +21 -0
- data/docs/Project2.md +53 -0
- data/docs/ProjectModified.md +21 -0
- data/docs/ProjectOperation.md +19 -0
- data/docs/Properties.md +35 -0
- data/docs/Property.md +63 -0
- data/docs/PropertyActionRelationship.md +35 -0
- data/docs/PropertyDocumentRelationship.md +35 -0
- data/docs/PropertyEventRelationship.md +35 -0
- data/docs/PropertyOrganisation.md +35 -0
- data/docs/PropertyUserRelationship.md +35 -0
- data/docs/QueryRequest.md +23 -0
- data/docs/ReassignClassificationCommandData.md +17 -0
- data/docs/RelatedValue.md +19 -0
- data/docs/RelationshipActionDocumentRelationshipsApi.md +458 -0
- data/docs/RelationshipActionProjectRelationshipsApi.md +458 -0
- data/docs/RelationshipAffectedStakeholderRelationshipsApi.md +458 -0
- data/docs/RelationshipAssignedByactionsApi.md +458 -0
- data/docs/RelationshipAssignedToactionsApi.md +458 -0
- data/docs/RelationshipCorrespondenceProjectRelationshipsApi.md +458 -0
- data/docs/RelationshipDefinition.md +43 -0
- data/docs/RelationshipDefinitionAllOf.md +25 -0
- data/docs/RelationshipDocumentProjectRelationshipsApi.md +458 -0
- data/docs/RelationshipDocumentStakeholderRelationshipsApi.md +458 -0
- data/docs/RelationshipDocumentUserRelationshipsApi.md +458 -0
- data/docs/RelationshipEventActionRelationshipsApi.md +458 -0
- data/docs/RelationshipEventDocumentRelationshipsApi.md +458 -0
- data/docs/RelationshipEventProjectRelationshipsApi.md +458 -0
- data/docs/RelationshipEventUserRelationshipsApi.md +458 -0
- data/docs/RelationshipEventsToOrganisationsApi.md +458 -0
- data/docs/RelationshipFormat.md +16 -0
- data/docs/RelationshipMembershipsApi.md +458 -0
- data/docs/RelationshipOrganisationProjectRelationshipsApi.md +458 -0
- data/docs/RelationshipPropertiesToOrganisationsApi.md +458 -0
- data/docs/RelationshipPropertyActionRelationshipsApi.md +458 -0
- data/docs/RelationshipPropertyDocumentRelationshipsApi.md +458 -0
- data/docs/RelationshipPropertyEventRelationshipsApi.md +458 -0
- data/docs/RelationshipPropertyProjectRelationshipsApi.md +458 -0
- data/docs/RelationshipPropertyUserRelationshipsApi.md +458 -0
- data/docs/RelationshipStakeholderEventsApi.md +458 -0
- data/docs/RelationshipStakeholderProjectRelationshipsApi.md +458 -0
- data/docs/RelationshipStakeholderPropertiesApi.md +458 -0
- data/docs/RelationshipStakeholdersApi.md +458 -0
- data/docs/RelationshipStakeholdersToOrganisationsApi.md +458 -0
- data/docs/RelationshipTeamProjectRelationshipsApi.md +458 -0
- data/docs/RelationshipUserStakeholderRelationshipsApi.md +458 -0
- data/docs/RelationshipUsersApi.md +458 -0
- data/docs/ResetPasswordData.md +19 -0
- data/docs/ResourceModel.md +27 -0
- data/docs/SearchRequest.md +37 -0
- data/docs/SearchResultsFormat.md +16 -0
- data/docs/SecurityControllerReadApi.md +55 -0
- data/docs/Stakeholder.md +99 -0
- data/docs/StakeholderEvent.md +37 -0
- data/docs/StakeholderInteractionsForUserRequest.md +17 -0
- data/docs/StakeholderOrganisation.md +37 -0
- data/docs/StakeholderProperty.md +37 -0
- data/docs/Stakeholders.md +39 -0
- data/docs/Stereotype.md +19 -0
- data/docs/StereotypeOperation.md +19 -0
- data/docs/StereotypeScope.md +16 -0
- data/docs/StorageContentType.md +16 -0
- data/docs/Team.md +41 -0
- data/docs/Teams.md +35 -0
- data/docs/TotalActiveEntityCountsRequest.md +17 -0
- data/docs/UncategorisedEmailCountRequest.md +17 -0
- data/docs/User.md +61 -0
- data/docs/UserStakeholderRelationship.md +35 -0
- data/docs/Users.md +39 -0
- data/docs/ValidatorDefinition.md +17 -0
- data/docs/Visibility.md +16 -0
- data/generate_gem.sh +2 -0
- data/git_push.sh +58 -0
- data/lib/cmv4-openapi-client/api/entity_actions_api.rb +654 -0
- data/lib/cmv4-openapi-client/api/entity_correspondence_api.rb +654 -0
- data/lib/cmv4-openapi-client/api/entity_documents_api.rb +654 -0
- data/lib/cmv4-openapi-client/api/entity_events_api.rb +654 -0
- data/lib/cmv4-openapi-client/api/entity_organisations_api.rb +654 -0
- data/lib/cmv4-openapi-client/api/entity_projects_api.rb +654 -0
- data/lib/cmv4-openapi-client/api/entity_properties_api.rb +654 -0
- data/lib/cmv4-openapi-client/api/entity_stakeholders_api.rb +654 -0
- data/lib/cmv4-openapi-client/api/entity_teams_api.rb +654 -0
- data/lib/cmv4-openapi-client/api/entity_users_api.rb +654 -0
- data/lib/cmv4-openapi-client/api/general_available_projects_api.rb +78 -0
- data/lib/cmv4-openapi-client/api/general_classifications_api.rb +728 -0
- data/lib/cmv4-openapi-client/api/general_definition_api.rb +312 -0
- data/lib/cmv4-openapi-client/api/general_diff_api.rb +92 -0
- data/lib/cmv4-openapi-client/api/general_features_api.rb +134 -0
- data/lib/cmv4-openapi-client/api/general_history_search_api.rb +86 -0
- data/lib/cmv4-openapi-client/api/general_organisational_settings_api.rb +80 -0
- data/lib/cmv4-openapi-client/api/general_query_api.rb +86 -0
- data/lib/cmv4-openapi-client/api/general_search_api.rb +150 -0
- data/lib/cmv4-openapi-client/api/general_security_api.rb +483 -0
- data/lib/cmv4-openapi-client/api/general_storage_api.rb +156 -0
- data/lib/cmv4-openapi-client/api/relationship_action_document_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_action_project_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_affected_stakeholder_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_assigned_byactions_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_assigned_toactions_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_correspondence_project_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_document_project_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_document_stakeholder_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_document_user_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_event_action_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_event_document_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_event_project_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_event_user_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_events_to_organisations_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_memberships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_organisation_project_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_properties_to_organisations_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_property_action_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_property_document_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_property_event_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_property_project_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_property_user_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_stakeholder_events_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_stakeholder_project_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_stakeholder_properties_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_stakeholders_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_stakeholders_to_organisations_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_team_project_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_user_stakeholder_relationships_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/relationship_users_api.rb +522 -0
- data/lib/cmv4-openapi-client/api/security_controller_read_api.rb +84 -0
- data/lib/cmv4-openapi-client/api_client.rb +392 -0
- data/lib/cmv4-openapi-client/api_error.rb +57 -0
- data/lib/cmv4-openapi-client/configuration.rb +256 -0
- data/lib/cmv4-openapi-client/models/action.rb +388 -0
- data/lib/cmv4-openapi-client/models/action_calendar_request.rb +218 -0
- data/lib/cmv4-openapi-client/models/action_document_relationship.rb +289 -0
- data/lib/cmv4-openapi-client/models/actions.rb +289 -0
- data/lib/cmv4-openapi-client/models/address_model.rb +267 -0
- data/lib/cmv4-openapi-client/models/affected_stakeholder_relationship.rb +289 -0
- data/lib/cmv4-openapi-client/models/aggregate_growth_counts_request.rb +209 -0
- data/lib/cmv4-openapi-client/models/assigned_by.rb +289 -0
- data/lib/cmv4-openapi-client/models/assigned_to.rb +289 -0
- data/lib/cmv4-openapi-client/models/change.rb +227 -0
- data/lib/cmv4-openapi-client/models/change_log.rb +219 -0
- data/lib/cmv4-openapi-client/models/channel_message_notification_type.rb +42 -0
- data/lib/cmv4-openapi-client/models/claim.rb +217 -0
- data/lib/cmv4-openapi-client/models/classification.rb +245 -0
- data/lib/cmv4-openapi-client/models/classification_model.rb +244 -0
- data/lib/cmv4-openapi-client/models/classification_set_model.rb +209 -0
- data/lib/cmv4-openapi-client/models/classification_statistics_request.rb +229 -0
- data/lib/cmv4-openapi-client/models/classification_view_model.rb +280 -0
- data/lib/cmv4-openapi-client/models/classification_view_model_all_of.rb +224 -0
- data/lib/cmv4-openapi-client/models/completion_request.rb +207 -0
- data/lib/cmv4-openapi-client/models/concrete_enterprise_definition.rb +221 -0
- data/lib/cmv4-openapi-client/models/correspondence.rb +322 -0
- data/lib/cmv4-openapi-client/models/dictionary_of_object.rb +217 -0
- data/lib/cmv4-openapi-client/models/document.rb +342 -0
- data/lib/cmv4-openapi-client/models/document_stakeholder_relationship.rb +289 -0
- data/lib/cmv4-openapi-client/models/document_user_relationship.rb +289 -0
- data/lib/cmv4-openapi-client/models/documents.rb +289 -0
- data/lib/cmv4-openapi-client/models/domain_object_definition_base.rb +308 -0
- data/lib/cmv4-openapi-client/models/domain_object_definition_base_all_of.rb +206 -0
- data/lib/cmv4-openapi-client/models/domain_object_nature.rb +36 -0
- data/lib/cmv4-openapi-client/models/domain_object_permissions.rb +230 -0
- data/lib/cmv4-openapi-client/models/domain_object_types.rb +36 -0
- data/lib/cmv4-openapi-client/models/ensure_classification_command_data.rb +207 -0
- data/lib/cmv4-openapi-client/models/ensure_classification_command_data_values.rb +247 -0
- data/lib/cmv4-openapi-client/models/ensure_entity_instance_command_data.rb +229 -0
- data/lib/cmv4-openapi-client/models/ensure_project_command_data.rb +219 -0
- data/lib/cmv4-openapi-client/models/ensure_relationship_instance_command_data.rb +231 -0
- data/lib/cmv4-openapi-client/models/ensure_team_command_data.rb +229 -0
- data/lib/cmv4-openapi-client/models/ensure_user_command_data.rb +238 -0
- data/lib/cmv4-openapi-client/models/enterprise_configuration.rb +255 -0
- data/lib/cmv4-openapi-client/models/enterprise_configuration_modified.rb +247 -0
- data/lib/cmv4-openapi-client/models/entity_definition.rb +326 -0
- data/lib/cmv4-openapi-client/models/entity_definition_all_of.rb +224 -0
- data/lib/cmv4-openapi-client/models/event.rb +498 -0
- data/lib/cmv4-openapi-client/models/event_action_relationship.rb +289 -0
- data/lib/cmv4-openapi-client/models/event_document_relationship.rb +289 -0
- data/lib/cmv4-openapi-client/models/event_organisation.rb +289 -0
- data/lib/cmv4-openapi-client/models/event_user_relationship.rb +289 -0
- data/lib/cmv4-openapi-client/models/events.rb +289 -0
- data/lib/cmv4-openapi-client/models/field_access_level.rb +38 -0
- data/lib/cmv4-openapi-client/models/field_nature.rb +37 -0
- data/lib/cmv4-openapi-client/models/field_security.rb +216 -0
- data/lib/cmv4-openapi-client/models/field_type.rb +52 -0
- data/lib/cmv4-openapi-client/models/filtered_reports_request.rb +249 -0
- data/lib/cmv4-openapi-client/models/forgot_password_data.rb +207 -0
- data/lib/cmv4-openapi-client/models/grant_team_membership_command_data.rb +216 -0
- data/lib/cmv4-openapi-client/models/i_entity_definition.rb +206 -0
- data/lib/cmv4-openapi-client/models/i_enumerable_of_project_of_object.rb +228 -0
- data/lib/cmv4-openapi-client/models/i_identity_reference.rb +227 -0
- data/lib/cmv4-openapi-client/models/i_knowledge_base_data_object_definition.rb +239 -0
- data/lib/cmv4-openapi-client/models/i_knowledge_base_field_definition.rb +308 -0
- data/lib/cmv4-openapi-client/models/i_knowledge_base_object_definition_feature.rb +216 -0
- data/lib/cmv4-openapi-client/models/i_modifier.rb +207 -0
- data/lib/cmv4-openapi-client/models/i_read_only_knowledge_base_object_definition.rb +312 -0
- data/lib/cmv4-openapi-client/models/i_relationship_definition.rb +236 -0
- data/lib/cmv4-openapi-client/models/i_security_constraint.rb +207 -0
- data/lib/cmv4-openapi-client/models/i_system_policy.rb +216 -0
- data/lib/cmv4-openapi-client/models/i_upload_token.rb +217 -0
- data/lib/cmv4-openapi-client/models/identity_model.rb +247 -0
- data/lib/cmv4-openapi-client/models/knowledge_base_object_definition_base.rb +291 -0
- data/lib/cmv4-openapi-client/models/knowledge_base_object_types.rb +37 -0
- data/lib/cmv4-openapi-client/models/license_policies.rb +37 -0
- data/lib/cmv4-openapi-client/models/location_model.rb +215 -0
- data/lib/cmv4-openapi-client/models/measures.rb +35 -0
- data/lib/cmv4-openapi-client/models/membership.rb +298 -0
- data/lib/cmv4-openapi-client/models/merge_entity_instances_command_data.rb +209 -0
- data/lib/cmv4-openapi-client/models/modify_data.rb +216 -0
- data/lib/cmv4-openapi-client/models/notification.rb +217 -0
- data/lib/cmv4-openapi-client/models/organisation.rb +471 -0
- data/lib/cmv4-openapi-client/models/organisations.rb +289 -0
- data/lib/cmv4-openapi-client/models/outstanding_actions_by_user_counts_request.rb +218 -0
- data/lib/cmv4-openapi-client/models/project.rb +226 -0
- data/lib/cmv4-openapi-client/models/project2.rb +375 -0
- data/lib/cmv4-openapi-client/models/project_modified.rb +228 -0
- data/lib/cmv4-openapi-client/models/project_operation.rb +221 -0
- data/lib/cmv4-openapi-client/models/properties.rb +289 -0
- data/lib/cmv4-openapi-client/models/property.rb +434 -0
- data/lib/cmv4-openapi-client/models/property_action_relationship.rb +289 -0
- data/lib/cmv4-openapi-client/models/property_document_relationship.rb +289 -0
- data/lib/cmv4-openapi-client/models/property_event_relationship.rb +289 -0
- data/lib/cmv4-openapi-client/models/property_organisation.rb +289 -0
- data/lib/cmv4-openapi-client/models/property_user_relationship.rb +289 -0
- data/lib/cmv4-openapi-client/models/query_request.rb +242 -0
- data/lib/cmv4-openapi-client/models/reassign_classification_command_data.rb +206 -0
- data/lib/cmv4-openapi-client/models/related_value.rb +216 -0
- data/lib/cmv4-openapi-client/models/relationship_definition.rb +347 -0
- data/lib/cmv4-openapi-client/models/relationship_definition_all_of.rb +245 -0
- data/lib/cmv4-openapi-client/models/relationship_format.rb +39 -0
- data/lib/cmv4-openapi-client/models/reset_password_data.rb +217 -0
- data/lib/cmv4-openapi-client/models/resource_model.rb +255 -0
- data/lib/cmv4-openapi-client/models/search_request.rb +313 -0
- data/lib/cmv4-openapi-client/models/search_results_format.rb +39 -0
- data/lib/cmv4-openapi-client/models/stakeholder.rb +607 -0
- data/lib/cmv4-openapi-client/models/stakeholder_event.rb +299 -0
- data/lib/cmv4-openapi-client/models/stakeholder_interactions_for_user_request.rb +209 -0
- data/lib/cmv4-openapi-client/models/stakeholder_organisation.rb +299 -0
- data/lib/cmv4-openapi-client/models/stakeholder_property.rb +299 -0
- data/lib/cmv4-openapi-client/models/stakeholders.rb +309 -0
- data/lib/cmv4-openapi-client/models/stereotype.rb +217 -0
- data/lib/cmv4-openapi-client/models/stereotype_operation.rb +221 -0
- data/lib/cmv4-openapi-client/models/stereotype_scope.rb +37 -0
- data/lib/cmv4-openapi-client/models/storage_content_type.rb +40 -0
- data/lib/cmv4-openapi-client/models/team.rb +322 -0
- data/lib/cmv4-openapi-client/models/teams.rb +289 -0
- data/lib/cmv4-openapi-client/models/total_active_entity_counts_request.rb +209 -0
- data/lib/cmv4-openapi-client/models/uncategorised_email_count_request.rb +209 -0
- data/lib/cmv4-openapi-client/models/user.rb +419 -0
- data/lib/cmv4-openapi-client/models/user_stakeholder_relationship.rb +289 -0
- data/lib/cmv4-openapi-client/models/users.rb +309 -0
- data/lib/cmv4-openapi-client/models/validator_definition.rb +207 -0
- data/lib/cmv4-openapi-client/models/visibility.rb +37 -0
- data/lib/cmv4-openapi-client/version.rb +15 -0
- data/lib/cmv4-openapi-client.rb +212 -0
- data/spec/api/entity_actions_api_spec.rb +157 -0
- data/spec/api/entity_correspondence_api_spec.rb +157 -0
- data/spec/api/entity_documents_api_spec.rb +157 -0
- data/spec/api/entity_events_api_spec.rb +157 -0
- data/spec/api/entity_organisations_api_spec.rb +157 -0
- data/spec/api/entity_projects_api_spec.rb +157 -0
- data/spec/api/entity_properties_api_spec.rb +157 -0
- data/spec/api/entity_stakeholders_api_spec.rb +157 -0
- data/spec/api/entity_teams_api_spec.rb +157 -0
- data/spec/api/entity_users_api_spec.rb +157 -0
- data/spec/api/general_available_projects_api_spec.rb +46 -0
- data/spec/api/general_classifications_api_spec.rb +172 -0
- data/spec/api/general_definition_api_spec.rb +93 -0
- data/spec/api/general_diff_api_spec.rb +50 -0
- data/spec/api/general_features_api_spec.rb +57 -0
- data/spec/api/general_history_search_api_spec.rb +47 -0
- data/spec/api/general_organisational_settings_api_spec.rb +47 -0
- data/spec/api/general_query_api_spec.rb +47 -0
- data/spec/api/general_search_api_spec.rb +59 -0
- data/spec/api/general_security_api_spec.rb +125 -0
- data/spec/api/general_storage_api_spec.rb +62 -0
- data/spec/api/relationship_action_document_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_action_project_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_affected_stakeholder_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_assigned_byactions_api_spec.rb +132 -0
- data/spec/api/relationship_assigned_toactions_api_spec.rb +132 -0
- data/spec/api/relationship_correspondence_project_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_document_project_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_document_stakeholder_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_document_user_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_event_action_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_event_document_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_event_project_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_event_user_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_events_to_organisations_api_spec.rb +132 -0
- data/spec/api/relationship_memberships_api_spec.rb +132 -0
- data/spec/api/relationship_organisation_project_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_properties_to_organisations_api_spec.rb +132 -0
- data/spec/api/relationship_property_action_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_property_document_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_property_event_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_property_project_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_property_user_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_stakeholder_events_api_spec.rb +132 -0
- data/spec/api/relationship_stakeholder_project_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_stakeholder_properties_api_spec.rb +132 -0
- data/spec/api/relationship_stakeholders_api_spec.rb +132 -0
- data/spec/api/relationship_stakeholders_to_organisations_api_spec.rb +132 -0
- data/spec/api/relationship_team_project_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_user_stakeholder_relationships_api_spec.rb +132 -0
- data/spec/api/relationship_users_api_spec.rb +132 -0
- data/spec/api/security_controller_read_api_spec.rb +46 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/action_calendar_request_spec.rb +47 -0
- data/spec/models/action_document_relationship_spec.rb +95 -0
- data/spec/models/action_spec.rb +155 -0
- data/spec/models/actions_spec.rb +95 -0
- data/spec/models/address_model_spec.rb +77 -0
- data/spec/models/affected_stakeholder_relationship_spec.rb +95 -0
- data/spec/models/aggregate_growth_counts_request_spec.rb +41 -0
- data/spec/models/assigned_by_spec.rb +95 -0
- data/spec/models/assigned_to_spec.rb +95 -0
- data/spec/models/change_log_spec.rb +47 -0
- data/spec/models/change_spec.rb +53 -0
- data/spec/models/channel_message_notification_type_spec.rb +35 -0
- data/spec/models/claim_spec.rb +47 -0
- data/spec/models/classification_model_spec.rb +65 -0
- data/spec/models/classification_set_model_spec.rb +41 -0
- data/spec/models/classification_spec.rb +65 -0
- data/spec/models/classification_statistics_request_spec.rb +53 -0
- data/spec/models/classification_view_model_all_of_spec.rb +53 -0
- data/spec/models/classification_view_model_spec.rb +83 -0
- data/spec/models/completion_request_spec.rb +41 -0
- data/spec/models/concrete_enterprise_definition_spec.rb +47 -0
- data/spec/models/correspondence_spec.rb +113 -0
- data/spec/models/dictionary_of_object_spec.rb +47 -0
- data/spec/models/document_spec.rb +125 -0
- data/spec/models/document_stakeholder_relationship_spec.rb +95 -0
- data/spec/models/document_user_relationship_spec.rb +95 -0
- data/spec/models/documents_spec.rb +95 -0
- data/spec/models/domain_object_definition_base_all_of_spec.rb +41 -0
- data/spec/models/domain_object_definition_base_spec.rb +95 -0
- data/spec/models/domain_object_nature_spec.rb +35 -0
- data/spec/models/domain_object_permissions_spec.rb +53 -0
- data/spec/models/domain_object_types_spec.rb +35 -0
- data/spec/models/ensure_classification_command_data_spec.rb +41 -0
- data/spec/models/ensure_classification_command_data_values_spec.rb +65 -0
- data/spec/models/ensure_entity_instance_command_data_spec.rb +53 -0
- data/spec/models/ensure_project_command_data_spec.rb +47 -0
- data/spec/models/ensure_relationship_instance_command_data_spec.rb +53 -0
- data/spec/models/ensure_team_command_data_spec.rb +53 -0
- data/spec/models/ensure_user_command_data_spec.rb +59 -0
- data/spec/models/enterprise_configuration_modified_spec.rb +65 -0
- data/spec/models/enterprise_configuration_spec.rb +65 -0
- data/spec/models/entity_definition_all_of_spec.rb +53 -0
- data/spec/models/entity_definition_spec.rb +107 -0
- data/spec/models/event_action_relationship_spec.rb +95 -0
- data/spec/models/event_document_relationship_spec.rb +95 -0
- data/spec/models/event_organisation_spec.rb +95 -0
- data/spec/models/event_spec.rb +215 -0
- data/spec/models/event_user_relationship_spec.rb +95 -0
- data/spec/models/events_spec.rb +95 -0
- data/spec/models/field_access_level_spec.rb +35 -0
- data/spec/models/field_nature_spec.rb +35 -0
- data/spec/models/field_security_spec.rb +47 -0
- data/spec/models/field_type_spec.rb +35 -0
- data/spec/models/filtered_reports_request_spec.rb +65 -0
- data/spec/models/forgot_password_data_spec.rb +41 -0
- data/spec/models/grant_team_membership_command_data_spec.rb +47 -0
- data/spec/models/i_entity_definition_spec.rb +41 -0
- data/spec/models/i_enumerable_of_project_of_object_spec.rb +53 -0
- data/spec/models/i_identity_reference_spec.rb +53 -0
- data/spec/models/i_knowledge_base_data_object_definition_spec.rb +59 -0
- data/spec/models/i_knowledge_base_field_definition_spec.rb +101 -0
- data/spec/models/i_knowledge_base_object_definition_feature_spec.rb +47 -0
- data/spec/models/i_modifier_spec.rb +41 -0
- data/spec/models/i_read_only_knowledge_base_object_definition_spec.rb +101 -0
- data/spec/models/i_relationship_definition_spec.rb +59 -0
- data/spec/models/i_security_constraint_spec.rb +41 -0
- data/spec/models/i_system_policy_spec.rb +47 -0
- data/spec/models/i_upload_token_spec.rb +47 -0
- data/spec/models/identity_model_spec.rb +65 -0
- data/spec/models/knowledge_base_object_definition_base_spec.rb +89 -0
- data/spec/models/knowledge_base_object_types_spec.rb +35 -0
- data/spec/models/license_policies_spec.rb +35 -0
- data/spec/models/location_model_spec.rb +47 -0
- data/spec/models/measures_spec.rb +35 -0
- data/spec/models/membership_spec.rb +101 -0
- data/spec/models/merge_entity_instances_command_data_spec.rb +41 -0
- data/spec/models/modify_data_spec.rb +47 -0
- data/spec/models/notification_spec.rb +47 -0
- data/spec/models/organisation_spec.rb +203 -0
- data/spec/models/organisations_spec.rb +95 -0
- data/spec/models/outstanding_actions_by_user_counts_request_spec.rb +47 -0
- data/spec/models/project2_spec.rb +149 -0
- data/spec/models/project_modified_spec.rb +53 -0
- data/spec/models/project_operation_spec.rb +47 -0
- data/spec/models/project_spec.rb +53 -0
- data/spec/models/properties_spec.rb +95 -0
- data/spec/models/property_action_relationship_spec.rb +95 -0
- data/spec/models/property_document_relationship_spec.rb +95 -0
- data/spec/models/property_event_relationship_spec.rb +95 -0
- data/spec/models/property_organisation_spec.rb +95 -0
- data/spec/models/property_spec.rb +179 -0
- data/spec/models/property_user_relationship_spec.rb +95 -0
- data/spec/models/query_request_spec.rb +59 -0
- data/spec/models/reassign_classification_command_data_spec.rb +41 -0
- data/spec/models/related_value_spec.rb +47 -0
- data/spec/models/relationship_definition_all_of_spec.rb +65 -0
- data/spec/models/relationship_definition_spec.rb +119 -0
- data/spec/models/relationship_format_spec.rb +35 -0
- data/spec/models/reset_password_data_spec.rb +47 -0
- data/spec/models/resource_model_spec.rb +71 -0
- data/spec/models/search_request_spec.rb +101 -0
- data/spec/models/search_results_format_spec.rb +35 -0
- data/spec/models/stakeholder_event_spec.rb +101 -0
- data/spec/models/stakeholder_interactions_for_user_request_spec.rb +41 -0
- data/spec/models/stakeholder_organisation_spec.rb +101 -0
- data/spec/models/stakeholder_property_spec.rb +101 -0
- data/spec/models/stakeholder_spec.rb +287 -0
- data/spec/models/stakeholders_spec.rb +107 -0
- data/spec/models/stereotype_operation_spec.rb +47 -0
- data/spec/models/stereotype_scope_spec.rb +35 -0
- data/spec/models/stereotype_spec.rb +47 -0
- data/spec/models/storage_content_type_spec.rb +35 -0
- data/spec/models/team_spec.rb +113 -0
- data/spec/models/teams_spec.rb +95 -0
- data/spec/models/total_active_entity_counts_request_spec.rb +41 -0
- data/spec/models/uncategorised_email_count_request_spec.rb +41 -0
- data/spec/models/user_spec.rb +173 -0
- data/spec/models/user_stakeholder_relationship_spec.rb +95 -0
- data/spec/models/users_spec.rb +107 -0
- data/spec/models/validator_definition_spec.rb +41 -0
- data/spec/models/visibility_spec.rb +35 -0
- data/spec/spec_helper.rb +111 -0
- data/test/client_test.rb +163 -0
- data/test/run_client_test.sh +2 -0
- metadata +819 -0
@@ -0,0 +1,483 @@
|
|
1
|
+
=begin
|
2
|
+
#Consultation Manager REST API
|
3
|
+
|
4
|
+
#The REST API for the Consultation Manager application
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module CMV4APIClient
|
16
|
+
class GeneralSecurityApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Get Entity Security
|
23
|
+
# Gets the permissions for the logged in user on the requested entities
|
24
|
+
# @param _alias [String]
|
25
|
+
# @param instance_id [Integer]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [DomainObjectPermissions]
|
28
|
+
def security_controller_read_get_security_for_entity(_alias, instance_id, opts = {})
|
29
|
+
data, _status_code, _headers = security_controller_read_get_security_for_entity_with_http_info(_alias, instance_id, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Get Entity Security
|
34
|
+
# Gets the permissions for the logged in user on the requested entities
|
35
|
+
# @param _alias [String]
|
36
|
+
# @param instance_id [Integer]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(DomainObjectPermissions, Integer, Hash)>] DomainObjectPermissions data, response status code and response headers
|
39
|
+
def security_controller_read_get_security_for_entity_with_http_info(_alias, instance_id, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: GeneralSecurityApi.security_controller_read_get_security_for_entity ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'instance_id' is set
|
44
|
+
if @api_client.config.client_side_validation && instance_id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'instance_id' when calling GeneralSecurityApi.security_controller_read_get_security_for_entity"
|
46
|
+
end
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/security/entity/{alias}/{instanceId}'.sub('{' + 'alias' + '}', CGI.escape(_alias.to_s)).sub('{' + 'instanceId' + '}', CGI.escape(instance_id.to_s))
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = opts[:query_params] || {}
|
52
|
+
|
53
|
+
# header parameters
|
54
|
+
header_params = opts[:header_params] || {}
|
55
|
+
# HTTP header 'Accept' (if needed)
|
56
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body]
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'DomainObjectPermissions'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || []
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: GeneralSecurityApi#security_controller_read_get_security_for_entity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Get Relationship Security
|
87
|
+
# Gets the permissions for the logged in user on the request relationship
|
88
|
+
# @param _alias [String]
|
89
|
+
# @param instance_id [Integer]
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @return [DomainObjectPermissions]
|
92
|
+
def security_controller_read_get_security_for_relationship(_alias, instance_id, opts = {})
|
93
|
+
data, _status_code, _headers = security_controller_read_get_security_for_relationship_with_http_info(_alias, instance_id, opts)
|
94
|
+
data
|
95
|
+
end
|
96
|
+
|
97
|
+
# Get Relationship Security
|
98
|
+
# Gets the permissions for the logged in user on the request relationship
|
99
|
+
# @param _alias [String]
|
100
|
+
# @param instance_id [Integer]
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [Array<(DomainObjectPermissions, Integer, Hash)>] DomainObjectPermissions data, response status code and response headers
|
103
|
+
def security_controller_read_get_security_for_relationship_with_http_info(_alias, instance_id, opts = {})
|
104
|
+
if @api_client.config.debugging
|
105
|
+
@api_client.config.logger.debug 'Calling API: GeneralSecurityApi.security_controller_read_get_security_for_relationship ...'
|
106
|
+
end
|
107
|
+
# verify the required parameter 'instance_id' is set
|
108
|
+
if @api_client.config.client_side_validation && instance_id.nil?
|
109
|
+
fail ArgumentError, "Missing the required parameter 'instance_id' when calling GeneralSecurityApi.security_controller_read_get_security_for_relationship"
|
110
|
+
end
|
111
|
+
# resource path
|
112
|
+
local_var_path = '/security/relationship/{alias}/{instanceId}'.sub('{' + 'alias' + '}', CGI.escape(_alias.to_s)).sub('{' + 'instanceId' + '}', CGI.escape(instance_id.to_s))
|
113
|
+
|
114
|
+
# query parameters
|
115
|
+
query_params = opts[:query_params] || {}
|
116
|
+
|
117
|
+
# header parameters
|
118
|
+
header_params = opts[:header_params] || {}
|
119
|
+
# HTTP header 'Accept' (if needed)
|
120
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
|
+
|
122
|
+
# form parameters
|
123
|
+
form_params = opts[:form_params] || {}
|
124
|
+
|
125
|
+
# http body (model)
|
126
|
+
post_body = opts[:body]
|
127
|
+
|
128
|
+
# return_type
|
129
|
+
return_type = opts[:return_type] || 'DomainObjectPermissions'
|
130
|
+
|
131
|
+
# auth_names
|
132
|
+
auth_names = opts[:auth_names] || []
|
133
|
+
|
134
|
+
new_options = opts.merge(
|
135
|
+
:header_params => header_params,
|
136
|
+
:query_params => query_params,
|
137
|
+
:form_params => form_params,
|
138
|
+
:body => post_body,
|
139
|
+
:auth_names => auth_names,
|
140
|
+
:return_type => return_type
|
141
|
+
)
|
142
|
+
|
143
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
144
|
+
if @api_client.config.debugging
|
145
|
+
@api_client.config.logger.debug "API called: GeneralSecurityApi#security_controller_read_get_security_for_relationship\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
146
|
+
end
|
147
|
+
return data, status_code, headers
|
148
|
+
end
|
149
|
+
|
150
|
+
# Get User Stereotypes
|
151
|
+
# Gets stereotypes for either the passed or logged in user
|
152
|
+
# @param [Hash] opts the optional parameters
|
153
|
+
# @option opts [Integer] :user_id
|
154
|
+
# @return [Array<Stereotype>]
|
155
|
+
def security_controller_read_get_stereotypes_for_user(opts = {})
|
156
|
+
data, _status_code, _headers = security_controller_read_get_stereotypes_for_user_with_http_info(opts)
|
157
|
+
data
|
158
|
+
end
|
159
|
+
|
160
|
+
# Get User Stereotypes
|
161
|
+
# Gets stereotypes for either the passed or logged in user
|
162
|
+
# @param [Hash] opts the optional parameters
|
163
|
+
# @option opts [Integer] :user_id
|
164
|
+
# @return [Array<(Array<Stereotype>, Integer, Hash)>] Array<Stereotype> data, response status code and response headers
|
165
|
+
def security_controller_read_get_stereotypes_for_user_with_http_info(opts = {})
|
166
|
+
if @api_client.config.debugging
|
167
|
+
@api_client.config.logger.debug 'Calling API: GeneralSecurityApi.security_controller_read_get_stereotypes_for_user ...'
|
168
|
+
end
|
169
|
+
# resource path
|
170
|
+
local_var_path = '/security/user/stereotypes'
|
171
|
+
|
172
|
+
# query parameters
|
173
|
+
query_params = opts[:query_params] || {}
|
174
|
+
query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
175
|
+
|
176
|
+
# header parameters
|
177
|
+
header_params = opts[:header_params] || {}
|
178
|
+
# HTTP header 'Accept' (if needed)
|
179
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
180
|
+
|
181
|
+
# form parameters
|
182
|
+
form_params = opts[:form_params] || {}
|
183
|
+
|
184
|
+
# http body (model)
|
185
|
+
post_body = opts[:body]
|
186
|
+
|
187
|
+
# return_type
|
188
|
+
return_type = opts[:return_type] || 'Array<Stereotype>'
|
189
|
+
|
190
|
+
# auth_names
|
191
|
+
auth_names = opts[:auth_names] || []
|
192
|
+
|
193
|
+
new_options = opts.merge(
|
194
|
+
:header_params => header_params,
|
195
|
+
:query_params => query_params,
|
196
|
+
:form_params => form_params,
|
197
|
+
:body => post_body,
|
198
|
+
:auth_names => auth_names,
|
199
|
+
:return_type => return_type
|
200
|
+
)
|
201
|
+
|
202
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
203
|
+
if @api_client.config.debugging
|
204
|
+
@api_client.config.logger.debug "API called: GeneralSecurityApi#security_controller_read_get_stereotypes_for_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
205
|
+
end
|
206
|
+
return data, status_code, headers
|
207
|
+
end
|
208
|
+
|
209
|
+
# Assign a team to a project
|
210
|
+
# Creates an association between the team and project.
|
211
|
+
# @param team_id [Integer]
|
212
|
+
# @param project_id [Integer]
|
213
|
+
# @param [Hash] opts the optional parameters
|
214
|
+
# @return [File]
|
215
|
+
def security_controller_write_assign_team_to_project(team_id, project_id, opts = {})
|
216
|
+
data, _status_code, _headers = security_controller_write_assign_team_to_project_with_http_info(team_id, project_id, opts)
|
217
|
+
data
|
218
|
+
end
|
219
|
+
|
220
|
+
# Assign a team to a project
|
221
|
+
# Creates an association between the team and project.
|
222
|
+
# @param team_id [Integer]
|
223
|
+
# @param project_id [Integer]
|
224
|
+
# @param [Hash] opts the optional parameters
|
225
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
226
|
+
def security_controller_write_assign_team_to_project_with_http_info(team_id, project_id, opts = {})
|
227
|
+
if @api_client.config.debugging
|
228
|
+
@api_client.config.logger.debug 'Calling API: GeneralSecurityApi.security_controller_write_assign_team_to_project ...'
|
229
|
+
end
|
230
|
+
# verify the required parameter 'team_id' is set
|
231
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
232
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling GeneralSecurityApi.security_controller_write_assign_team_to_project"
|
233
|
+
end
|
234
|
+
# verify the required parameter 'project_id' is set
|
235
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
236
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling GeneralSecurityApi.security_controller_write_assign_team_to_project"
|
237
|
+
end
|
238
|
+
# resource path
|
239
|
+
local_var_path = '/security/{teamId}/{projectId}/assignteamtoproject'.sub('{' + 'teamId' + '}', CGI.escape(team_id.to_s)).sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
240
|
+
|
241
|
+
# query parameters
|
242
|
+
query_params = opts[:query_params] || {}
|
243
|
+
|
244
|
+
# header parameters
|
245
|
+
header_params = opts[:header_params] || {}
|
246
|
+
# HTTP header 'Accept' (if needed)
|
247
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
248
|
+
|
249
|
+
# form parameters
|
250
|
+
form_params = opts[:form_params] || {}
|
251
|
+
|
252
|
+
# http body (model)
|
253
|
+
post_body = opts[:body]
|
254
|
+
|
255
|
+
# return_type
|
256
|
+
return_type = opts[:return_type] || 'File'
|
257
|
+
|
258
|
+
# auth_names
|
259
|
+
auth_names = opts[:auth_names] || []
|
260
|
+
|
261
|
+
new_options = opts.merge(
|
262
|
+
:header_params => header_params,
|
263
|
+
:query_params => query_params,
|
264
|
+
:form_params => form_params,
|
265
|
+
:body => post_body,
|
266
|
+
:auth_names => auth_names,
|
267
|
+
:return_type => return_type
|
268
|
+
)
|
269
|
+
|
270
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
271
|
+
if @api_client.config.debugging
|
272
|
+
@api_client.config.logger.debug "API called: GeneralSecurityApi#security_controller_write_assign_team_to_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
273
|
+
end
|
274
|
+
return data, status_code, headers
|
275
|
+
end
|
276
|
+
|
277
|
+
# Assign a user to a team
|
278
|
+
# Creates an association between the user and team.
|
279
|
+
# @param team_id [Integer]
|
280
|
+
# @param grant_team_membership_command_data [GrantTeamMembershipCommandData]
|
281
|
+
# @param [Hash] opts the optional parameters
|
282
|
+
# @return [File]
|
283
|
+
def security_controller_write_assign_user_to_team(team_id, grant_team_membership_command_data, opts = {})
|
284
|
+
data, _status_code, _headers = security_controller_write_assign_user_to_team_with_http_info(team_id, grant_team_membership_command_data, opts)
|
285
|
+
data
|
286
|
+
end
|
287
|
+
|
288
|
+
# Assign a user to a team
|
289
|
+
# Creates an association between the user and team.
|
290
|
+
# @param team_id [Integer]
|
291
|
+
# @param grant_team_membership_command_data [GrantTeamMembershipCommandData]
|
292
|
+
# @param [Hash] opts the optional parameters
|
293
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
294
|
+
def security_controller_write_assign_user_to_team_with_http_info(team_id, grant_team_membership_command_data, opts = {})
|
295
|
+
if @api_client.config.debugging
|
296
|
+
@api_client.config.logger.debug 'Calling API: GeneralSecurityApi.security_controller_write_assign_user_to_team ...'
|
297
|
+
end
|
298
|
+
# verify the required parameter 'team_id' is set
|
299
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
300
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling GeneralSecurityApi.security_controller_write_assign_user_to_team"
|
301
|
+
end
|
302
|
+
# verify the required parameter 'grant_team_membership_command_data' is set
|
303
|
+
if @api_client.config.client_side_validation && grant_team_membership_command_data.nil?
|
304
|
+
fail ArgumentError, "Missing the required parameter 'grant_team_membership_command_data' when calling GeneralSecurityApi.security_controller_write_assign_user_to_team"
|
305
|
+
end
|
306
|
+
# resource path
|
307
|
+
local_var_path = '/security/{teamId}/assignusertoteam'.sub('{' + 'teamId' + '}', CGI.escape(team_id.to_s))
|
308
|
+
|
309
|
+
# query parameters
|
310
|
+
query_params = opts[:query_params] || {}
|
311
|
+
|
312
|
+
# header parameters
|
313
|
+
header_params = opts[:header_params] || {}
|
314
|
+
# HTTP header 'Accept' (if needed)
|
315
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
316
|
+
# HTTP header 'Content-Type'
|
317
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
318
|
+
|
319
|
+
# form parameters
|
320
|
+
form_params = opts[:form_params] || {}
|
321
|
+
|
322
|
+
# http body (model)
|
323
|
+
post_body = opts[:body] || @api_client.object_to_http_body(grant_team_membership_command_data)
|
324
|
+
|
325
|
+
# return_type
|
326
|
+
return_type = opts[:return_type] || 'File'
|
327
|
+
|
328
|
+
# auth_names
|
329
|
+
auth_names = opts[:auth_names] || []
|
330
|
+
|
331
|
+
new_options = opts.merge(
|
332
|
+
:header_params => header_params,
|
333
|
+
:query_params => query_params,
|
334
|
+
:form_params => form_params,
|
335
|
+
:body => post_body,
|
336
|
+
:auth_names => auth_names,
|
337
|
+
:return_type => return_type
|
338
|
+
)
|
339
|
+
|
340
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
341
|
+
if @api_client.config.debugging
|
342
|
+
@api_client.config.logger.debug "API called: GeneralSecurityApi#security_controller_write_assign_user_to_team\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
343
|
+
end
|
344
|
+
return data, status_code, headers
|
345
|
+
end
|
346
|
+
|
347
|
+
# Remove Team to Project association
|
348
|
+
# Removes the association between a Team and a Project.
|
349
|
+
# @param team_id [Integer]
|
350
|
+
# @param project_id [Integer]
|
351
|
+
# @param [Hash] opts the optional parameters
|
352
|
+
# @return [File]
|
353
|
+
def security_controller_write_remove_team_from_project(team_id, project_id, opts = {})
|
354
|
+
data, _status_code, _headers = security_controller_write_remove_team_from_project_with_http_info(team_id, project_id, opts)
|
355
|
+
data
|
356
|
+
end
|
357
|
+
|
358
|
+
# Remove Team to Project association
|
359
|
+
# Removes the association between a Team and a Project.
|
360
|
+
# @param team_id [Integer]
|
361
|
+
# @param project_id [Integer]
|
362
|
+
# @param [Hash] opts the optional parameters
|
363
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
364
|
+
def security_controller_write_remove_team_from_project_with_http_info(team_id, project_id, opts = {})
|
365
|
+
if @api_client.config.debugging
|
366
|
+
@api_client.config.logger.debug 'Calling API: GeneralSecurityApi.security_controller_write_remove_team_from_project ...'
|
367
|
+
end
|
368
|
+
# verify the required parameter 'team_id' is set
|
369
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
370
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling GeneralSecurityApi.security_controller_write_remove_team_from_project"
|
371
|
+
end
|
372
|
+
# verify the required parameter 'project_id' is set
|
373
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
374
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling GeneralSecurityApi.security_controller_write_remove_team_from_project"
|
375
|
+
end
|
376
|
+
# resource path
|
377
|
+
local_var_path = '/security/{teamId}/{projectId}/removeteamfromproject'.sub('{' + 'teamId' + '}', CGI.escape(team_id.to_s)).sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
378
|
+
|
379
|
+
# query parameters
|
380
|
+
query_params = opts[:query_params] || {}
|
381
|
+
|
382
|
+
# header parameters
|
383
|
+
header_params = opts[:header_params] || {}
|
384
|
+
# HTTP header 'Accept' (if needed)
|
385
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
386
|
+
|
387
|
+
# form parameters
|
388
|
+
form_params = opts[:form_params] || {}
|
389
|
+
|
390
|
+
# http body (model)
|
391
|
+
post_body = opts[:body]
|
392
|
+
|
393
|
+
# return_type
|
394
|
+
return_type = opts[:return_type] || 'File'
|
395
|
+
|
396
|
+
# auth_names
|
397
|
+
auth_names = opts[:auth_names] || []
|
398
|
+
|
399
|
+
new_options = opts.merge(
|
400
|
+
:header_params => header_params,
|
401
|
+
:query_params => query_params,
|
402
|
+
:form_params => form_params,
|
403
|
+
:body => post_body,
|
404
|
+
:auth_names => auth_names,
|
405
|
+
:return_type => return_type
|
406
|
+
)
|
407
|
+
|
408
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
409
|
+
if @api_client.config.debugging
|
410
|
+
@api_client.config.logger.debug "API called: GeneralSecurityApi#security_controller_write_remove_team_from_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
411
|
+
end
|
412
|
+
return data, status_code, headers
|
413
|
+
end
|
414
|
+
|
415
|
+
# Remove a user from a team
|
416
|
+
# Removes the specified user from the team.
|
417
|
+
# @param team_id [Integer]
|
418
|
+
# @param user_id [Integer]
|
419
|
+
# @param [Hash] opts the optional parameters
|
420
|
+
# @return [File]
|
421
|
+
def security_controller_write_remove_user_from_team(team_id, user_id, opts = {})
|
422
|
+
data, _status_code, _headers = security_controller_write_remove_user_from_team_with_http_info(team_id, user_id, opts)
|
423
|
+
data
|
424
|
+
end
|
425
|
+
|
426
|
+
# Remove a user from a team
|
427
|
+
# Removes the specified user from the team.
|
428
|
+
# @param team_id [Integer]
|
429
|
+
# @param user_id [Integer]
|
430
|
+
# @param [Hash] opts the optional parameters
|
431
|
+
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
432
|
+
def security_controller_write_remove_user_from_team_with_http_info(team_id, user_id, opts = {})
|
433
|
+
if @api_client.config.debugging
|
434
|
+
@api_client.config.logger.debug 'Calling API: GeneralSecurityApi.security_controller_write_remove_user_from_team ...'
|
435
|
+
end
|
436
|
+
# verify the required parameter 'team_id' is set
|
437
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
438
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling GeneralSecurityApi.security_controller_write_remove_user_from_team"
|
439
|
+
end
|
440
|
+
# verify the required parameter 'user_id' is set
|
441
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
442
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling GeneralSecurityApi.security_controller_write_remove_user_from_team"
|
443
|
+
end
|
444
|
+
# resource path
|
445
|
+
local_var_path = '/security/{teamId}/{userId}/removeuserfromteam'.sub('{' + 'teamId' + '}', CGI.escape(team_id.to_s)).sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
|
446
|
+
|
447
|
+
# query parameters
|
448
|
+
query_params = opts[:query_params] || {}
|
449
|
+
|
450
|
+
# header parameters
|
451
|
+
header_params = opts[:header_params] || {}
|
452
|
+
# HTTP header 'Accept' (if needed)
|
453
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
454
|
+
|
455
|
+
# form parameters
|
456
|
+
form_params = opts[:form_params] || {}
|
457
|
+
|
458
|
+
# http body (model)
|
459
|
+
post_body = opts[:body]
|
460
|
+
|
461
|
+
# return_type
|
462
|
+
return_type = opts[:return_type] || 'File'
|
463
|
+
|
464
|
+
# auth_names
|
465
|
+
auth_names = opts[:auth_names] || []
|
466
|
+
|
467
|
+
new_options = opts.merge(
|
468
|
+
:header_params => header_params,
|
469
|
+
:query_params => query_params,
|
470
|
+
:form_params => form_params,
|
471
|
+
:body => post_body,
|
472
|
+
:auth_names => auth_names,
|
473
|
+
:return_type => return_type
|
474
|
+
)
|
475
|
+
|
476
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
477
|
+
if @api_client.config.debugging
|
478
|
+
@api_client.config.logger.debug "API called: GeneralSecurityApi#security_controller_write_remove_user_from_team\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
479
|
+
end
|
480
|
+
return data, status_code, headers
|
481
|
+
end
|
482
|
+
end
|
483
|
+
end
|
@@ -0,0 +1,156 @@
|
|
1
|
+
=begin
|
2
|
+
#Consultation Manager REST API
|
3
|
+
|
4
|
+
#The REST API for the Consultation Manager application
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module CMV4APIClient
|
16
|
+
class GeneralStorageApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Get Download Token
|
23
|
+
# Gets a download token used to download a file
|
24
|
+
# @param content_type [StorageContentType]
|
25
|
+
# @param identifier [String]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [Object]
|
28
|
+
def storage_get_resource_information(content_type, identifier, opts = {})
|
29
|
+
data, _status_code, _headers = storage_get_resource_information_with_http_info(content_type, identifier, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Get Download Token
|
34
|
+
# Gets a download token used to download a file
|
35
|
+
# @param content_type [StorageContentType]
|
36
|
+
# @param identifier [String]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
39
|
+
def storage_get_resource_information_with_http_info(content_type, identifier, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: GeneralStorageApi.storage_get_resource_information ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'content_type' is set
|
44
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling GeneralStorageApi.storage_get_resource_information"
|
46
|
+
end
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/storage/request/download/{contentType}/{identifier}'.sub('{' + 'contentType' + '}', CGI.escape(content_type.to_s)).sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s))
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = opts[:query_params] || {}
|
52
|
+
|
53
|
+
# header parameters
|
54
|
+
header_params = opts[:header_params] || {}
|
55
|
+
# HTTP header 'Accept' (if needed)
|
56
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body]
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'Object'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || []
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: GeneralStorageApi#storage_get_resource_information\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Get Upload Token
|
87
|
+
# Gets an upload token used to upload a file
|
88
|
+
# @param content_type [StorageContentType]
|
89
|
+
# @param filename [String]
|
90
|
+
# @param size [Integer]
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @return [IUploadToken]
|
93
|
+
def storage_get_upload_data(content_type, filename, size, opts = {})
|
94
|
+
data, _status_code, _headers = storage_get_upload_data_with_http_info(content_type, filename, size, opts)
|
95
|
+
data
|
96
|
+
end
|
97
|
+
|
98
|
+
# Get Upload Token
|
99
|
+
# Gets an upload token used to upload a file
|
100
|
+
# @param content_type [StorageContentType]
|
101
|
+
# @param filename [String]
|
102
|
+
# @param size [Integer]
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [Array<(IUploadToken, Integer, Hash)>] IUploadToken data, response status code and response headers
|
105
|
+
def storage_get_upload_data_with_http_info(content_type, filename, size, opts = {})
|
106
|
+
if @api_client.config.debugging
|
107
|
+
@api_client.config.logger.debug 'Calling API: GeneralStorageApi.storage_get_upload_data ...'
|
108
|
+
end
|
109
|
+
# verify the required parameter 'content_type' is set
|
110
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling GeneralStorageApi.storage_get_upload_data"
|
112
|
+
end
|
113
|
+
# verify the required parameter 'size' is set
|
114
|
+
if @api_client.config.client_side_validation && size.nil?
|
115
|
+
fail ArgumentError, "Missing the required parameter 'size' when calling GeneralStorageApi.storage_get_upload_data"
|
116
|
+
end
|
117
|
+
# resource path
|
118
|
+
local_var_path = '/storage/request/upload/{contentType}/{filename}/{size}'.sub('{' + 'contentType' + '}', CGI.escape(content_type.to_s)).sub('{' + 'filename' + '}', CGI.escape(filename.to_s)).sub('{' + 'size' + '}', CGI.escape(size.to_s))
|
119
|
+
|
120
|
+
# query parameters
|
121
|
+
query_params = opts[:query_params] || {}
|
122
|
+
|
123
|
+
# header parameters
|
124
|
+
header_params = opts[:header_params] || {}
|
125
|
+
# HTTP header 'Accept' (if needed)
|
126
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
127
|
+
|
128
|
+
# form parameters
|
129
|
+
form_params = opts[:form_params] || {}
|
130
|
+
|
131
|
+
# http body (model)
|
132
|
+
post_body = opts[:body]
|
133
|
+
|
134
|
+
# return_type
|
135
|
+
return_type = opts[:return_type] || 'IUploadToken'
|
136
|
+
|
137
|
+
# auth_names
|
138
|
+
auth_names = opts[:auth_names] || []
|
139
|
+
|
140
|
+
new_options = opts.merge(
|
141
|
+
:header_params => header_params,
|
142
|
+
:query_params => query_params,
|
143
|
+
:form_params => form_params,
|
144
|
+
:body => post_body,
|
145
|
+
:auth_names => auth_names,
|
146
|
+
:return_type => return_type
|
147
|
+
)
|
148
|
+
|
149
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
150
|
+
if @api_client.config.debugging
|
151
|
+
@api_client.config.logger.debug "API called: GeneralStorageApi#storage_get_upload_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
152
|
+
end
|
153
|
+
return data, status_code, headers
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|